/* Cody Earth Solutions: site styles. Brand: green #3d524a, yellow #ebb30e, DM Sans. */
:root {
  --green: #3d524a;
  --green-dark: #2f403a;
  --green-tint: #7d9a92;
  --yellow: #ebb30e;
  --yellow-dark: #d29f08;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #f3f5f7;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(17, 24, 39, .08);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--yellow); color: var(--yellow); background: rgba(0,0,0,.15); }
.btn-outline:hover { background: var(--yellow); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Top bar + header */
.topbar { border-bottom: 1px solid var(--line); font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.tagline { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.topbar-links a { color: var(--ink); text-decoration: none; margin-left: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 180px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--green); }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.site-nav ul ul { position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--yellow); list-style: none; padding: 8px 0; margin: 0; display: none; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav ul ul a { font-weight: 500; padding: 8px 18px; }
.basket-link { position: relative; color: var(--ink); padding: 8px; }
.basket-count { position: absolute; top: -2px; right: -6px; background: var(--yellow); color: var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 960px) {
  .topbar .tagline { display: none; }
  .topbar-in { justify-content: center; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); display: none; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 10px 20px 20px; gap: 0; }
  .site-nav ul ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .has-sub > a::after { display: none; }
}

/* Hero (home) */
.hero { position: relative; min-height: 520px; display: grid; place-items: center; text-align: center; color: #fff; background: #333 url(/img/hero.webp) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.4)); }
.hero-in { position: relative; padding: 80px 20px; max-width: 900px; }
.hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); margin-bottom: 1.6em; }
.hero .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-strip { height: 40px; background: var(--green-tint); }

/* Page hero (inner pages) */
.page-hero { background: var(--green); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #e6ece9; font-size: 1.12rem; margin: 0; }
.page-hero .crumbs { font-size: .85rem; margin-bottom: 10px; }
.page-hero .crumbs a { color: var(--yellow); text-decoration: none; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.center { text-align: center; }

/* Trust card */
.trust { margin-top: -0px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.trust-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; margin: 0 auto 14px; color: #fff; }
.trust-grid h3 { font-size: 1.08rem; margin-bottom: .35em; }
.trust-grid p { color: var(--muted); font-size: .95rem; margin: 0; }
.stars { color: var(--ink); letter-spacing: 2px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step img { border: 1px solid var(--line); padding: 4px; background: #fff; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 12px; }
.step p { text-align: center; color: var(--muted); font-size: .96rem; }
.step strong { color: var(--ink); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card.featured { border: 2px solid var(--green); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.card-badge { display: inline-block; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; align-self: flex-start; }
.price { font-size: 1.6rem; font-weight: 700; margin: 4px 0 10px; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.card-body .btn { margin-top: auto; }
.card-body ul { padding-left: 1.1em; color: var(--muted); }

/* Savings band */
.savings { background: #f0f3f7; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 32px; text-align: center; }
.savings .big { font-size: 2.2rem; font-weight: 700; color: var(--yellow); }
.savings .big sup { font-size: .8rem; background: var(--yellow); color: #fff; padding: 2px 6px; border-radius: 4px; vertical-align: super; }

/* Reviews */
.reviews { text-align: center; max-width: 860px; margin: 0 auto; }
.reviews blockquote { margin: 0; font-size: 1.3rem; }
.reviews cite { display: block; font-style: normal; color: var(--muted); margin-top: 12px; font-size: .95rem; }
.review { display: none; }
.review.active { display: block; animation: fade .4s; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.dots button.active { background: var(--green); }
.quote-mark { color: var(--yellow); font-size: 4rem; line-height: 1; font-family: Georgia, serif; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* CTA band */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--yellow); }
.cta-band p { font-size: 1.1rem; }

/* Prose (info pages) */
.prose { max-width: 820px; margin: 0 auto; padding: 56px 20px 72px; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose figure { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); }
.prose blockquote { border-left: 4px solid var(--yellow); margin: 1.2em 0; padding: .4em 1.2em; color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 48px 0 24px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 4px; background: none; cursor: pointer; overflow: hidden; }
.thumbs button.active { border-color: var(--green); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.buy { position: sticky; top: 100px; }
.buy h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.buy .lead { color: var(--muted); }
.buy .delivery-note { background: var(--soft); border-left: 4px solid var(--yellow); padding: 10px 14px; font-size: .95rem; margin: 14px 0; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 18px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 42px; border: 0; background: var(--soft); font-size: 1.2rem; cursor: pointer; }
.qty input { width: 52px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.options { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.options label { border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; font-weight: 700; }
.options input { position: absolute; opacity: 0; }
.options input:checked + span { color: var(--green); }
.options label:has(input:checked) { border-color: var(--green); background: #f2f6f4; }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.added { color: var(--green); font-weight: 700; min-height: 1.6em; }
.product-desc { max-width: 860px; padding-top: 24px; padding-bottom: 72px; }
.product-desc h2 { margin-top: 1.4em; }
.product-desc table { width: 100%; border-collapse: collapse; }
.product-desc th, .product-desc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.product-desc th { background: var(--soft); }

/* Basket */
.basket { padding: 48px 20px 80px; display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.basket-lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line img { width: 90px; height: 90px; object-fit: cover; border-radius: 4px; }
.line .name { font-weight: 700; }
.line .unit { color: var(--muted); font-size: .9rem; }
.line .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.line .total { font-weight: 700; min-width: 80px; text-align: right; }
.summary { background: var(--soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 18px; }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary .grand { font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 10px; }
.summary .small { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.empty { text-align: center; padding: 40px 0; }
.error { color: #b42318; font-weight: 700; }
.upsell { margin-top: 28px; padding: 18px; border: 1px dashed var(--green-tint); border-radius: var(--radius); }
.upsell-items { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Forms / tools */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 820px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd4dc; border-radius: var(--radius); font: inherit; background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.field-check input { margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.result { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.result span { display: block; color: var(--muted); font-size: .9rem; }
.result strong { font-size: 1.6rem; }
.result.main { grid-column: 1 / -1; background: var(--green); color: #fff; }
.result.main span { color: #dfe7e3; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.hp { position: absolute; left: -5000px; }
.quiz-progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.quiz-progress span { display: block; height: 100%; background: var(--yellow); transition: width .25s; }
.quiz-q { display: none; }
.quiz-q.active { display: block; }
.choices { display: grid; gap: 10px; margin: 16px 0 24px; }
.choices label { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; font-weight: 500; }
.choices label:has(input:checked) { border-color: var(--green); background: #f2f6f4; }
.choices input { margin-right: 10px; }
.quiz-result { display: none; text-align: center; }
.quiz-result.show { display: block; }
.badge { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 56px 20px 80px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.contact-card a { font-weight: 700; }
.form-msg { margin-top: 12px; font-weight: 700; }
.form-msg.ok { color: var(--green); }

/* Posts list */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; padding: 56px 20px 80px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: .93rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-logo { width: 150px; margin-bottom: 12px; }
.site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 24px; font-size: .82rem; }
.footer-base a { margin-left: 16px; }

@media (max-width: 900px) {
  .trust-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .product, .basket, .contact-grid { grid-template-columns: 1fr; }
  .buy, .summary { position: static; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .trust-grid, .steps, .results, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line .total { grid-column: 2; text-align: left; }
  .footer-in { grid-template-columns: 1fr; }
  .tool { padding: 22px; }
}
[hidden] { display: none !important; }
.install-grid { display: grid; grid-template-columns: 1.33fr 1fr; gap: 20px; align-items: stretch; }
.install-grid figure { margin: 0; }
.install-grid img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.install-grid figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
@media (max-width: 700px) { .install-grid { grid-template-columns: 1fr; } }
.install-grid { grid-template-columns: 1fr 1fr; }
.gallery-main img { max-height: 640px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.review-grid-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 16px 0; }
.rcard { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.rcard blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); border: 0; padding: 0; }
.rcard figcaption strong { display: block; }
.rcard figcaption span { font-size: .82rem; color: var(--green); font-weight: 700; }
.product-desc .rcard blockquote { color: var(--ink); }

/* Trustpilot */
.tp-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: .95rem; margin: 6px 0 14px; }
.tp-badge:hover { border-color: #00b67a; }
.tp-stars { color: #00b67a; letter-spacing: 2px; font-size: 1.15rem; line-height: 1; }
.rcard-tp { border-top-color: #00b67a; }
.rcard-tp figcaption span { color: #00875a; }
.btn-line { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: #fff; }
.muted { color: var(--muted); }
