/*
Theme Name: Legacy Assist Blocks
Theme URI: https://www.legacyassist.co.uk/
Author: Neighbourhood Online
Description: Full Site Editing (block) version of the Legacy Assist theme. All text, headings, images, header, footer and menus are edited in the WordPress Site Editor and page editor.
Version: 2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: legacy-assist-blocks
*/

:root{
  --ink:#202784;
  --gold:#CF9F43;
  --parchment:#FFFFFF;
  --parchment-deep:#F1F1F6;
  --charcoal:#3E3B35;
  --line: rgba(27,42,74,0.14);
  --radius: 3px;
  --seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='%23CF9F43'%3E%3Cpath d='M30,34 C26,34 24,28 24,20 C24,14 27,10 30,10 C33,10 36,14 36,20 C36,28 34,34 30,34 Z'/%3E%3Cpath d='M30,34 C24,33 18,28 16,20 C15,16 17,13 20,14 C25,16 28,24 30,34 Z'/%3E%3Cpath d='M30,34 C36,33 42,28 44,20 C45,16 43,13 40,14 C35,16 32,24 30,34 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23CF9F43' stroke-linecap='round'%3E%3Cpath d='M30 34 L30 54' stroke-width='2'/%3E%3Cpath d='M30 46 C24 46 20 50 15 48' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{-webkit-font-smoothing:antialiased;}
em{font-style:italic; color:var(--gold);}
img{max-width:100%;}

/* ---------- Layout helpers ---------- */
.wrap{max-width:1080px; margin-left:auto; margin-right:auto; padding-left:32px; padding-right:32px;}
:where(section){padding:88px 0;}
.pt-0{padding-top:0;}
.wp-block-image{margin:0;}
.wp-block-image img{height:auto;}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.admin-bar .site-header{top:32px;}
@media (max-width:782px){ .admin-bar .site-header{top:46px;} }
.header-inner{display:flex; align-items:center; height:78px;}
.header-inner .brand-logo{flex-shrink:0; margin:0;}
.header-inner .brand-logo a{display:flex; align-items:center;}
.header-inner .brand-logo img{height:66px; width:auto;}
.header-inner .brand-name{
  flex:1 1 auto; text-align:center; padding:0 20px; margin:0;
  font-family:'Cormorant Garamond', serif; font-weight:600; font-size:23px;
  letter-spacing:0.01em; color:var(--ink);
}
.header-inner .brand-name a{color:var(--ink);}
.navlinks{flex-shrink:0;}
.navlinks .wp-block-navigation__container{gap:34px;}
.navlinks .wp-block-navigation-item a,
.navlinks .wp-block-navigation-item__content{
  font-family:'Karla',sans-serif; font-size:14.5px; font-weight:600;
  letter-spacing:0.02em; color:var(--ink); padding:6px 2px; opacity:0.72; position:relative;
}
.navlinks .wp-block-navigation-item a:hover{opacity:1;}
.navlinks .current-menu-item > a,
.navlinks .wp-block-navigation-item__content[aria-current="page"]{opacity:1;}
.navlinks .current-menu-item > a::after,
.navlinks .wp-block-navigation-item__content[aria-current="page"]::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--gold);
}
/* Optional: add the CSS class "nav-cta" to any menu item to make it a button */
.navlinks .nav-cta > a{
  background:var(--ink); color:var(--parchment) !important; opacity:1 !important;
  padding:10px 20px !important; border-radius:var(--radius); font-size:13.5px !important;
}
.navlinks .nav-cta > a::after{display:none !important;}

/* ---------- Shared ---------- */
.eyebrow{
  font-size:12.5px; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--gold); font-weight:700; margin:0 0 18px; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:''; width:26px; height:1px; background:var(--gold); flex:none;}
.wp-block-button.is-style-outline > .wp-block-button__link{
  background:transparent; color:var(--ink); border:1.5px solid var(--ink); padding:12.5px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover{background:var(--ink); color:var(--parchment);}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link{transition:transform .15s ease, box-shadow .15s ease;}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(184,134,47,0.35);}

/* ---------- Hero ---------- */
.hero{padding:76px 0 60px; position:relative; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1fr; gap:60px; align-items:center;}
.hero h1{font-size:56px; line-height:1.08; letter-spacing:-0.01em; max-width:760px;}
.hero .lede{font-size:18.5px; color:var(--ink); opacity:0.82; max-width:480px; margin:26px 0 34px;}

/* ---------- Band ---------- */
.band{background:var(--ink); color:var(--parchment); padding:74px 0; position:relative;}
.band .wrap{max-width:760px; text-align:center;}
.band .wrap::before{content:''; display:block; width:44px; height:44px; margin:0 auto 26px; background:var(--seal) center/contain no-repeat;}
.band h2{color:var(--parchment); font-size:34px; font-style:italic; line-height:1.3; font-weight:500;}
.band p{margin-top:22px; color:rgba(255,255,255,0.78); font-size:16.5px; line-height:1.75;}
.band .wp-block-buttons{justify-content:center; margin-top:26px;}

/* ---------- Cards ---------- */
.section-head{max-width:640px; margin-bottom:56px;}
.section-head h2{font-size:38px; line-height:1.15;}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 30px; display:flex; flex-direction:column; gap:16px;
}
.card::before{content:''; width:34px; height:34px; background:var(--seal) center/contain no-repeat;}
.card h3{font-size:23px;}
.card .card-text{font-size:15px; color:var(--charcoal); opacity:0.85; flex-grow:1;}
.card .service-tag{align-self:flex-start;}
.card .card-link{font-size:13.5px; font-weight:700; color:var(--ink); align-self:flex-start;}
.card .card-link a{border-bottom:1.5px solid var(--gold); padding-bottom:2px;}

/* ---------- Trust strip ---------- */
.trust{border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:36px 0;}
.trust p{font-family:'Cormorant Garamond', serif; font-size:19px; font-style:italic; color:var(--ink); max-width:640px; margin:0 auto; text-align:center;}

/* ---------- Why choose / stats ---------- */
.why-choose{background:var(--parchment-deep);}
.why-choose .lede{margin-top:16px; max-width:640px;}
.stats-intro{max-width:640px; margin-bottom:8px; font-size:14px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:0.08em;}
.stats-row{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:44px 0 48px;}
.stats-intro + .stats-row{margin-top:16px;}
.stat{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px 24px; text-align:center;}
.stat .num{font-family:'Cormorant Garamond', serif; font-size:38px; font-weight:600; color:var(--gold); line-height:1;}
.stat .label{font-size:13px; color:var(--ink); opacity:0.75; margin-top:10px; font-weight:600;}
.why-choose-body{max-width:720px;}
.why-choose-body p{font-size:16px; margin-bottom:18px; color:var(--charcoal);}
.body-subhead{font-size:22px; margin:28px 0 12px;}

/* ---------- Split (about teaser) ---------- */
.split{display:grid; grid-template-columns:0.65fr 1.35fr; gap:64px; align-items:center;}
.split .photo-frame{max-width:300px; justify-self:start;}
.split-title{font-size:34px; margin-bottom:20px;}
.split-text{font-size:16px; opacity:0.85; margin-bottom:26px;}
.photo-frame{
  background:var(--parchment-deep); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; margin:0;
}
.photo-frame img{width:100%; aspect-ratio:4/5; object-fit:cover; display:block;}
.photo-frame.is-square img{aspect-ratio:1/1;}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--parchment-deep); border-radius:var(--radius);
  padding:56px 60px; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.cta-banner h2{font-size:30px; max-width:420px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink); color:rgba(255,255,255,0.7); padding:56px 0 30px;}
.foot-grid{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.14);}
.foot-logo-card{background:var(--parchment); display:inline-block; padding:18px 22px; border-radius:var(--radius); margin-bottom:18px;}
.foot-logo-card .foot-logo{margin:0;}
.foot-logo img{height:80px; width:auto; display:block;}
.foot-brand p{max-width:280px; font-size:14px; line-height:1.7; margin:0;}
.foot-col h4{font-family:'Karla',sans-serif; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; font-weight:700;}
.foot-col p{font-size:14.5px; color:rgba(255,255,255,0.78); margin-bottom:9px;}
.foot-bottom{display:flex; justify-content:space-between; padding-top:22px; flex-wrap:wrap; gap:10px;}
.foot-bottom p{font-size:12.5px; color:rgba(255,255,255,0.5); margin:0;}
.foot-privacy a{text-decoration:underline;}

/* ---------- About page ---------- */
.about-hero{padding-top:68px; padding-bottom:50px;}
.about-hero h1{font-size:44px; max-width:640px; line-height:1.15;}
.about-body{display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px;}
.about-body > div:first-child{position:sticky; top:100px; align-self:start;}
.about-body p{font-size:16.5px; margin-bottom:20px; color:var(--charcoal);}
.creds{list-style:none; padding:0; margin:30px 0 0; display:flex; flex-direction:column; gap:14px;}
.creds li{position:relative; padding-left:34px; font-size:15px; margin:0;}
.creds li::before{content:''; position:absolute; left:0; top:2px; width:20px; height:20px; background:var(--seal) center/contain no-repeat;}
.creds a{color:var(--ink); text-decoration:underline; text-underline-offset:2px;}
.pull-quote{
  font-family:'Cormorant Garamond', serif; font-size:26px; font-style:italic; color:var(--ink);
  border-left:2px solid var(--gold); padding:0 0 0 26px; margin:44px 0; line-height:1.4;
}
.pull-quote p{font-size:26px; margin:0; color:var(--ink);}
.about-body .support-title{font-size:20px; margin:32px 0 14px;}
.about-body .support-title + .creds{margin-top:0;}
.about-body .about-closing{margin-top:26px;}

/* ---------- Services page ---------- */
.service-tag{
  display:inline-block;
  font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); font-weight:700;
  background:var(--parchment-deep); padding:5px 12px; border-radius:20px; margin:0;
}
.service-highlights{list-style:none; padding:0; margin:0 0 20px; display:flex; flex-direction:column; gap:10px;}
.service-highlights li{position:relative; padding-left:22px; font-size:14.5px; color:var(--ink); font-weight:600; margin:0;}
.service-highlights li::before{content:''; position:absolute; left:0; top:8px; width:10px; height:1.5px; background:var(--gold);}
.services-hero-v2{padding:76px 0 56px;}
.services-hero-v2 .lede{margin-top:16px;}
.feature-row{display:grid; grid-template-columns:120px 1fr; gap:20px; padding:56px 0; border-top:1px solid var(--line); position:relative;}
.feature-row:last-child{border-bottom:1px solid var(--line);}
.feature-row-num{font-family:'Cormorant Garamond', serif; font-size:88px; font-weight:600; color:var(--parchment-deep); line-height:1; margin:0;}
.feature-row-top{display:flex; align-items:center; gap:14px; margin-bottom:16px;}
.feature-row-top::before{content:''; width:36px; height:36px; background:var(--seal) center/contain no-repeat; flex:none;}
.feature-row-content h3{font-size:28px; margin-bottom:14px;}
.feature-row-content > p{max-width:660px; color:var(--charcoal); font-size:15.5px; margin-bottom:20px;}
.feature-row-content > .for-line{font-size:15.5px; margin-bottom:16px;}
.price-note{
  background:var(--parchment-deep); border-radius:var(--radius); padding:26px 30px;
  margin-top:14px; font-size:15px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
}
.feature-row-content > .price-note p{margin:0; font-size:15px; max-width:none;}

/* ---------- Service detail ---------- */
.service-detail-hero{padding:64px 0 40px;}
.service-detail-hero h1{font-size:44px; margin-bottom:16px;}
.back-link{display:inline-block; font-size:14px; font-weight:600; color:var(--ink);}
.back-link a{border-bottom:1.5px solid var(--gold); padding-bottom:1px;}
.service-detail-content{max-width:760px; font-size:16px; line-height:1.8; color:var(--charcoal);}
.service-detail-content p{margin-bottom:20px;}
.service-detail-content h1, .service-detail-content h2, .service-detail-content h3, .service-detail-content h4{color:var(--ink); margin:36px 0 14px;}
.service-detail-content h1{font-size:32px;}
.service-detail-content h2{font-size:27px;}
.service-detail-content h3{font-size:22px;}
.service-detail-content h4{font-size:17px; text-transform:uppercase; letter-spacing:0.04em; color:var(--gold); font-family:'Karla',sans-serif; font-weight:700;}
.service-detail-content strong{color:var(--ink);}
.service-detail-content ul, .service-detail-content ol{padding-left:22px; margin-bottom:20px;}
.service-detail-content li{margin-bottom:8px;}
.service-detail-content img{border-radius:var(--radius); border:1px solid var(--line); margin:8px 0 24px;}
.service-detail-content a{color:var(--ink); text-decoration:underline; text-underline-offset:2px;}
.service-detail-content > *:first-child{margin-top:0;}

/* ---------- Contact page ---------- */
.contact-hero h1{font-size:44px; max-width:560px;}
.contact-hero .lede{font-size:17px; max-width:480px; opacity:0.85; margin-top:18px;}
.contact-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; margin-top:48px;}
.legacy-assist-contact-form form{display:flex; flex-direction:column; gap:18px; margin-top:10px;}
.field label{font-size:13px; font-weight:700; color:var(--ink); display:block; margin-bottom:7px; letter-spacing:0.01em;}
.field input, .field textarea{
  width:100%; border:1px solid var(--line); border-radius:var(--radius);
  padding:13px 14px; font-family:'Karla',sans-serif; font-size:15px; background:#fff; color:var(--charcoal);
}
.field input:focus, .field textarea:focus{outline:2px solid var(--gold); outline-offset:1px;}
.field textarea{resize:vertical; min-height:110px;}
.form-note{font-size:12.5px; color:var(--charcoal); opacity:0.6; margin-top:-4px;}
.legacy-assist-contact-form .btn{
  display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--parchment);
  padding:14px 26px; border-radius:var(--radius); font-family:'Karla',sans-serif; font-weight:700; font-size:14.5px;
  letter-spacing:0.01em; border:none; cursor:pointer;
}
.form-success{background:var(--parchment-deep); border:1px solid var(--gold); border-radius:var(--radius); padding:20px; font-size:14.5px; color:var(--ink); margin-bottom:20px;}
.form-error{background:#fbeaea; border:1px solid #c96b6b; border-radius:var(--radius); padding:20px; font-size:14.5px; color:#7a2e2e; margin-bottom:20px;}
.contact-side{background:var(--parchment-deep); border-radius:var(--radius); padding:36px 32px; align-self:start;}
.contact-side .contact-logo{margin:0 0 6px;}
.contact-side .contact-logo img{height:44px; width:auto;}
.contact-side h3{font-size:21px; margin-bottom:16px;}
.contact-side p{font-size:14.5px; margin-bottom:16px; line-height:1.7;}
.contact-side a{font-weight:700; color:var(--ink); border-bottom:1.5px solid var(--gold);}
.contact-methods{margin:22px 0 0; display:flex; flex-direction:column; gap:16px;}
.contact-method{display:flex; flex-direction:column; gap:3px; padding-bottom:14px; border-bottom:1px solid var(--line);}
.contact-method:last-child{border-bottom:none; padding-bottom:0;}
.contact-method p{margin:0; line-height:1.6;}
.contact-method .label{font-size:11.5px; letter-spacing:0.12em; text-transform:uppercase; font-weight:700; color:var(--gold);}
.contact-method p:not(.label){font-size:15.5px;}
.contact-method a{border-bottom:none;}
.contact-side .contact-note{margin-top:24px;}
.privacy-toggle{margin-top:40px; border-top:1px solid var(--line); padding-top:24px;}
.privacy-toggle summary{
  display:inline-block; cursor:pointer; font-weight:700; font-size:13.5px; color:var(--ink);
  border-bottom:1.5px solid var(--gold); padding-bottom:2px;
}
.privacy-toggle > p{font-size:14px; color:var(--charcoal); opacity:0.8; max-width:600px; line-height:1.75; margin-top:14px;}
.privacy-toggle > summary + p{margin-top:18px;}

/* ---------- Owner-editable content (the page's own content, shown under the designed sections) ---------- */
.owner-content{padding:0;}
.owner-content .wp-block-post-content:not(:empty){padding:0 0 80px; font-size:16px; line-height:1.75; color:var(--charcoal);}
.owner-content .wp-block-post-content > p{margin-bottom:18px;}
.owner-content .wp-block-post-content h2{font-size:30px; margin-bottom:16px;}
.owner-content .wp-block-post-content h3{font-size:22px; margin-bottom:12px;}
.owner-content .wp-block-post-content img{border-radius:var(--radius);}

/* ---------- Generic page / posts ---------- */
.generic-page{padding:76px 0 90px;}
.generic-page h1{font-size:40px; margin-bottom:30px;}
.generic-page .content{max-width:720px; font-size:16px; line-height:1.8;}
.generic-page .content p{margin-bottom:18px;}
.generic-page .wp-block-post-title a{color:var(--ink);}
.generic-page .wp-block-post-template{list-style:none; padding:0; margin:0 0 30px;}
.generic-page .wp-block-post-template > li{margin-bottom:32px;}

/* ---------- Mobile ---------- */
@media (max-width: 860px){
  .hero-grid, .split, .about-body, .contact-grid{grid-template-columns:1fr; gap:36px;}
  .cards, .stats-row{grid-template-columns:1fr;}
  .stats-row{gap:14px;}
  .header-inner{justify-content:space-between;}
  .header-inner .brand-name{display:none;}
  .hero h1{font-size:38px;}
  .about-hero h1, .contact-hero h1{font-size:32px;}
  .cta-banner{padding:36px 28px; flex-direction:column; align-items:flex-start;}
  :where(section){padding:56px 0;}
  .wrap{padding-left:20px; padding-right:20px;}
  .foot-grid{flex-direction:column; gap:28px;}
  .about-body > div:first-child{position:static;}
  .feature-row{grid-template-columns:1fr; gap:8px; padding:36px 0;}
  .feature-row-num{font-size:52px;}
}

/* ---------- Safety net: any Columns block built by hand in the editor ---------- */
/* Keeps every line of body text the same font/size/weight, even if different */
/* blocks or manual formatting were used in different columns. */
.wp-block-columns{align-items:stretch;}
.wp-block-columns .wp-block-column{display:flex; flex-direction:column;}
.wp-block-columns .wp-block-column p,
.wp-block-columns .wp-block-column li{
  font-family:'Karla', sans-serif !important;
  font-size:15px !important;
  font-weight:400 !important;
  text-decoration:none !important;
  color:#3E3B35;
  line-height:1.6;
}
.wp-block-columns .wp-block-column .wp-block-heading{
  font-family:'Cormorant Garamond', serif !important;
  font-size:23px !important;
  font-weight:600 !important;
  color:#202784 !important;
}
