/* ============================================================
   ATLD — Aytül Temiz Landscape Design
   Three-theme system: black (global shell), green (landscape),
   white (interior). Theme is set via a class on <body>.
   ============================================================ */

:root {
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-black {
  --bg: #0a0a0a;
  --bg-alt: #131311;
  --card: #181815;
  --text: #f4f1e8;
  --muted: #a09a8c;
  --accent: #c9a35c;
  --accent-soft: rgba(201, 163, 92, 0.14);
  --line: rgba(244, 241, 232, 0.14);
  --header-bg: rgba(10, 10, 10, 0.88);
}

body.theme-green {
  --bg: #1b4332;
  --bg-alt: #143527;
  --card: #2d6a4f;
  --text: #eaf4ee;
  --muted: #d2e4da; /* ≥4.5:1 on --card and --bg (WCAG AA) */
  --accent: #95d5b2;
  --accent-soft: rgba(149, 213, 178, 0.14);
  --line: rgba(234, 244, 238, 0.16);
  --header-bg: rgba(20, 53, 39, 0.9);
}

body.theme-white {
  --bg: #faf9f6;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #191914;
  --muted: #6f6b60;
  --accent: #8a6a39;
  --accent-soft: rgba(138, 106, 57, 0.1);
  --line: rgba(25, 25, 20, 0.12);
  --header-bg: rgba(250, 249, 246, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; }

/* Client request: body copy is fully justified. Short centered UI lines
   (hero taglines, chat, form status) keep their own alignment. */
p { text-align: justify; }
.split-intro p, .split-panel p { text-align: center; }
.chat-msg, .form-note { text-align: left; }
[dir="rtl"] .chat-msg, [dir="rtl"] .form-note { text-align: right; }

/* Arabic needs a script-capable stack; Playfair/Raleway have no Arabic glyphs. */
[lang="ar"] body,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile nav overlay. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-mark {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}
.brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.home-logo {
  display: block;
  height: clamp(96px, 15vw, 150px);
  width: auto;
  margin: 0 auto;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--accent); }
.main-nav a.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
}
.main-nav a.nav-cta:hover { background: var(--accent-soft); }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 7px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home: two-choice split ---------- */

.split-hero {
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

.split-intro {
  text-align: center;
  padding: 40px 24px 28px;
}
.split-intro h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.1em;
}
.split-intro p {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-top: 12px;
}

.split-panels { flex: 1; display: flex; min-height: 0; }

.split-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: flex 0.6s var(--ease);
}
.split-panel .panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease), filter 0.6s;
}
.split-panel .panel-overlay { position: absolute; inset: 0; transition: opacity 0.5s; }
.split-panel.landscape .panel-overlay {
  background: linear-gradient(to top, rgba(8, 28, 19, 0.96), rgba(12, 38, 26, 0.72) 55%, rgba(12, 38, 26, 0.5));
}
.split-panel.interior .panel-overlay {
  background: linear-gradient(to top, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.5) 55%, rgba(250, 249, 246, 0.28));
}
.split-panel .panel-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
}
.split-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.split-panel .panel-line {
  width: 44px; height: 1px;
  margin: 18px auto;
  transition: width 0.5s var(--ease);
}
.split-panel p { font-size: 0.85rem; letter-spacing: 0.1em; opacity: 0.85; }
.split-panel .panel-enter {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 10px 26px;
  border-radius: 2px;
  opacity: 0.85;
  transform: translateY(0);
  transition: opacity 0.45s, transform 0.45s;
}
.split-panel.landscape { color: #eaf4ee; }
.split-panel.landscape .panel-line { background: #95d5b2; }
.split-panel.interior { color: #191914; }
.split-panel.interior .panel-line { background: #a9834b; }

.split-panel:hover, .split-panel:focus-visible { flex: 1.35; }
.split-panel:hover .panel-bg, .split-panel:focus-visible .panel-bg { transform: scale(1); filter: brightness(1.08); }
.split-panel:hover .panel-line { width: 90px; }
.split-panel:hover .panel-enter, .split-panel:focus-visible .panel-enter { opacity: 1; transform: translateY(0); }

.split-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.split-footer a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.split-footer a:hover { color: var(--accent); }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  background-size: cover;
  background-position: center;
}
.page-hero .hero-overlay { position: absolute; inset: 0; }
body.theme-green .page-hero .hero-overlay {
  background: linear-gradient(to top, #1b4332 4%, rgba(27, 67, 50, 0.72) 40%, rgba(20, 53, 39, 0.35));
}
body.theme-white .page-hero .hero-overlay {
  background: linear-gradient(to top, #faf9f6 4%, rgba(250, 249, 246, 0.72) 40%, rgba(250, 249, 246, 0.25));
}
body.theme-black .page-hero .hero-overlay {
  background: linear-gradient(to top, #0a0a0a 4%, rgba(10, 10, 10, 0.72) 40%, rgba(10, 10, 10, 0.35));
}
.page-hero .container { position: relative; z-index: 1; padding-bottom: 56px; }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 780px; }
.page-hero .lead { max-width: 640px; margin-top: 18px; color: var(--text); opacity: 0.88; }

.plain-hero { padding: calc(var(--header-h) + 70px) 0 10px; }
.plain-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.plain-hero .lead { max-width: 680px; margin-top: 18px; color: var(--muted); }

/* ---------- Shared sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.section .section-lead { max-width: 700px; color: var(--muted); margin-bottom: 40px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 36px; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  color: var(--accent);
  line-height: 1.1;
}
.stat span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  list-style: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}
.tag-list li:hover { border-color: var(--accent); color: var(--text); }

.review-card { margin: 0; display: flex; flex-direction: column; }
.review-stars { color: var(--accent); letter-spacing: 0.2em; font-size: 1rem; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 16px; flex: 1; }
.review-card blockquote p { color: var(--text); font-size: 0.95rem; font-style: italic; }
.review-card figcaption { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ref-grid .ref {
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 3px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.ref-grid .ref:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.ref-grid .ref small { display: block; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
body.theme-green .ref-grid .ref small { color: #b7e4c7; } /* 4.55:1 on --card (WCAG AA) */

/* ---------- Galleries ---------- */

.project-block { margin-bottom: 64px; }
.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.project-head h3 { font-size: 1.45rem; }
.project-head .meta { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-grid a.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.gallery-grid a.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.gallery-grid a.shot:hover img { transform: scale(1.05); }
.gallery-grid a.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-grid a.shot:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 6, 6, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  color: #d8d3c6;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #f4f1e8;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 14px;
  opacity: 0.75;
  transition: opacity 0.25s;
  z-index: 210;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px; }
.team-card h3 { font-size: 1.3rem; }
.team-card .role {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 6px 0 14px;
}
.team-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */

.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; color: var(--muted); }
.contact-list li b { color: var(--text); font-weight: 600; min-width: 96px; letter-spacing: 0.06em; }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  transition: border-color 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
}
.consent-row label { font-size: 0.85rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.consent-row label a { color: var(--accent); text-decoration: underline; }
.contact-form textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--bg); }

.form-note { font-size: 0.82rem; color: var(--muted); }

.map-embed {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-facade {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg-alt);
  padding: 28px;
  text-align: center;
}
.map-facade-text { max-width: 520px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.map-facade-alt a { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Utilities: skip link, screen-reader text ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 400;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Legal pages ---------- */

.container.legal { max-width: 860px; }
.legal h2 { font-size: 1.35rem; margin: 42px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal a { color: var(--accent); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 640px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
.legal tr:last-child td { border-bottom: 0; }
[dir="rtl"] .legal th, [dir="rtl"] .legal td { text-align: right; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: var(--bg-alt);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .foot-brand { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.12em; }
.site-footer .foot-brand small { display: block; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .foot-legal { width: 100%; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.site-footer .foot-legal a { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .foot-legal a:hover { color: var(--accent); }
.site-footer .foot-meta { width: 100%; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ---------- Chat widget ---------- */

.chat-bubble {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 300;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #c9a35c;
  border: 1px solid #c9a35c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s;
}
.chat-bubble:hover { transform: scale(1.07); }
.chat-bubble svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed;
  right: 22px; bottom: 92px;
  z-index: 300;
  width: min(370px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 130px));
  background: #101010;
  color: #f4f1e8;
  border: 1px solid rgba(201, 163, 92, 0.4);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}
.chat-panel.open { display: flex; }
.chat-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head b { font-family: var(--font-head); letter-spacing: 0.1em; font-size: 1.05rem; }
.chat-head small { display: block; color: #a09a8c; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.chat-head button { background: none; border: none; color: #a09a8c; font-size: 1.3rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.bot { background: #1d1d19; border: 1px solid rgba(244, 241, 232, 0.1); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: rgba(201, 163, 92, 0.18); border: 1px solid rgba(201, 163, 92, 0.35); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-msg.typing { color: #a09a8c; font-style: italic; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chat-quick button {
  background: none;
  border: 1px solid rgba(201, 163, 92, 0.45);
  color: #c9a35c;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-quick button:hover { background: rgba(201, 163, 92, 0.15); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(244, 241, 232, 0.12); }
.chat-input input {
  flex: 1;
  background: #1a1a17;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 999px;
  color: #f4f1e8;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 16px;
}
.chat-input input:focus { outline: 2px solid #c9a35c; outline-offset: 2px; border-color: #c9a35c; }
.chat-input button {
  background: #c9a35c;
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  width: 42px; height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.chat-input button:hover { opacity: 0.85; }
.chat-input button svg { width: 18px; height: 18px; }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .split-panel, .split-panel .panel-bg { transition: none; }
}

/* ---------- Responsive ---------- */

/* The full desktop header (long brand + 7 nav links) needs ~1040px,
   so the nav collapses to the hamburger overlay earlier than the grids. */
@media (max-width: 1040px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1rem; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }

  .split-hero { height: auto; min-height: 100vh; }
  .split-panels { flex-direction: column; }
  .split-panel { min-height: 34vh; }
  .split-panel .panel-content { padding: 40px 24px; }
  .split-panel .panel-enter { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .stat-row { gap: 26px; }
  .split-footer { flex-wrap: wrap; gap: 14px 22px; }
  /* The full brand line is wider than a phone allows and would push
     the menu button off-screen. */
  .brand .brand-sub { display: none; }
}
