/* ============================================
   Bourbon Intelligence — Marketing Site
   Amber / charcoal / cream / leather palette.
   No wine red, ever.
   ============================================ */

:root {
  --amber:        #A66A1F;
  --amber-bright: #D9962C;
  --charcoal:     #211A13;
  --ink:          #171310;
  --cream:        #F6EEDD;
  --leather:      #6B4226;

  --bg:           #FBF7EC;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#FDF9F0;
  --bg-nav:       rgba(251, 247, 236, 0.92);
  --text:         #171310;
  --text-muted:   #5C5142;
  --text-dim:     #97876C;
  --border:       rgba(107, 66, 38, 0.16);
  --border-hover: rgba(107, 66, 38, 0.34);
  --gradient:     linear-gradient(135deg, #A66A1F, #D9962C);
  --radius:       16px;
  --radius-sm:    10px;
  --max-width:    1120px;
  --nav-height:   68px;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, 'Iowan Old Style', Charter, 'Times New Roman', serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
[id], h1, h2, h3, h4 { scroll-margin-top: calc(var(--nav-height) + 20px); }
.section { padding: 96px 0; }
.section--sm { padding: 56px 0; }

/* --- Navigation (sticky) --- */
.nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.nav__logo img { height: 40px; width: 40px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s, background 0.2s; }
.nav__link:hover, .nav__link--active { color: var(--ink); background: rgba(166, 106, 31, 0.10); }
.nav__app {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--cream); background: var(--charcoal); margin-left: 10px;
  transition: background 0.2s, transform 0.2s;
}
.nav__app:hover { background: var(--amber); transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; font-family: var(--font-body); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 22px rgba(166, 106, 31, 0.30), 0 2px 6px rgba(0,0,0,0.10); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(166, 106, 31, 0.38), 0 4px 10px rgba(0,0,0,0.12); }
.btn--secondary { background: var(--bg-card); color: var(--ink); border: 1px solid var(--border-hover); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.btn--secondary:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.btn--dark { background: var(--charcoal); color: var(--cream); }
.btn--dark:hover { background: var(--ink); transform: translateY(-2px); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--cream); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(217, 150, 44, 0.20), transparent 65%),
    radial-gradient(560px 380px at 8% 95%, rgba(166, 106, 31, 0.16), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 84px 0 88px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border: 1px solid rgba(246, 238, 221, 0.25); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--cream); background: rgba(246, 238, 221, 0.07); margin-bottom: 26px; }
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 10px rgba(217, 150, 44, 0.8); }
.hero__title { font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero__title .amber-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle { font-size: clamp(16px, 1.8vw, 19px); color: rgba(246, 238, 221, 0.78); line-height: 1.65; margin-bottom: 36px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__note { font-size: 13.5px; color: rgba(246, 238, 221, 0.55); }
.hero__note strong { color: rgba(246, 238, 221, 0.85); font-weight: 600; }

/* Phone mock (pure CSS/SVG, no stock imagery) */
.phone { width: 300px; max-width: 82vw; margin: 0 auto; background: #0E0B08; border: 1px solid rgba(246, 238, 221, 0.18); border-radius: 42px; padding: 12px; box-shadow: 0 34px 70px rgba(0,0,0,0.5), 0 0 0 6px rgba(217,150,44,0.07); transform: rotate(2.5deg); }
.phone__screen { background: var(--cream); border-radius: 32px; overflow: hidden; color: var(--ink); }
.phone__notch { width: 96px; height: 20px; background: #0E0B08; border-radius: 0 0 12px 12px; margin: 0 auto; }
.phone__body { padding: 16px 16px 8px; }
.phone__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.phone__brand img { width: 24px; height: 24px; }
.phone__counts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.phone__count { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 4px; text-align: center; }
.phone__count-num { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--amber); line-height: 1.1; }
.phone__count-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.phone__row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; }
.phone__bottle { flex-shrink: 0; }
.phone__row-text { flex: 1; min-width: 0; }
.phone__row-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__row-sub { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__chip { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(166,106,31,0.13); color: var(--amber); white-space: nowrap; }
.phone__chip--fill { background: var(--charcoal); color: var(--cream); }
.phone__tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding: 9px 4px 12px; background: #fff; }
.phone__tab { font-size: 9.5px; font-weight: 600; color: var(--text-dim); text-align: center; }
.phone__tab--active { color: var(--amber); }
.phone__tab-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 auto 3px; opacity: 0.9; }

/* --- Section headers --- */
.section-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: clamp(29px, 3.8vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; color: var(--ink); }
.section-subtitle { font-size: 16.5px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.features__header { text-align: center; margin-bottom: 56px; }

/* --- Features --- */
.features { padding: 96px 0; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(23,19,16,0.05); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 10px 26px rgba(23,19,16,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-card--lead { grid-column: span 2; background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.feature-card--lead .feature-card__desc { color: rgba(246,238,221,0.75); }
.feature-card--lead:hover { border-color: var(--leather); box-shadow: 0 12px 30px rgba(23,19,16,0.28); }
.feature-card__icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: rgba(166,106,31,0.11); border: 1px solid rgba(166,106,31,0.22); color: var(--amber); }
.feature-card--lead .feature-card__icon { background: rgba(217,150,44,0.16); border-color: rgba(217,150,44,0.35); color: var(--amber-bright); }
.feature-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.feature-card__desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.feature-card__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 10px; }

/* --- How it works strip --- */
.how-strip { padding: 88px 0; background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.how-step { text-align: left; padding: 26px; background: rgba(255,255,255,0.65); border: 1px solid var(--border); border-radius: var(--radius); }
.how-step__number { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 700; background: var(--gradient); color: #fff; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(166,106,31,0.30); }
.how-step__title { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.how-step__desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* --- Tastings showcase --- */
.tastings { padding: 96px 0; }
.tastings__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.flight { background: var(--charcoal); border-radius: 22px; padding: 26px; box-shadow: 0 22px 48px rgba(23,19,16,0.22); }
.flight__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.flight__title { font-family: var(--font-display); color: var(--cream); font-size: 17px; font-weight: 700; }
.flight__mode { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); background: var(--amber-bright); padding: 4px 10px; border-radius: 999px; }
.flight__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flight__card { background: rgba(246,238,221,0.06); border: 1px solid rgba(246,238,221,0.16); border-radius: 14px; padding: 14px 8px 12px; text-align: center; }
.flight__letter { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--amber-bright); line-height: 1; margin-bottom: 8px; }
.flight__rank { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--cream); border: 1px solid rgba(246,238,221,0.3); padding: 2px 8px; border-radius: 999px; }
.flight__card--top { border-color: var(--amber-bright); background: rgba(217,150,44,0.14); }
.flight__foot { margin-top: 16px; font-size: 12.5px; color: rgba(246,238,221,0.6); text-align: center; }
.tastings__list { margin-top: 22px; }
.tastings__list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15.5px; color: var(--text-muted); line-height: 1.6; }
.tastings__list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--gradient); transform: rotate(45deg); }
.tastings__list strong { color: var(--ink); }

/* --- Steps (how-it-works page) --- */
.steps { padding: 88px 0; }
.steps__list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: flex; gap: 26px; position: relative; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step__indicator { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step__number { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 700; background: var(--gradient); color: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(166,106,31,0.28); }
.step__line { flex: 1; width: 2px; background: linear-gradient(to bottom, var(--amber-bright), var(--border)); margin-top: 8px; }
.step:last-child .step__line { display: none; }
.step__content { padding-top: 9px; }
.step__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 7px; }
.step__desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* --- CTA --- */
.cta { padding: 96px 0; }
.cta__card { max-width: 720px; margin: 0 auto; text-align: center; padding: 56px 40px; background: var(--charcoal); color: var(--cream); border-radius: 24px; position: relative; overflow: hidden; box-shadow: 0 20px 44px rgba(23,19,16,0.22); }
.cta__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(480px 260px at 50% 115%, rgba(217,150,44,0.22), transparent 65%); pointer-events: none; }
.cta__mark { width: 54px; height: 54px; margin: 0 auto 18px; position: relative; }
.cta__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-bottom: 13px; position: relative; }
.cta__desc { font-size: 16px; color: rgba(246,238,221,0.75); margin-bottom: 30px; line-height: 1.65; position: relative; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta__note { margin-top: 20px; font-size: 13px; color: rgba(246,238,221,0.55); position: relative; }
.cta__note a { color: var(--amber-bright); text-decoration: underline; text-underline-offset: 2px; }

/* --- Page header (subpages) --- */
.page-header { padding: 64px 0 46px; background: var(--charcoal); color: var(--cream); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(560px 300px at 80% 0%, rgba(217,150,44,0.18), transparent 65%); pointer-events: none; }
.page-header__title { font-family: var(--font-display); font-size: clamp(33px, 4.6vw, 50px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; position: relative; }
.page-header__subtitle { font-size: 17.5px; color: rgba(246,238,221,0.75); max-width: 580px; position: relative; line-height: 1.6; }

/* --- Content blocks --- */
.content-block { padding: 60px 0; }
.content-block + .content-block { padding-top: 0; }
.content-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: 0 1px 3px rgba(23,19,16,0.05); }
.content-card h2 { font-family: var(--font-display); font-size: 27px; font-weight: 700; margin-bottom: 18px; }
.content-card h3 { font-size: 18.5px; font-weight: 700; margin-top: 26px; margin-bottom: 10px; }
.content-card p { color: var(--text-muted); line-height: 1.72; margin-bottom: 15px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { color: var(--text-muted); line-height: 1.7; }
.content-card li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.content-card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-bright); }
.content-card a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(166,106,31,0.35); }
.content-card a:hover { text-decoration-color: var(--amber); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.credential { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(23,19,16,0.05); transition: border-color 0.3s, box-shadow 0.3s; }
.credential:hover { border-color: var(--border-hover); box-shadow: 0 5px 14px rgba(23,19,16,0.07); }
.credential__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(166,106,31,0.11); border: 1px solid rgba(166,106,31,0.22); flex-shrink: 0; color: var(--amber); }
.credential__text { font-size: 15px; font-weight: 600; }
.credential__sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* --- Contact form --- */
#contactCard { scroll-margin-top: calc(var(--nav-height) + 20px); }
.contact-form { margin-top: 22px; }
.form-hint { margin-top: 12px; font-size: 13px; color: var(--text-muted); text-align: center; }
.form-group { margin-bottom: 19px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.form-input { width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-hover); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; outline: none; -webkit-appearance: none; appearance: none; }
.form-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(166,106,31,0.15); }
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }

/* --- Footer --- */
.footer { background: var(--charcoal); color: rgba(246,238,221,0.65); padding: 44px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--cream); }
.footer__brand img { width: 34px; height: 34px; }
.footer__tag { font-size: 13px; margin-top: 8px; max-width: 300px; line-height: 1.55; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 8px; }
.footer__link { font-size: 13.5px; transition: color 0.2s; }
.footer__link:hover { color: var(--amber-bright); }
.footer__copy { width: 100%; font-size: 12.5px; color: rgba(246,238,221,0.42); border-top: 1px solid rgba(246,238,221,0.12); padding-top: 18px; margin-top: 4px; }

/* --- Animations --- */
.fade-in { opacity: 0.35; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive: tablet --- */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .feature-card--lead { grid-column: span 2; }
  .how-strip__grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .tastings__inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .section, .features, .tastings { padding: 72px 0; }
}

/* --- Responsive: phone --- */
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .nav__logo span { font-size: 17px; }
  .nav__links {
    position: fixed; top: var(--nav-height); left: 0; width: 100vw; height: calc(100vh - var(--nav-height));
    z-index: 999; background: var(--bg); flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 21px; font-weight: 600; padding: 14px 26px; color: var(--ink); }
  .nav__app { font-size: 17px; padding: 13px 30px; margin-left: 0; margin-top: 10px; }
  .nav__toggle { display: flex; }
  .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .features__grid { grid-template-columns: 1fr; }
  .feature-card--lead { grid-column: span 1; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .flight__cards { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 72px 0; }
  .cta__card { padding: 40px 22px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; }
  .step { gap: 18px; }
  .page-header { padding: 48px 0 36px; }
  .content-card { padding: 25px 20px; }
  .footer__inner { flex-direction: column; }
}
