/*
Theme Name: Mr Salt 2027
Theme URI: https://www.mr-salt.co.uk/
Author: Mr Salt
Description: Lightweight single-page editable WordPress theme for Mr Salt.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: mr-salt-2027
*/
:root{--navy:#153e75;--blue:#2775b6;--pale:#e8f3fb;--ink:#17304a;--muted:#52677b;--line:#dbe7f0}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:white;color:var(--ink);font:17px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--blue)}.wrap{width:min(1120px,calc(100% - 42px));margin:auto}.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.head-inner{min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand img{width:195px;max-width:100%;height:auto;display:block}.nav{display:flex;gap:25px;align-items:center;flex-wrap:wrap}.nav a{text-decoration:none;font-weight:650;font-size:14px;color:var(--navy)}.nav a:hover{color:var(--blue)}.nav .nav-cta{background:var(--blue);color:white;padding:10px 20px;border-radius:99px}.site-main{overflow:hidden}.ms-section{padding:94px 0}.ms-hero{padding:112px 0 105px;background:linear-gradient(125deg,#f6fbff 0%,#e8f3fb 72%,#d7ebfa 100%);position:relative}.ms-hero:after{content:"";position:absolute;width:390px;height:390px;border:1px solid #bcdaf0;border-radius:50%;right:-130px;top:30px;pointer-events:none}.ms-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--blue);font-weight:800;margin:0 0 17px}.ms-hero h1{font-size:clamp(48px,7.5vw,90px);line-height:1.06;letter-spacing:-.055em;max-width:850px;color:var(--navy);margin:0 0 26px;font-weight:800}.ms-lead{font-size:clamp(19px,2.2vw,23px);max-width:670px;color:#46637c;line-height:1.65}.ms-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:33px}.ms-button{display:inline-block;text-decoration:none;border-radius:999px;padding:14px 27px;font-weight:750;background:var(--blue);color:#fff}.ms-button.secondary{background:white;color:var(--navy);border:1px solid #c7ddeb}.ms-button:hover{filter:brightness(.93)}.ms-kicker{font-size:13px;color:#56718a;margin-top:32px}.ms-heading{font-size:clamp(35px,4.4vw,56px);line-height:1.14;letter-spacing:-.04em;color:var(--navy);margin:0 0 23px}.ms-intro{font-size:19px;max-width:770px;color:var(--muted);margin-bottom:37px}.ms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.ms-card{background:white;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 8px 24px rgba(21,62,117,.035)}.ms-card .ms-icon{font-size:29px;display:block;margin-bottom:20px}.ms-card h3{font-size:21px;line-height:1.3;color:var(--navy);margin:0 0 12px}.ms-card p{margin:0;color:var(--muted)}.ms-soft{background:#f4f9fd}.ms-split{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}.ms-panel{border-radius:28px;background:linear-gradient(145deg,#17467e,#2775b6);padding:43px;color:white}.ms-panel h3{font-size:30px;color:white;margin:0 0 14px}.ms-panel p{color:#e1f0ff}.ms-checks{list-style:none;padding:0;margin:20px 0}.ms-checks li{padding:12px 0;border-bottom:1px solid #dbe7f0}.ms-checks li:before{content:'✓';color:var(--blue);font-weight:bold;margin-right:13px}.ms-faq{max-width:860px}.ms-faq details{border-bottom:1px solid var(--line);padding:19px 0}.ms-faq summary{cursor:pointer;font-weight:750;font-size:19px;color:var(--navy)}.ms-faq details p{color:var(--muted);margin:12px 0}.ms-contact{background:var(--navy);color:white}.ms-contact .ms-heading,.ms-contact .ms-eyebrow{color:white}.ms-contact .ms-intro{color:#d9eafa}.ms-contact a{color:#fff}.ms-form{background:#fff;border-radius:22px;padding:30px;color:var(--ink);max-width:800px}.ms-form input:not([type=submit]),.ms-form textarea,.ms-form select{width:100%;max-width:100%;padding:13px;border:1px solid #bbcad8;border-radius:9px;font:inherit}.ms-form input[type=submit],.ms-form button{border:0;background:var(--blue);color:white;padding:13px 25px;border-radius:99px;font:inherit;font-weight:700;cursor:pointer}.ms-form .placeholder{border:2px dashed #c6d8e6;padding:25px;border-radius:12px;color:#52677b}.site-footer{background:#102e55;color:#d7e7f5;padding:28px 0;font-size:14px}.foot-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.site-footer a{color:#fff}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:760px){.head-inner{align-items:flex-start;padding:15px 0;flex-direction:column;gap:10px}.brand img{width:160px}.nav{gap:13px}.nav a{font-size:12px}.nav .nav-cta{padding:7px 12px}.ms-section{padding:65px 0}.ms-hero{padding:76px 0}.ms-grid,.ms-split{grid-template-columns:1fr}.ms-split{gap:26px}.ms-card{padding:24px}.ms-panel{padding:27px}.ms-form{padding:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.ms-hero .ms-kicker a{color:var(--navy);font-weight:700}.ms-panel a{color:#fff}.ms-panel li{margin-bottom:10px}.ms-contact .ms-intro a{font-weight:700}

/* Version 2: native Gutenberg blocks and original delivery boundary */
.ms-block-section{padding:86px 0}.ms-block-section.ms-soft{background:#f4f9fd}.ms-block-section.ms-contact{background:#153e75}.ms-block-section>.wp-block-group__inner-container{width:min(1120px,calc(100% - 42px));margin:auto}.ms-block-section .wp-block-columns{gap:26px}.ms-block-section .wp-block-column{min-width:0}.ms-block-section h2{font-size:clamp(32px,4.1vw,53px);letter-spacing:-.035em;line-height:1.13;color:#153e75;margin:0 0 20px}.ms-block-section h3{font-size:23px;color:#153e75;margin:0 0 12px}.ms-block-section p{margin-top:0}.ms-block-section .ms-eyebrow{margin-bottom:15px}.ms-block-section .ms-card{height:100%}.ms-block-section .ms-card .wp-block-group__inner-container{height:100%}.ms-block-section .ms-panel h3{color:white}.ms-block-section .ms-panel p{color:#e1f0ff}.ms-block-section.ms-contact h2,.ms-block-section.ms-contact h3{color:white}.ms-block-section.ms-contact p{color:#e1f0ff}.ms-block-section.ms-contact .ms-form p{color:#17304a}.ms-block-section.ms-contact a{color:white}.ms-block-section .wp-block-buttons{margin-top:26px}.ms-block-section .wp-block-button__link{background:#2775b6;border-radius:999px;font-weight:700;padding:13px 24px}.ms-block-section .ms-outline .wp-block-button__link{background:white;color:#153e75;border:1px solid #aacfe9}.ms-block-section.ms-hero{padding:95px 0 100px}.ms-block-section.ms-hero h1{font-size:clamp(46px,6.3vw,78px);line-height:1.06;letter-spacing:-.052em;max-width:820px;color:#153e75;margin:0 0 25px}.ms-block-section.ms-hero .ms-lead{max-width:740px}.ms-map{margin:0}.ms-map img{width:100%;height:auto;display:block;border-radius:18px;border:1px solid #c5d9ea}.ms-map figcaption{font-size:13px;color:#52677b;line-height:1.5;margin-top:9px}.ms-map-note{font-size:14px}.ms-block-section .ms-contact-panel{background:white;border-radius:22px;padding:28px;color:#17304a}.ms-block-section .ms-contact-panel h3{color:#153e75}.ms-block-section .ms-contact-panel p{color:#52677b}.ms-block-section .ms-contact-panel a{color:#2775b6}.ms-block-section .ms-card p{color:#52677b}.ms-block-section .ms-card h3{color:#153e75}.ms-block-section .ms-faq-item{border-bottom:1px solid #dbe7f0;padding:18px 0}.ms-block-section .ms-faq-item h3{font-size:19px;margin-bottom:7px}.ms-block-section .ms-faq-item p{margin:0;color:#52677b}.ms-block-section .ms-pill{display:inline-block;color:#2775b6;font-weight:750}.ms-block-section .wp-block-shortcode{min-height:65px}.ms-block-section .ms-form{max-width:none}.ms-block-section .ms-form .wp-block-shortcode{color:#52677b}.ms-block-section .ms-form .wp-block-shortcode:empty:after{content:'Paste your Contact Form 7 shortcode here';display:block}.editor-styles-wrapper .ms-block-section{padding:35px 18px}.editor-styles-wrapper .ms-block-section>.wp-block-group__inner-container{width:100%}@media(max-width:760px){.ms-block-section{padding:60px 0}.ms-block-section.ms-hero{padding:65px 0}.ms-block-section .wp-block-columns{gap:20px}.ms-block-section .ms-contact-panel{padding:20px}}

.ms-header-phone{background:#0754a4;color:white;text-decoration:none;border-radius:12px;padding:10px 17px;font-size:14px;font-weight:750;white-space:nowrap}@media(max-width:950px){.ms-header-phone{display:none}}

/* v2.0.1: Gutenberg direct-child layout compatibility (frontend and standalone preview). */
.ms-block-section > :not(.wp-block-group__inner-container) {
  width: min(1120px, calc(100% - 42px));
  margin-left: auto;
  margin-right: auto;
}
.ms-block-section > .wp-block-columns { display:flex; align-items:stretch; }
.ms-block-section > .wp-block-columns > .wp-block-column { flex:1 1 0; }
.ms-block-section .wp-block-columns > .wp-block-column > .ms-card {height:100%;}
.ms-block-section > .wp-block-group__inner-container > * {max-width:100%;}
.ms-block-section .wp-block-image img {max-width:100%;height:auto;}
@media(max-width:760px){
  .ms-block-section > .wp-block-columns {flex-direction:column;}
  .ms-block-section > .wp-block-columns > .wp-block-column {flex:auto;}
}

/* Mr Salt 2027 v2.1 illustrated delivery map */
.ms-map img{width:100%;height:auto;aspect-ratio:1118/732;object-fit:cover;object-position:center;border-radius:18px;}

/* v2.2 — restore illustrated product and hero visuals without sacrificing Gutenberg editability */
.ms-block-section.ms-hero{background:radial-gradient(ellipse at 89% 46%,#b4e5fb 0%,#e4f4ff 35%,#f7fbff 78%);isolation:isolate;min-height:510px}
.ms-block-section.ms-hero:before{content:"";position:absolute;right:max(1.5%,calc((100% - 1190px)/2));top:65px;width:min(43vw,540px);height:390px;background:url('assets/hero-salt.svg') center / contain no-repeat;z-index:-1;pointer-events:none}
.ms-block-section.ms-hero:after{width:580px;height:580px;right:-270px;top:-160px;border-color:#c1e6fa;z-index:-2}
.ms-block-section.ms-hero h1{max-width:670px;font-size:clamp(43px,5.2vw,67px)}
.ms-block-section.ms-hero .ms-lead{max-width:585px}
.ms-block-section.ms-hero>.ms-eyebrow,.ms-block-section.ms-hero>h1,.ms-block-section.ms-hero>.ms-lead,.ms-block-section.ms-hero>.wp-block-buttons,.ms-block-section.ms-hero>.ms-kicker{position:relative;z-index:1}
#products{text-align:center}
#products>.wp-block-columns{text-align:left}
#products .ms-card{text-align:center;padding-top:15px}
#products .ms-card .ms-icon{font-size:0;display:block;width:100%;height:145px;margin:0 0 10px;background-position:center;background-size:contain;background-repeat:no-repeat}
#products .wp-block-column:nth-child(1) .ms-icon{background-image:url('assets/tablet-salt.svg')}
#products .wp-block-column:nth-child(2) .ms-icon{background-image:url('assets/granular-salt.svg')}
#products .wp-block-column:nth-child(3) .ms-icon{background-image:url('assets/block-salt.svg')}
#delivery .ms-pill{display:inline-grid;place-items:center;background:linear-gradient(145deg,#1599d8,#0b62b7);color:#fff;border-radius:50%;width:43px;height:43px;font-size:17px;box-shadow:0 6px 16px #2d9ed63d}
#delivery .ms-card{border-color:#cce7f6;box-shadow:0 12px 24px #1b6c9a12}
#delivery .wp-block-column:nth-child(1) .ms-card:before,#delivery .wp-block-column:nth-child(2) .ms-card:before,#delivery .wp-block-column:nth-child(3) .ms-card:before{display:block;float:right;font-size:34px;color:#1689c9;line-height:1.2}
#delivery .wp-block-column:nth-child(1) .ms-card:before{content:'☎'}
#delivery .wp-block-column:nth-child(2) .ms-card:before{content:'▦'}
#delivery .wp-block-column:nth-child(3) .ms-card:before{content:'➜'}
#benefits .ms-card{border-top:3px solid #2e9cdb}
.ms-block-section h2:after{content:"";display:block;width:90px;height:5px;background:#35a9e9;border-radius:100%;margin:15px 0 0;transform:skewX(-25deg)}
#products h2:after,#benefits h2:after{margin-left:auto;margin-right:auto}
#benefits{text-align:center}#benefits>.wp-block-columns{text-align:left}
@media(max-width:950px){.ms-block-section.ms-hero:before{opacity:.28;width:52vw;right:0}.ms-block-section.ms-hero h1{max-width:690px}}
@media(max-width:760px){.ms-block-section.ms-hero{padding-bottom:250px;min-height:0}.ms-block-section.ms-hero:before{opacity:1;top:auto;bottom:0;right:3%;width:75%;height:240px}.ms-block-section.ms-hero h1{font-size:clamp(39px,9vw,56px)}#products .ms-card .ms-icon{height:115px}}


/* v2.3: centred contact section, retaining editable Gutenberg blocks */
.ms-block-section.ms-contact > .wp-block-group__inner-container > .ms-eyebrow,
.ms-block-section.ms-contact > .wp-block-group__inner-container > h2 {text-align:center}
.ms-block-section.ms-contact .wp-block-columns {display:flex;flex-direction:column;align-items:center;gap:26px;margin-left:auto;margin-right:auto;max-width:760px}
.ms-block-section.ms-contact .wp-block-columns > .wp-block-column {width:100%;flex-basis:auto!important;flex-grow:0!important;min-width:0;text-align:center}
.ms-block-section.ms-contact .wp-block-columns > .wp-block-column:first-child p {margin-bottom:9px}
.ms-block-section.ms-contact .ms-contact-panel {text-align:left;width:100%;max-width:690px;margin:0 auto;padding:clamp(22px,4vw,38px)}
.ms-block-section.ms-contact .ms-contact-panel h3 {text-align:center}
.ms-block-section.ms-contact .ms-contact-panel > .wp-block-group__inner-container > p {text-align:center}
.ms-block-section.ms-contact .ms-form {margin:0 auto;width:100%;max-width:610px;padding:0}
.ms-block-section.ms-contact .wpcf7 {width:100%;max-width:100%;text-align:left}
.ms-block-section.ms-contact .wpcf7 form p {text-align:left}
.ms-block-section.ms-contact .wpcf7 input:not([type=submit]),.ms-block-section.ms-contact .wpcf7 textarea,.ms-block-section.ms-contact .wpcf7 select {max-width:100%;width:100%}
@media(max-width:760px){.ms-block-section.ms-contact .wp-block-columns{gap:20px}}

/* v2.4: centre decorative underline beneath contact heading */
.ms-block-section.ms-contact h2::after { margin-left:auto; margin-right:auto; }
