/* /css/styles.css */

:root {
  --bg-cream: #FAF7F2; --bg-sand: #F0EAE1; --bg-surface: #FFFFFF;
  --forest-900: #0F291E; --forest-800: #1B4332; --forest-700: #2D6A4F; --forest-100: #E3F0E9;
  --earth-tan: #D5C7B2; --earth-brown: #5C4D3C; --amber-500: #D97706; --amber-400: #F59E0B;
  --text-primary: #18241E; --text-secondary: #4A5950;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container-max: 1240px; --radius-sm: 6px; --radius-md: 12px;
  --shadow-card: 0 8px 24px -4px rgba(15, 41, 30, 0.08);
}
[data-theme="dark"] {
  --bg-cream: #0B1912; --bg-sand: #12261C; --bg-surface: #183225;
  --forest-900: #ECF4F0; --forest-800: #6EE7B7; --forest-100: #1E3F2F;
  --earth-tan: #2D4A3B; --text-primary: #F0F7F4; --text-secondary: #A7C4B5;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg-cream); color: var(--text-primary); line-height: 1.65; padding-bottom: 70px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--amber-400); color: #0F291E; padding: 0.75rem 1.25rem; font-weight: 700; z-index: 9999; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--forest-900); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 500; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
ul, ol { margin-bottom: 1rem; padding-left: 1.35rem; color: var(--text-secondary); }
li { margin-bottom: 0.4rem; }
a { color: var(--forest-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-sand { background-color: var(--bg-sand); }
.section-dark { background-color: #0F291E; color: #FAF7F2; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: #FAF7F2; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.top-bar { background: #091A12; color: #FAF7F2; font-size: 0.82rem; padding: 0.45rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar .sep { margin: 0 0.45rem; opacity: 0.5; }
.top-phone { color: var(--amber-400); font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(250, 247, 242, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--earth-tan); }
[data-theme="dark"] .site-header { background: rgba(11, 25, 18, 0.96); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 1rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--forest-900); display: block; line-height: 1.1; }
.brand-sub { font-size: 0.74rem; color: var(--text-secondary); font-weight: 500; display: flex; align-items: center; gap: 0.4rem; margin-top: 2px; }
.glosun-badge { display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; background: var(--forest-100); color: var(--forest-800); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--forest-700); }
.main-nav ul { display: flex; list-style: none; gap: 1.1rem; align-items: center; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.main-nav a:hover { color: var(--amber-500); }
.theme-btn { background: none; border: 1px solid var(--earth-tan); border-radius: 6px; padding: 0.35rem 0.55rem; cursor: pointer; font-size: 1rem; }
.mobile-btn { display: none; padding: 0.4rem 0.75rem; }
@media (max-width: 1240px) {
  .mobile-btn { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-surface); padding: 1.25rem; border-bottom: 2px solid var(--earth-tan); box-shadow: var(--shadow-card); }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.8rem 1.4rem; border-radius: 6px; font-weight: 700; font-size: 0.94rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; }
.btn-primary { background: var(--amber-400); color: #0F291E; }
.btn-primary:hover { background: var(--amber-500); color: #FFFFFF; }
.btn-secondary { background: var(--forest-800); color: #FFFFFF; }
.btn-outline { border-color: var(--forest-800); color: var(--forest-800); background: transparent; }
.card { background: var(--bg-surface); border: 1px solid var(--earth-tan); border-radius: 12px; padding: 1.65rem; box-shadow: var(--shadow-card); }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--forest-700); background: var(--forest-100); padding: 0.28rem 0.75rem; border-radius: 99px; margin-bottom: 0.75rem; }
.breadcrumb { padding-top: 1rem; font-size: 0.85rem; color: var(--text-secondary); }
.breadcrumb a { color: var(--forest-800); text-decoration: none; font-weight: 600; }
.form-group { margin-bottom: 0.9rem; }
.form-label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 0.3rem; color: var(--text-primary); }
.form-control { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--earth-tan); border-radius: 6px; background: var(--bg-surface); color: var(--text-primary); font-family: inherit; font-size: 0.96rem; }
.hp-field { display: none !important; visibility: hidden !important; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: 12px; border: 1px solid var(--earth-tan); }
table { width: 100%; border-collapse: collapse; background: var(--bg-surface); text-align: left; }
th, td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--earth-tan); font-size: 0.92rem; }
th { background: var(--bg-sand); font-weight: 700; color: var(--forest-900); }
details.faq-item { background: var(--bg-surface); border: 1px solid var(--earth-tan); border-radius: 6px; margin-bottom: 0.7rem; padding: 0.95rem 1.2rem; }
details.faq-item summary { font-weight: 700; cursor: pointer; color: var(--forest-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-500); font-weight: 800; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-body { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--bg-sand); }
.site-footer { background: #091A12; color: #D5E2DC; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-heading { font-family: var(--font-display); font-size: 1.08rem; color: #FFFFFF; display: block; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: #D5E2DC; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: #A7C4B5; }
.footer-legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal-links a { color: #A7C4B5; text-decoration: none; }
.mobile-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: #0F291E; border-top: 2px solid var(--amber-400); }
.mobile-sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.85rem 0.4rem; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 0.86rem; border-right: 1px solid rgba(255,255,255,0.15); }
.mobile-sticky-bar a.cta-quote { background: var(--amber-400); color: #0F291E; border-right: none; }
@media (min-width: 992px) { .mobile-sticky-bar { display: none; } }
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 990; background: #25D366; color: #072613; font-weight: 700; padding: 0.8rem 1.2rem; border-radius: 99px; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: none; align-items: center; gap: 0.4rem; }
@media (min-width: 992px) { .whatsapp-float { display: inline-flex; } }
.dpdp-banner { position: fixed; bottom: 75px; left: 1rem; right: 1rem; max-width: 500px; background: var(--bg-surface); border: 2px solid var(--forest-800); padding: 1rem; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); z-index: 1001; display: none; }

/* ---- Additions: logo, prose pages, layouts ---- */
.nav-accent { color: var(--amber-500) !important; }
.nav-cta { padding: 0.45rem 0.9rem; }
.brand-glosun { height: 24px; width: auto; vertical-align: middle; }
.logo-chip { display: inline-block; background: #FAF7F2; border-radius: 8px; padding: 0.4rem 0.65rem; line-height: 0; }
.logo-chip img { height: 41px; width: auto; }
.footer-note { color: #A7C4B5; font-size: 0.85rem; }
.footer-address { font-style: normal; line-height: 1.6; color: #D5E2DC; font-size: 0.88rem; }
.footer-strong-link { color: var(--amber-400); font-weight: 700; text-decoration: none; }
.form-feedback { margin-top: 0.85rem; }

.page-hero { background: var(--bg-sand); border-bottom: 1px solid var(--earth-tan); padding: clamp(2rem, 4vw, 3.25rem) 0; }
.page-hero h1 { max-width: 22ch; max-width: 900px; }
.page-hero .lead { font-size: 1.1rem; max-width: 760px; color: var(--text-secondary); }
.meta-line { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .two-col { grid-template-columns: minmax(0, 1fr) 360px; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose table { font-size: 0.92rem; }
.prose .table-wrap { margin: 1.25rem 0; }
.aside-card { position: sticky; top: 94px; }
.aside-card .btn { width: 100%; }
.callout { border-left: 4px solid var(--forest-700); background: var(--forest-100); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.callout p { margin-bottom: 0.4rem; color: var(--text-primary); }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber-500); background: rgba(245, 158, 11, 0.12); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.stat { background: var(--bg-surface); border: 1px solid var(--earth-tan); border-radius: 10px; padding: 1rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--forest-800); line-height: 1.2; }
.stat span { font-size: 0.85rem; color: var(--text-secondary); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding: 0.2rem 0 0.9rem 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--forest-800); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.cta-band { background: var(--forest-900); color: #FAF7F2; border-radius: 14px; padding: 2rem; margin: 2.5rem 0 0; }
[data-theme="dark"] .cta-band { background: #0B1912; border: 1px solid var(--earth-tan); }
.cta-band h2, .cta-band h3, .cta-band p { color: #FAF7F2; margin-top: 0; }
.cta-band .btn-outline { border-color: #FAF7F2; color: #FAF7F2; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related a { display: block; background: var(--bg-surface); border: 1px solid var(--earth-tan); border-radius: 10px; padding: 1rem; text-decoration: none; font-weight: 700; color: var(--forest-900); }
.related a small { display: block; font-weight: 400; color: var(--text-secondary); margin-top: 0.25rem; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--forest-700); }
.tick-list { list-style: none; padding-left: 0; }
.tick-list li { padding-left: 1.6rem; position: relative; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-700); font-weight: 800; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.88rem; color: #D5E2DC; margin-top: 1.25rem; }
.faq-search { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--earth-tan); border-radius: 8px; margin-bottom: 1.25rem; background: var(--bg-surface); color: var(--text-primary); font-size: 1rem; }
.sitemap-list { columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .sitemap-list { columns: 1; } }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; }

/* ---- Lighter headings, SunScore icon and modal ---- */
h1, h2 { font-weight: 500; }
h3, h4 { font-weight: 600; }
.brand-name { font-weight: 600; }
.nav-accent { font-weight: 600 !important; }
.stat strong, .footer-heading { font-weight: 600; }
details.faq-item summary { font-weight: 600; }
.ss-icon { height: 22px; width: 22px; vertical-align: -6px; margin-right: 0.15rem; }
.btn .ss-icon { vertical-align: middle; margin: 0; }
.ss-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 25, 18, 0.62); display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; }
.ss-modal[hidden] { display: none; }
.ss-modal-box { position: relative; background: var(--bg-cream); border-radius: 14px; width: 100%; max-width: 880px; margin: auto; padding: 1.25rem 1.25rem 1.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.ss-modal-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-right: 2.75rem; }
.ss-modal-head strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--forest-900); line-height: 1.1; }
.ss-modal-head span { font-size: 0.85rem; color: var(--text-secondary); }
.ss-close { position: absolute; top: 0.7rem; right: 0.7rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--earth-tan); background: var(--bg-surface); color: var(--text-primary); font-size: 1.5rem; line-height: 1; cursor: pointer; }
body.ss-open { overflow: hidden; }
@media (max-width: 640px) {
  .ss-modal { padding: 0; }
  .ss-modal-box { border-radius: 0; min-height: 100%; padding: 1rem; }
  .ss-modal .grid { grid-template-columns: 1fr !important; }
}

/* ---- Layout fixes found in screenshots ---- */
.btn.mobile-btn { display: none; white-space: nowrap; }
@media (max-width: 1180px) { .btn.mobile-btn { display: inline-flex; } }
@media (max-width: 768px) { .top-bar { display: none; } }
.main-nav a { white-space: nowrap; }
.main-nav ul { gap: 0.95rem; }
.section-dark .card h1, .section-dark .card h2, .section-dark .card h3 { color: var(--forest-900); }
.section-dark .card p { color: var(--text-secondary); }
.ss-modal-head img { flex-shrink: 0; }
.brand-lockup { flex-shrink: 0; }
.brand-sub { white-space: nowrap; }
.main-nav ul { gap: 0.85rem; }
.main-nav a { font-size: 0.87rem; }
.main-nav ul { gap: 0.7rem; }
.main-nav a { font-size: 0.86rem; }
@media (max-width: 640px) {
  .brand-sub { white-space: normal; flex-wrap: wrap; }
  .brand-name { font-size: 1.05rem; }
}
@media (max-width: 1240px) { .btn.mobile-btn { display: inline-flex; } }
@media (max-width: 640px) { .brand-lockup { flex-shrink: 1; min-width: 0; } }

/* ---- One launcher each: floating buttons (desktop) and sticky bar (mobile) ---- */
.mobile-sticky-bar { grid-template-columns: 1fr 1fr 1fr 1.1fr; }
.mobile-sticky-bar a { font-size: 0.78rem; padding: 0.8rem 0.2rem; gap: 0.25rem; }
.mobile-sticky-bar a:last-child { border-right: none; }
.float-stack { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 990; display: none; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
@media (min-width: 992px) { .float-stack { display: flex; } }
.float-stack .whatsapp-float { position: static; display: inline-flex; }
.float-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1.2rem; border-radius: 99px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }
.float-survey { background: var(--amber-400); color: #0F291E; }
.float-ss { background: #1B4332; color: #FAF7F2; }
.container > article.prose { margin-left: auto; margin-right: auto; }
.section-dark .card td, .section-dark .card th { color: var(--text-primary); }
.section-dark .card a { color: var(--forest-700); }
.mobile-sticky-bar a { white-space: nowrap; font-size: 0.74rem; padding: 0.85rem 0.1rem; justify-content: center; }

/* ---- SunScore soft gate ---- */
.ss-locked { filter: blur(7px); pointer-events: none; user-select: none; transition: filter 0.4s; }
.ss-unlock-box { border: 2px dashed var(--forest-700); background: var(--forest-100); border-radius: 10px; padding: 1rem 1.1rem; }
.ss-range { width: 100%; margin-top: 0.6rem; accent-color: var(--forest-700); }
.ss-range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); }
.ss-advanced { border: 1px solid var(--earth-tan); border-radius: 8px; padding: 0.7rem 0.9rem; background: var(--bg-surface); }
.ss-advanced summary { cursor: pointer; font-weight: 600; color: var(--forest-800); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; display: block; }
.gallery figcaption { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.35rem; }
