/* Homepage version C (home/home-c.php). Loads after windelo-54, knysna-550, catamaran-brokerage CSS. Scoped to .homec.
   Version A layout, tighter spacing, new hero; brand panels + testimonial from version B. */

/* tighter section spacing than the brand pages */
.w54.homec .section{padding-block:clamp(48px,6vw,84px)}

/* hero: Knysna 550 BLUE JACKET II on open ocean (sized photo set inline in the template) */
.w54.homec .hero{min-height:min(620px,78vh);align-items:flex-end;background:#1d3f7a}
.w54.homec .hero::before{display:block;left:0;width:100%;-webkit-mask-image:none;mask-image:none;background-size:cover;background-repeat:no-repeat;background-position:70% 96%}
.w54.homec .hero::after{background:linear-gradient(90deg,rgba(22,24,64,.85) 0%,rgba(22,24,64,.55) 38%,rgba(22,24,64,0) 64%),linear-gradient(0deg,rgba(14,18,46,.6) 0%,rgba(14,18,46,0) 40%)}
.w54.homec .hero .wrap{padding-block:64px 124px}
.w54.homec .hero h1{font-size:clamp(40px,5.2vw,78px);line-height:.95;max-width:13ch}
.w54.homec .hero-sub{max-width:42ch}
@media (max-width:760px){
  .w54.homec .hero{min-height:auto}
  .w54.homec .hero::before{background-position:78% 50%}
  .w54.homec .hero::after{background:linear-gradient(0deg,rgba(18,20,56,.94) 0%,rgba(18,20,56,.6) 55%,rgba(18,20,56,.2) 100%)}
  .w54.homec .hero .wrap{padding-block:56px 96px}
}

/* the two big doors (sales + service), pulled up over the hero; three quick links inside each */
.homec .doors{position:relative;z-index:2;margin-top:-88px;padding-bottom:8px}
.homec .doors-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:860px){.homec .doors-grid{grid-template-columns:1fr;gap:14px}.homec .doors{margin-top:-64px}}
.homec .door{position:relative;display:flex;flex-direction:column;min-height:330px;border-radius:8px;overflow:hidden;color:#fff;background:var(--plate);box-shadow:0 18px 40px -18px rgba(14,18,46,.55);isolation:isolate}
@media (max-width:860px){.homec .door{min-height:280px}}
.homec .door-img,.homec .door-img img{position:absolute;inset:0;width:100%;height:100%}
.homec .door-img{z-index:-2}
.homec .door-img img{object-fit:cover;transition:transform .5s ease}
.homec .door::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(18,20,56,.96) 0%,rgba(18,20,56,.84) 50%,rgba(18,20,56,.3) 82%,rgba(18,20,56,.12) 100%)}
.homec .door:hover .door-img img{transform:scale(1.04)}
.homec .door-body{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding:26px 28px 26px}
@media (max-width:600px){.homec .door-body{padding:20px 20px 20px}}
.homec .door-h{margin:0;font-family:var(--f-display);font-stretch:125%;font-weight:800;font-size:clamp(28px,3.2vw,42px);line-height:1;letter-spacing:-.02em}
.homec .door-h a{color:#fff;text-decoration:none}
.homec .door-h a::after{content:"";position:absolute;inset:0}
.homec .door-h a::before{content:"\2192";float:right;margin-left:12px;color:var(--accent);font-size:.7em;line-height:1.4}
.homec .door-p{margin:0;font-size:16px;line-height:1.5;color:rgba(255,255,255,.88);max-width:46ch}
.homec .door-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0}
.homec .door-chips a{display:inline-flex;align-items:center;padding:10px 18px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14.5px;text-decoration:none;letter-spacing:.01em}
.homec .door-chips a+a{background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(4px)}
.homec .door-chips a:hover{background:var(--accent);color:var(--accent-ink)}
.homec .door-chips a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.homec .hc-nowrap{white-space:nowrap}

/* sales + service text: intro left, two compact columns right */
.homec .hc-about{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr);gap:clamp(28px,4vw,64px);align-items:start}
@media (max-width:1000px){.homec .hc-about{grid-template-columns:1fr}}
.homec .hc-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:640px){.homec .hc-cols{grid-template-columns:1fr}}
.homec .hc-col{display:flex;flex-direction:column;gap:10px;padding:24px 24px 22px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:6px}
.homec .hc-col h3{margin:0;font-family:var(--f-display);font-stretch:112%;font-weight:800;font-size:21px;line-height:1.15;color:var(--ink)}
.homec .hc-col>p:not(.eyebrow){margin:0;font-size:15.5px;line-height:1.55;color:var(--muted)}
.homec .hc-col .checks{margin:4px 0 0}
.homec .hc-col .checks li{font-size:15px;padding-block:8px}
.homec .hc-more{margin-top:auto;padding-top:6px;font-weight:700;color:var(--plate);text-decoration:none}
.homec .hc-more:hover{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:4px}

/* listings + news headers: buttons side by side */
.homec .plate-head .hero-cta{margin:0}

/* contact band photo (set inline) */
.w54.homec .band::before{background-position:center 50%}

/* new catamarans: two brand panels */
.homec .hb-brands{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px}
@media (max-width:860px){.homec .hb-brands{grid-template-columns:1fr}}
.homec .hb-brand{position:relative;min-height:440px;display:flex;align-items:flex-end;border-radius:8px;overflow:hidden;background:var(--plate) center/cover no-repeat;color:#fff;isolation:isolate}
@media (max-width:600px){.homec .hb-brand{min-height:360px}}
.homec .hb-brand::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(18,20,56,.94) 0%,rgba(18,20,56,.6) 45%,rgba(18,20,56,0) 75%)}
.homec .hb-brand-body{padding:30px;display:flex;flex-direction:column;gap:10px}
.homec .hb-brand .eyebrow{color:var(--accent)}
.homec .hb-brand h3{font-family:var(--f-display);font-stretch:120%;font-weight:800;font-size:clamp(28px,3vw,40px);line-height:1}
.homec .hb-brand h3 a{color:#fff;text-decoration:none}
.homec .hb-brand h3 a::after{content:"";position:absolute;inset:0}
.homec .hb-brand p{color:rgba(255,255,255,.86);max-width:40ch}
.homec .hb-models{display:flex;flex-wrap:wrap;gap:8px;position:relative;z-index:1}
.homec .hb-models a{padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:14.5px;text-decoration:none;backdrop-filter:blur(4px)}
.homec .hb-models a:hover{background:var(--accent);color:var(--accent-ink)}

/* featured testimonial */
.homec .hb-quote{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px;align-items:center}
@media (max-width:860px){.homec .hb-quote{grid-template-columns:1fr;gap:28px}}
.homec .hb-quote blockquote{margin:14px 0 0;font-family:var(--f-display);font-stretch:112%;font-weight:700;font-size:clamp(28px,3.4vw,46px);line-height:1.1;color:var(--ink)}
.homec .hb-quote blockquote p::before{content:"\201C"}
.homec .hb-quote blockquote p::after{content:"\201D"}
.homec .hb-quote-src{margin:16px 0 22px;color:var(--muted);max-width:56ch}
.homec .hb-quote-more{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.homec .hb-quote-more a{display:block;padding:18px 20px;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 6px 6px 0;color:var(--ink);font-weight:600;line-height:1.4;text-decoration:none}
.homec .hb-quote-more a:hover{box-shadow:0 0 0 1px var(--accent)}

.homec .hb-brands{margin-top:24px}
.homec .hb-brand{min-height:380px}
.homec .hc-about h2{font-size:clamp(30px,3.2vw,44px);line-height:1.02}
.homec #hc-news{font-size:clamp(30px,3.6vw,52px)}

/* sliders: 4 boats / 3 news posts per view, arrows page through, phones swipe */
.homec .hc-slider{position:relative;margin-top:24px}
.homec .hc-rail{display:grid;grid-auto-flow:column;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 2px 8px;margin:0 -2px}
.homec .hc-rail::-webkit-scrollbar{display:none}
.homec .hc-rail.four{grid-auto-columns:calc((100% - 60px) / 4)}
.homec .hc-rail.three{grid-auto-columns:calc((100% - 40px) / 3)}
.homec .hc-rail>*{scroll-snap-align:start;min-width:0}
.homec .hc-rail.news-grid{grid-template-columns:none}
@media (max-width:1000px){.homec .hc-rail.four{grid-auto-columns:calc((100% - 20px) / 2)}.homec .hc-rail.three{grid-auto-columns:calc((100% - 20px) / 2)}}
@media (max-width:600px){.homec .hc-rail.four,.homec .hc-rail.three{grid-auto-columns:84%;gap:14px}}
.homec .hc-rail:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.homec .hc-nav{display:flex;justify-content:flex-end;gap:10px;margin-bottom:14px}
.homec .hc-nav button{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease}
.homec .hc-nav button:hover:not(:disabled){background:var(--plate);border-color:var(--plate);color:#fff}
.homec .hc-nav button:disabled{opacity:.35;cursor:default}
.homec .hc-nav button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:600px){.homec .hc-nav{display:none}}
.homec .faq-wrap{align-items:start}

/* brand logos on the new catamaran panels (white plate, like the footer) */
.homec .hc-logo{position:relative;z-index:1;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;width:150px;height:56px;padding:8px 14px;margin-bottom:6px;background:#fff;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.homec .hc-logo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto}
@media (max-width:600px){.homec .hc-logo{width:128px;height:48px}}

/* newest listings: same look as the compact view on Featured Listings */
.homec .hcc{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.homec .hcc:hover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 12px 30px rgba(29,32,69,.08);transform:translateY(-2px)}
.homec .hcc-img{aspect-ratio:4/3;overflow:hidden;background:var(--bg)}
.homec .hcc-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.homec .hcc:hover .hcc-img img{transform:scale(1.03)}
.homec .hcc-body{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:12px 14px 14px}
.homec .hcc-name{margin:0;font-family:var(--f-display);font-stretch:118%;font-weight:800;font-size:16px;line-height:1.1;letter-spacing:-.01em;text-transform:uppercase}
.homec .hcc-name a{color:var(--ink);text-decoration:none}
.homec .hcc-name a::after{content:"";position:absolute;inset:0}
.homec .hcc-boat{margin:3px 0 0;font-size:13px;font-weight:500;color:var(--muted)}
.homec .hcc-price{margin:6px 0 0;font-family:var(--f-body);font-weight:700;font-size:18px;line-height:1.3;color:var(--ink);white-space:nowrap}
.homec .hcc-loc{margin:6px 0 0;font:500 11px/1.3 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.homec .hc-rail.four{gap:16px;grid-auto-columns:calc((100% - 48px) / 4)}
@media (max-width:1000px){.homec .hc-rail.four{grid-auto-columns:calc((100% - 32px) / 3)}}
@media (max-width:600px){.homec .hc-rail.four{grid-auto-columns:calc((100% - 10px) / 2);gap:10px}.homec .hcc-body{padding:10px 10px 12px}.homec .hcc-name{font-size:14px}.homec .hcc-boat{font-size:12px}.homec .hcc-price{font-size:15px}}
/* boat name gets the yellow underline on hover, as on Featured Listings */
.homec .hcc:hover .hcc-name a,.homec .hcc-name a:focus-visible{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:3px}

/* hero photo is a real <img> (picked by screen size, found early by the browser) instead of a CSS background */
.w54.homec .hero::before{background-image:none!important;background-color:#1d3f7a}
.homec .hc-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 96%;z-index:-2}
@media (max-width:760px){.homec .hc-hero-img{object-position:78% 50%}}

/* three brand panels: Knysna, Windelo, Lagoon (official service center) */
.homec .hb-brands{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1000px){.homec .hb-brands{grid-template-columns:1fr 1fr}.homec .brand-l{grid-column:1 / -1}}
@media (max-width:640px){.homec .hb-brands{grid-template-columns:1fr}}
.homec .hb-brand{min-height:420px}
.homec .hb-brand h3{font-size:clamp(26px,2.4vw,34px)}
.homec .hb-brand-body{padding:26px}
.homec .brand-l{background-position:38% 70%}
/* logos pinned to the same spot (top-left) on every panel */
.homec .hb-brand .hc-logo{position:absolute;top:24px;left:26px;margin:0}
@media (max-width:600px){.homec .hb-brand .hc-logo{top:18px;left:20px}}
.homec .hb-brand{min-height:440px}
