/* Puretane brand: colors and font taken from the original puretane.us theme and logo */
:root {
  --puretane-blue: #7CB0DC;   /* logo blue */
  --navy: #00446B;            /* original menu color; text-safe on white */
  --navy-dark: #00334F;
  --flag-green: #8CC63F;      /* logo flag stripes; accent only */
  --charcoal: #292A2D;        /* original footer */
  --mist: #F0F0F2;            /* product photo background */
  --sky-tint: #EAF3FA;
  --line: #D9DEE3;
  --ink: #1F2021;             /* original heading color */
  --body: #323232;            /* original body color */
  --muted: #5B6168;
  --white: #FFFFFF;
  --font: "Nunito Sans", system-ui, sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--puretane-blue); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-family: var(--font); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.22rem; color: var(--muted); }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--puretane-blue); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .phone { font-weight: 800; color: var(--navy); white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--navy); }

/* Products dropdown: opens on hover, keyboard focus or click */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.dropdown-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dropdown.active .dropdown-toggle { color: var(--navy); }
.dropdown-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -16px; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 51, 79, .14);
  display: none; z-index: 20;
}
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* hover bridge */
.dropdown-menu { margin-top: 14px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown:hover .dropdown-toggle::after, .dropdown.open .dropdown-toggle::after { transform: translateY(2px) rotate(-135deg); }
.nav .dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav .dropdown-menu a:hover, .nav .dropdown-menu a[aria-current="page"] { background: var(--sky-tint); text-decoration: none; }
.dropdown-menu strong { display: block; color: var(--ink); font-weight: 800; }
.dropdown-menu span { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

/* Buttons: rounded like the original theme (30px radius) */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 30px;
  font-weight: 800; text-decoration: none; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.nav .btn { padding: 10px 18px; color: var(--white); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; align-items: center; }
.hero h1 .figure { color: var(--navy); white-space: nowrap; }
.hero .rule { width: 72px; height: 6px; border-radius: 3px; background: var(--puretane-blue); margin: 0 0 22px; }
.hero .actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; background: var(--mist); border-radius: 18px; overflow: hidden; }
.hero-photo figcaption { padding: 0 22px 18px; color: var(--muted); font-size: .95rem; }

/* Terms strip */
.terms { background: var(--sky-tint); border-top: 1px solid #D3E5F3; border-bottom: 1px solid #D3E5F3; }
.terms .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.terms div { padding: 24px 22px 24px 0; }
.terms div + div { padding-left: 22px; border-left: 1px solid #C9DDEE; }
.terms h3 { margin-bottom: .2em; color: var(--navy); }
.terms p { margin: 0; color: var(--muted); font-size: .98rem; }

section { padding: 72px 0; }
.section-intro { margin-bottom: 32px; }

/* Product comparison */
.compare { width: 100%; border-collapse: collapse; background: var(--white); }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-size: 1.1rem; }
.compare thead th:first-child { background: var(--white); }
.compare thead th a { color: var(--white); }
.compare tbody th { color: var(--muted); font-weight: 600; width: 26%; }
.compare td { font-weight: 700; color: var(--ink); }
.compare td span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.compare tfoot td { border-bottom: 0; padding-top: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

/* Spec sheet (product pages) */
.spec .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.photo { background: var(--mist); border-radius: 18px; overflow: hidden; margin: 0; }
.sheet { background: var(--mist); border-radius: 18px; padding: 8px 28px 20px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 14px 0; border-bottom: 1px solid #DCDCE0; vertical-align: top; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 16px; }
.sheet td { font-weight: 700; color: var(--ink); }
.sheet td span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* Ordering: pallet drawing + steps */
.order .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center; }
.pallet { margin: 0; }
.pallet svg { width: 100%; height: auto; }
.pallet figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--puretane-blue); color: var(--navy-dark); font-weight: 800; font-size: 1.2rem;
}
.steps h3 { margin: 6px 0 .25em; }
.steps p { margin: 0; color: var(--muted); }
.steps.row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps.row li { grid-template-columns: 1fr; }

.alt { background: var(--mist); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; }

/* CTA band (original footer charcoal) */
.cta-band { background: var(--charcoal); color: var(--white); padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9CDD2; }
.cta-band .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btn { background: var(--puretane-blue); border-color: var(--puretane-blue); color: var(--charcoal); }
.cta-band .btn:hover { background: #9CC4E6; border-color: #9CC4E6; }
.cta-band .btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.cta-band .btn.ghost:hover { background: var(--white); color: var(--charcoal); }
.cta-band .actions { margin-top: 0; }

/* Inner pages */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-head .rule { width: 56px; height: 5px; border-radius: 3px; background: var(--puretane-blue); margin: 0 0 18px; }
.prose { padding-top: 24px; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: .4em; }
.note { color: var(--muted); font-size: .95rem; }
.custom-note { margin: 20px 2px 0; padding: 16px 20px; background: var(--sky-tint); border-radius: 14px; max-width: none; }
.custom-blends { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.addr { margin: 0 0 12px; }
.site-foot .addr { color: #C9CDD2; font-size: .9rem; }
.fine { color: var(--muted); font-size: .82rem; margin: 10px 2px 0; }
.terms .fine { margin: 0; font-size: .85rem; }

/* Form */
.quote-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
form label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #A9B2BA; border-radius: 10px; background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid #A9B2BA; border-radius: 30px; font-weight: 600; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--navy); background: var(--sky-tint); }
.choice input { width: auto; margin: 0; accent-color: var(--navy); }
.hidden { position: absolute; left: -9999px; }
.aside { background: var(--sky-tint); border-radius: 18px; padding: 24px 28px; }
.aside h3 { margin-top: 0; }
.aside p:last-child { margin-bottom: 0; }

/* Cans */
.cans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cans-grid figure { margin: 0; }
.cans-grid img { border-radius: 14px; background: var(--mist); }
.cans-grid figcaption { margin-top: 8px; font-weight: 700; color: var(--ink); }

/* Footer */
.site-foot { background: var(--charcoal); color: #A7ABB0; padding: 48px 0 40px; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot .logo img { height: 34px; background: var(--white); border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #E2E4E7; text-decoration: none; }
.site-foot a:hover { color: var(--puretane-blue); text-decoration: underline; }
.site-foot h3 { font-size: 1rem; color: var(--white); }
.site-foot .legal { max-width: none; grid-column: 1 / -1; border-top: 1px solid #3A3B3F; padding-top: 18px; margin-top: 8px; }

@media (max-width: 900px) {
  .hero .wrap, .spec .wrap, .order .wrap, .cols, .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 36px; }
  .terms .wrap { grid-template-columns: 1fr 1fr; }
  .terms div, .terms div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .steps.row { grid-template-columns: 1fr; }
  .cans-grid { grid-template-columns: repeat(2, 1fr); }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav.open { display: flex; }
  .dropdown { width: 100%; }
  .dropdown::after { display: none; }
  .dropdown-toggle { font-weight: 800; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 0; margin: 6px 0 0; min-width: 0; }
  .dropdown-toggle::after { display: none; }
  .site-head .wrap { position: relative; }
  section { padding: 52px 0; }
  .logo img { height: 34px; }
}
@media (max-width: 560px) {
  form .row { grid-template-columns: 1fr; }
  .terms .wrap { grid-template-columns: 1fr; }
  .sheet { padding: 4px 18px 14px; }
  .sheet th { width: 45%; }
  .hero h1 .figure { white-space: normal; }
}
@media (max-width: 680px) {
  .table-scroll { overflow: visible; }
  .compare thead tr, .compare tbody tr, .compare tfoot tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare thead th:first-child, .compare tfoot td:first-child { display: none; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 0; border-bottom: 0; font-size: .9rem; }
  .compare td { padding: 6px 16px 14px; }
  .compare thead th { padding: 14px 16px; font-size: 1rem; }
  .compare tfoot td { padding: 16px; }
  .compare tfoot .btn { padding: 10px 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
