/*
Theme Name: Dr. Bronner's All-One
Theme URI: https://www.drbronner.com/
Description: A lightweight GeneratePress child theme that recreates the Dr. Bronner's homepage without Shopify dependencies.
Author: Site team
Template: generatepress
Version: 1.0.0
Text Domain: drbronner-all-one
*/

:root {
  --blue: #003b7a;
  --blue-dark: #002753;
  --yellow: #f8d63b;
  --orange: #e8792f;
  --ink: #111111;
  --muted: #5d6670;
  --line: #e6e8e7;
  --paper: #ffffff;
  --soft: #f6f7f4;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.db-container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.db-topbar { background: var(--blue); color: #fff; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 8px 16px; }
.db-topbar a { text-decoration: underline; text-underline-offset: 3px; }
.db-site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.db-header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.db-brand { display: inline-flex; align-items: center; width: 190px; }
.db-brand img { width: 178px; height: auto; }
.db-main-nav { display: flex; justify-content: center; align-items: center; gap: 32px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.db-main-nav > li { position: relative; list-style: none; }
.db-main-nav > li > a { display: inline-flex; align-items: center; min-height: 76px; text-decoration: none; }
.db-main-nav .sub-menu { position: absolute; top: calc(100% - 1px); left: 50%; z-index: 2; min-width: 210px; margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; list-style: none; }
.db-main-nav > li:hover > .sub-menu, .db-main-nav > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.db-main-nav .sub-menu a { display: block; padding: 6px 0; font-size: 14px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.db-main-nav a, .db-utility a { text-decoration: none; }
.db-main-nav a:hover, .db-utility a:hover { color: var(--blue); }
.db-nav-item { position: relative; }
.db-nav-item > a { display: inline-flex; align-items: center; gap: 6px; min-height: 76px; }
.db-nav-item.has-children > a::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.db-dropdown { position: absolute; top: calc(100% - 1px); left: 50%; transform: translate(-50%, 8px); width: 650px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 28px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.db-nav-item:hover .db-dropdown, .db-nav-item:focus-within .db-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.db-dropdown h3 { margin: 0 0 9px; color: var(--blue); font-size: 12px; letter-spacing: .12em; }
.db-dropdown a { display: block; padding: 4px 0; font-size: 14px; font-weight: 400; }
.db-utility { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 14px; }
.db-icon-link { display: inline-flex; align-items: center; gap: 7px; }
.db-icon { width: 18px; height: 18px; border: 1.3px solid currentColor; border-radius: 50%; position: relative; display: inline-block; }
.db-icon.search::after { content: ''; position: absolute; width: 7px; height: 1.3px; background: currentColor; transform: rotate(45deg); right: -5px; bottom: -2px; }
.db-icon.user::before { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; top: 3px; left: 5px; }
.db-icon.user::after { content: ''; position: absolute; width: 9px; height: 5px; border: 1px solid currentColor; border-radius: 7px 7px 0 0; border-bottom: 0; left: 3px; bottom: 2px; }
.db-cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; color: #fff; background: var(--orange); font-size: 11px; }
.db-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.db-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); }
.db-hero { position: relative; min-height: clamp(420px, 52vw, 720px); overflow: hidden; color: #fff; background: var(--blue-dark); }
.db-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,24,58,.32); }
.db-hero-content { position: relative; z-index: 1; min-height: inherit; display: flex; align-items: flex-end; padding: clamp(40px, 8vw, 105px) 0; }
.db-hero-copy { max-width: 540px; }
.db-kicker { font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 12px; }
.db-hero h1 { margin: 0 0 18px; color: #fff; font-size: clamp(42px, 6vw, 82px); line-height: .96; letter-spacing: -.03em; text-transform: uppercase; }
.db-hero p { max-width: 430px; margin: 0 0 26px; font-size: 18px; }
.db-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 12px 24px; border: 2px solid currentColor; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, background .18s ease; }
.db-button:hover { color: var(--ink); background: #fff; transform: translateY(-2px); }
.db-button--light { color: var(--blue-dark); background: #fff; }
.db-button--light:hover { background: var(--yellow); }
.db-section { padding: clamp(54px, 8vw, 105px) 0; }
.db-section--soft { background: var(--soft); }
.db-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 30px; }
.db-section-heading h2 { margin: 0; color: var(--blue); font-size: clamp(29px, 4vw, 50px); line-height: 1; text-transform: uppercase; letter-spacing: -.025em; }
.db-section-heading p { max-width: 450px; margin: 0; color: var(--muted); }
.db-text-link { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.db-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.db-product { position: relative; min-width: 0; }
.db-product-media { aspect-ratio: 1; overflow: hidden; background: #f1f2ee; }
.db-product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.db-product:hover .db-product-media img { transform: scale(1.04); }
.db-product h3 { margin: 16px 0 4px; font-size: 16px; line-height: 1.25; }
.db-product p { margin: 0; color: var(--muted); font-size: 14px; }
.db-price { margin-top: 8px; font-weight: 700; }
.db-card-label { position: absolute; left: 10px; top: 10px; padding: 5px 8px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.db-collection-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 16px; }
.db-collection { position: relative; overflow: hidden; color: #fff; background: var(--blue-dark); }
.db-collection:nth-child(1), .db-collection:nth-child(6) { grid-row: span 2; }
.db-collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.db-collection:hover img { transform: scale(1.04); }
.db-collection::after { content: ''; position: absolute; inset: 45% 0 0; background: rgba(0,0,0,.44); }
.db-collection-content { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; }
.db-collection h3 { margin: 0; color: #fff; font-size: clamp(19px, 2vw, 30px); line-height: 1; text-transform: uppercase; }
.db-collection a { display: inline-block; margin-top: 11px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.db-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--yellow); }
.db-feature-media { min-height: 360px; }
.db-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.db-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 90px); }
.db-feature-copy h2 { max-width: 500px; margin: 0 0 16px; color: var(--blue); font-size: clamp(31px, 4vw, 58px); line-height: .98; text-transform: uppercase; }
.db-feature-copy p { max-width: 510px; margin: 0 0 24px; font-size: 17px; }
.db-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.db-compare-card { position: relative; min-height: 470px; overflow: hidden; background: #fff; }
.db-compare-card img { width: 100%; height: 100%; object-fit: cover; }
.db-compare-card::after { content: ''; position: absolute; inset: 50% 0 0; background: rgba(0,33,80,.66); }
.db-compare-card-content { position: absolute; z-index: 1; left: clamp(22px, 5vw, 60px); bottom: clamp(24px, 5vw, 55px); color: #fff; }
.db-compare-card-content h3 { margin: 0 0 8px; color: #fff; font-size: clamp(28px, 4vw, 52px); line-height: .95; text-transform: uppercase; }
.db-compare-card-content p { max-width: 320px; margin: 0 0 16px; }
.db-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.db-post img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.db-post .db-kicker { margin: 17px 0 7px; color: var(--orange); font-size: 11px; }
.db-post h3 { margin: 0; color: var(--blue); font-size: 19px; line-height: 1.15; }
.db-post a { text-decoration: none; }
.db-newsletter { padding: 62px 0; background: var(--blue); color: #fff; }
.db-newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.db-newsletter h2 { margin: 0 0 8px; color: #fff; font-size: clamp(29px, 4vw, 49px); line-height: 1; text-transform: uppercase; }
.db-newsletter p { margin: 0; color: #dbe9fb; }
.db-newsletter-form { display: flex; flex: 1 1 500px; max-width: 540px; }
.db-newsletter-form input { min-width: 0; flex: 1; border: 0; border-bottom: 2px solid #fff; border-radius: 0; padding: 13px 0; color: #fff; background: transparent; font: inherit; outline: none; }
.db-newsletter-form input::placeholder { color: #dbe9fb; }
.db-newsletter-form button { border: 0; border-bottom: 2px solid #fff; padding: 0 0 0 18px; background: transparent; color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.db-site-footer { padding: 56px 0 24px; color: #fff; background: var(--blue-dark); }
.db-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px; }
.db-footer-brand img { width: 165px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.db-footer-brand p { max-width: 230px; color: #dbe9fb; font-size: 14px; }
.db-footer-col h3 { margin: 0 0 13px; color: var(--yellow); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.db-footer-col a { display: block; margin: 6px 0; color: #fff; font-size: 14px; text-decoration: none; }
.db-footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.db-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 45px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); color: #b8c9da; font-size: 12px; }
.db-footer-bottom a { text-decoration: none; }
.db-footer-social { display: flex; gap: 14px; }
.db-footer-social a { font-weight: 700; }
.db-mobile-panel { display: none; }
@media (max-width: 1040px) {
  .db-header-inner { grid-template-columns: auto 1fr auto; }
  .db-brand { order: 2; justify-self: center; }
  .db-main-nav { display: none; }
  .db-utility { order: 3; }
  .db-menu-toggle { display: block; order: 1; }
  .db-header-inner.is-open + .db-mobile-panel { display: block; }
  .db-mobile-panel { border-top: 1px solid var(--line); padding: 12px 24px 22px; }
  .db-mobile-panel a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; }
  .db-mobile-panel a:last-child { border-bottom: 0; }
  .db-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .db-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .db-container { width: min(100% - 32px, var(--max)); }
  .db-header-inner { min-height: 66px; gap: 8px; }
  .db-brand { width: 138px; }
  .db-brand img { width: 138px; }
  .db-utility { gap: 11px; }
  .db-utility .db-icon-link span:not(.db-icon), .db-utility > a:nth-child(2) { display: none; }
  .db-hero { min-height: 560px; }
  .db-hero-content { align-items: flex-end; padding-bottom: 55px; }
  .db-hero h1 { font-size: 47px; }
  .db-hero p { font-size: 16px; }
  .db-section-heading { display: block; }
  .db-section-heading p { margin-top: 12px; }
  .db-text-link { display: inline-block; margin-top: 15px; }
  .db-product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .db-collection-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .db-collection:nth-child(1), .db-collection:nth-child(6) { grid-row: span 1; }
  .db-collection:first-child { grid-column: 1 / -1; }
  .db-collection h3 { font-size: 20px; }
  .db-collection-content { left: 14px; right: 14px; bottom: 12px; }
  .db-feature { grid-template-columns: 1fr; }
  .db-feature-media { min-height: 290px; }
  .db-feature-copy { padding: 38px 24px 48px; }
  .db-compare { grid-template-columns: 1fr; }
  .db-compare-card { min-height: 400px; }
  .db-post-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 13px; }
  .db-post h3 { font-size: 17px; }
  .db-newsletter-inner { display: block; }
  .db-newsletter-form { margin-top: 26px; }
  .db-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .db-footer-brand { grid-column: 1 / -1; }
  .db-footer-bottom { display: block; }
  .db-footer-social { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
