/* See root-level styles.css for the original; this is the canonical static copy used by Flask now. */

:root{
  /* Old-money palette */
  --bg: #F4F1E8; /* soft cream background */
  --card: #FFFFFF; /* cards: white with warm tint */
  --accent: #EDE6DA; /* soft warm accent */
  --emerald: #0F6B4A; /* deep emerald */
  --gold: #B58E40; /* noble gold for small accents */
  --gold-dark: #A07734; /* hover/darker gold */
  --heading: #2D1F16; /* dark cocoa / espresso for headings */
  --text: #2D1F16; /* main text color */
  --muted: rgba(45,31,22,.68);
  --muted2: rgba(45,31,22,.44);
  --line: rgba(45,31,22,.06);
  --primary: var(--gold);
  --primary-hover: var(--gold-dark);
  --shadow: 0 16px 40px rgba(13,13,12,.06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1100px;
}

*{box-sizing:border-box}
html{min-height:100%}
body{min-height:100%; overflow-x: clip}
@supports not (overflow: clip){
  body{overflow-x:hidden}
}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #efece2 100%);
}

a{color:inherit; text-decoration:none}

.container{max-width:var(--container); padding:0 28px; margin:0 auto}

.section{padding:72px 0}

.section--highlight{
  background: linear-gradient(180deg, rgba(237,230,214,0.6), rgba(244,241,234,0.4));
  border-top:1px solid rgba(45,31,22,.06);
  border-bottom:1px solid rgba(45,31,22,.04);
}

.section__header{display:flex; flex-direction:column; gap:10px; margin-bottom:28px}
.section__header h2{color:var(--heading); margin:0; font-size:34px;}
.section__header p{margin:0; color:var(--muted2); max-width:70ch}

.eyebrow{
  display:inline-flex;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  width:fit-content;
}

.hero{padding:86px 0 44px}
.hero__grid{display:grid; grid-template-columns: 1fr 1fr; gap:36px; align-items:center}
.hero__content h1{font-size:52px; line-height:1.04; margin:12px 0 12px; letter-spacing:-.03em}
.hero__content .lede{margin:0 0 18px; font-size:18px; color:var(--muted)}

.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:46px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--heading);
  font-weight:600;
  letter-spacing:.01em;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(234,240,255,.25)}
.btn:active{transform: translateY(0)}

.btn--primary{
  border-color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(165,120,60,.1);
}
.btn--primary:hover{background: var(--primary-hover); transform: translateY(-2px)}

.btn--ghost{background: transparent; color:var(--heading); border:1px solid rgba(45,31,22,.04)}
.btn--outline{
  border:1px solid rgba(45,31,22,.35);
  background: transparent;
  color: var(--heading);
}
.btn--outline:hover{
  background: rgba(237,230,214,0.8);
  transform: translateY(-1px);
}

.hero__highlights{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.hero__highlights span{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(90deg, rgba(181,142,64,0.08), rgba(14,107,74,0.03));
  color:var(--muted);
  font-size:13px;
}

.hero__visual{position:relative}
.hero__frame{
  position:relative;
  height:390px;
  border-radius:28px;
  background:
    radial-gradient(600px 350px at 30% 20%, rgba(15,107,74,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,248,244,0.95));
  border:1px solid rgba(45,31,22,.05);
  box-shadow: 0 20px 50px rgba(13,13,12,.06);
  overflow:hidden;
}
.hero__model{
  position:absolute;
  right:22px;
  top:22px;
  width:210px;
  height:310px;
  border-radius:24px;
  border:1px solid rgba(45,31,22,.06);
  background: linear-gradient(180deg, rgba(245,241,235,.6), rgba(255,255,255,.4));
  color:var(--muted);
  font-weight:600;
}

/* “Look toward CTA” effect: subtle gaze line + arrow */
.hero__cta-arrow{
  position:absolute;
  left:24px;
  bottom:36px;
  width:56%;
  height:2px;
  background: linear-gradient(90deg, rgba(53,211,255,0), rgba(53,211,255,.85));
  transform: rotate(-10deg);
  transform-origin:left center;
}
.hero__cta-arrow::after{
  content:"";
  position:absolute;
  right:-6px;
  top:-5px;
  width:12px;
  height:12px;
  border-right:2px solid rgba(53,211,255,.85);
  border-bottom:2px solid rgba(53,211,255,.85);
  transform: rotate(-45deg);
}

.hero__hint{margin:10px 0 0; color:var(--muted2); font-size:13px}

.grid{display:grid; gap:14px}
.cards-4{grid-template-columns: repeat(4, minmax(0,1fr)); gap:20px}
.cards-3{grid-template-columns: repeat(3, minmax(0,1fr)); gap:20px}

.two-col{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px}

.card{
  border:1px solid rgba(45,31,22,.06);
  border-radius: var(--radius);
  background: var(--card);
  padding:22px;
  box-shadow: 0 10px 30px rgba(13,13,12,.04);
}
.card h3{font-family:'Playfair Display', serif; font-size:20px; margin-bottom:8px; color:var(--heading)}
.card p{color:var(--muted); line-height:1.6}

.card--muted{background: rgba(255,255,255,.015)}

.card--list ul{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.card--list li{margin:8px 0; line-height:1.4}

.media-callout{display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:18px}
.media-callout__body{padding:22px}
.media-callout__visual{
  border-radius: var(--radius);
  border:1px dashed rgba(234,240,255,.20);
  background: rgba(255,255,255,.02);
  display:flex; align-items:center; justify-content:center;
  min-height:180px;
  color:var(--muted2);
}

.center{text-align:center}
.subtle{color:var(--muted2)}

.steps .card--step{position:relative; padding-top:20px}
.step__label{font-weight:700; margin-bottom:6px}
.step__range{margin:0 0 8px; color:var(--muted2)}
.pill{
  margin-top:12px;
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(46,229,157,.25);
  background: rgba(46,229,157,.08);
  color: rgba(234,240,255,.88);
  font-weight:600;
}

.card--profile{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}
.card--profile blockquote{
  margin:12px 0;
  padding:14px 16px;
  border-left:4px solid var(--gold);
  background: linear-gradient(90deg, rgba(237,230,214,0.6), rgba(255,255,255,0.6));
  color:var(--heading);
  border-radius:8px;
  font-style:italic;
}

.profile__meta{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.avatar{
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(234,240,255,.18);
  background: rgba(255,255,255,.04);
  display:flex; align-items:flex-start; justify-content:center;
  font-weight:800;
  padding-top:10px;
}
.profile__name{margin:0; font-weight:700}
.profile__stat{margin:6px 0 0; font-weight:700}

.footer{padding:48px 0 80px; border-top:1px solid rgba(58,47,47,.04)}
.footer__grid{display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap}
.footer__actions{display:flex; gap:10px; flex-wrap:wrap}
.footer a{color:var(--muted2)}

/* Footer language switcher (mobile only) */
.footer__lang{display:none; gap:8px; flex-wrap:wrap}

@media (max-width: 720px){
  .nav__lang--header{display:none !important}
  .footer__lang{display:flex}
}

/* Chat widget */
.chat{position:fixed; right:18px; bottom:18px; z-index:1000}
.chat__toggle{
  width:56px; height:56px;
  border-radius: 18px;
  border:1px solid rgba(45,31,22,.10);
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color:#fff;
  font-weight:900;
  box-shadow: var(--shadow);
}
.chat__toggle span{font-size:14px}

.chat__modal{
  position:absolute;
  right:0;
  bottom:68px;
  width:min(420px, calc(100vw - 36px));
  height:560px;
  border-radius: 22px;
  border:1px solid rgba(234,240,255,.14);
  background: linear-gradient(180deg, #fff, #fbf8f3);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
}
.chat--open .chat__modal{display:flex; flex-direction:column}

.chat__header{
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,248,244,0.92));
}
.chat__header p{margin:0}
.chat__close{
  width:38px; height:38px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-size:22px;
  line-height:0;
  cursor:pointer;
}

.chat__body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:auto;
  flex:1;
}

.chat__message{
  max-width: 85%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(234,240,255,.12);
  background: #fff;
  color:var(--heading);
  line-height:1.35;
  transition: opacity .18s ease, transform .18s ease;
}
.chat__message--user{align-self:flex-end; background: linear-gradient(90deg, var(--emerald), rgba(15,107,74,.9)); color:#fff}
.chat__message--system{align-self:flex-start; color:var(--muted)}

/* Message enter animation */
.chat__message--enter{
  opacity: 0;
  transform: translateY(8px);
}

/* Chat typing as a real message */
.chat__message--typing{
  align-self:flex-start;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Typing indicator (premium messenger style) */
.chat__typing{
  align-self:flex-start;
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: var(--muted2);
  font-size:12px;
  padding:4px 0;
}

.chat__typing-stack{display:flex; flex-direction:column; gap:2px}
.chat__typing-name{font-weight:700; color: rgba(45,31,22,.78)}
.chat__typing-row{display:flex; align-items:center; gap:10px}

.chat__typing-bubble{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45,31,22,.06);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(13,13,12,.04);
}

.chat__typing-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(45,31,22,.35);
  animation: chatTyping 1.2s infinite ease-in-out;
}
.chat__typing-dot:nth-child(2){animation-delay:.15s}
.chat__typing-dot:nth-child(3){animation-delay:.30s}

@keyframes chatTyping{
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: .9; }
}

/* Chat operator badge in header */
.chat__operator{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45,31,22,.08);
  background: rgba(255,255,255,.75);
  color: rgba(45,31,22,.78);
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}

/* Header + navigation */
.site-header{
  position:sticky;
  top:0;
  z-index: 900;
  background: rgba(244,241,232,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45,31,22,.06);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  font-family:'Playfair Display', serif;
  font-weight:700;
  letter-spacing:-.01em;
}

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius: 14px;
  border:1px solid rgba(45,31,22,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 30px rgba(13,13,12,.04);
}

.nav-toggle__line{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: rgba(45,31,22,.72);
  border-radius: 999px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}

.nav__links{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.nav__lang{display:flex; align-items:center; gap:8px; flex-wrap:wrap}

/* Make buttons a bit smaller inside header */
.site-header .btn{height:40px; padding:0 14px}

img{max-width:100%; height:auto}

.hero__content h1{
  word-break: normal;
  overflow-wrap: anywhere;
}

.lede, .section__header p, .card p{
  overflow-wrap: anywhere;
}

.hero__actions{
  align-items:stretch;
}

@media (max-width: 980px){
  .container{padding:0 18px}
  .hero{padding:64px 0 36px}
  .hero__content h1{font-size:42px}
}

@media (max-width: 720px){
  .container{padding:0 14px}

  /* ✅ Mobile: keep menu visible (no burger), show in 2 rows */
  .header__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .brand{
    align-self: flex-start;
  }

  .nav-toggle{display:none !important}

  .nav{
    position: static;
    top: auto;
    left: auto;
    right: auto;

    display:flex !important;
    flex-direction: column;
    align-items: stretch;

    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 10px;
  }

  .nav__links{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .nav__lang{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  /* compact header buttons */
  .site-header .btn{height:36px; padding:0 12px; font-size:13px}

  /* keep CTA button readable */
  .nav__cta{min-width: 140px}

  /* existing mobile layout below */
  .hero__grid{grid-template-columns: 1fr; gap:22px}
  .hero__frame{height:300px}
  .hero__content h1{font-size:36px}

  .cards-4{grid-template-columns: repeat(2, minmax(0,1fr));}
  .cards-3{grid-template-columns: repeat(2, minmax(0,1fr));}
  .two-col{grid-template-columns: 1fr;}

  .section{padding:56px 0}
  .hero{padding:56px 0 28px}

  .hero__content .lede{font-size:16px}

  .hero__actions{
    flex-direction:column;
    gap:10px;
  }
  .hero__actions .btn{width:100%}

  .hero__highlights span{width:100%; text-align:center}

  .hero__frame{border-radius:22px}
}

@media (max-width: 480px){
  .hero__content h1{font-size:32px}
  .cards-4{grid-template-columns: 1fr;}
  .cards-3{grid-template-columns: 1fr;}

  .container{padding:0 12px}
  .hero__frame{height:260px}
  .chat__toggle{width:52px; height:52px; border-radius:16px}
}

/* Page hero image (used on /models, /benefits, etc.) */
.page-hero{
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(45,31,22,.06);
  box-shadow: 0 16px 40px rgba(13,13,12,.06);
  background: rgba(255,255,255,.55);
}
.page-hero-img{
  display:block;
  width:100%;
  height:260px;
  object-fit: cover;
}

@media (max-width: 720px){
  .page-hero-img{height:210px}
}
@media (max-width: 480px){
  .page-hero-img{height:170px}
}

/* Model avatars inside cards */
.avatar-img{
  width:52px;
  height:52px;
  border-radius: 16px;
  object-fit: cover;
  border:1px solid rgba(45,31,22,.08);
  box-shadow: 0 10px 30px rgba(13,13,12,.04);
  flex:0 0 auto;
}

@media (max-width: 720px){
  .avatar-img{width:46px; height:46px; border-radius:14px}
  .card--profile blockquote{font-size:14px}
}

/* Chat mobile ergonomics */
@media (max-width: 720px){
  .chat__modal{
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 86px;
    top: auto;
    width: auto;
    z-index: 1002;
    height: min(640px, 92svh);
    max-height: 92svh;
  }
  .chat--open::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(45,31,22,.08);
    z-index: 1001;
  }
  .chat{z-index:1003}
  .chat__body{padding:12px}
  .chat__form{padding:12px; gap:8px}
  .chat__form input{height:44px}
}

@media (max-width: 480px){
  .chat{right: 12px; bottom: 12px}
  .chat__modal{
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat__header{padding-top: calc(14px + env(safe-area-inset-top))}
  .chat__body{overscroll-behavior: contain}
  .chat__form{
    position: sticky;
    bottom: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
  }
  .chat--open::before{background: rgba(0,0,0,.0)}
}

/* Chat meta (agents + ETA) */
.chat__meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  color: var(--muted2);
  font-size:12px;
  line-height:1.2;
  flex-wrap:wrap;
}
.chat__meta-item{
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45,31,22,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(13,13,12,.03);
}
.chat__meta-dot{opacity:.55}

/* Chat form layout (input + send) */
.chat__form{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.chat__form input{
  flex:1;
  height:46px;
  padding:0 14px;
  border-radius: 16px;
  border:1px solid rgba(45,31,22,.10);
  background: rgba(255,255,255,.92);
  color: var(--heading);
  outline:none;
}
.chat__form input:focus{border-color: rgba(181,142,64,.55); box-shadow: 0 0 0 4px rgba(181,142,64,.12)}
.chat__form .btn{
  height:46px;
  padding:0 18px;
  white-space:nowrap;
}

/* Bigger CTA bubble button */
.chat__toggle{
  width:auto;
  min-width: 148px;
  padding:0 16px;
}
.chat__toggle span{white-space:nowrap}

@media (max-width: 480px){
  .chat__toggle{min-width: 156px}
  .chat__form{gap:8px}
  .chat__form .btn{padding:0 14px}
}

/* Removed duplicate iOS/mobile fixes below: we keep a single canonical mobile chat block above
   (Chat mobile ergonomics) to avoid conflicting position/z-index/inset rules on iOS Safari. */
