/* =========================================================
   Kalcak — warm editorial hospitality
   Fraunces (display) + Hanken Grotesk (text)
   ========================================================= */

:root {
  /* surfaces */
  --paper:    #F7F1E8;
  --paper-2:  #F1E7D9;
  --sand:     #EADDCB;
  --cream:    #FCF8F2;

  /* ink */
  --ink:      #241511;
  --ink-soft: #6E574C;
  --ink-mute: #94806f;

  /* brand */
  --espresso: #2A1410;
  --espresso-2:#3C2017;
  --bordeaux: #6E1322;
  --wine:     #8A1E2B;
  --red:      #C5372B;
  --red-600:  #A82A20;

  /* lines */
  --line:   rgba(36,21,17,.12);
  --line-2: rgba(36,21,17,.07);
  --line-l: rgba(252,248,242,.16);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* radii */
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px; --pill: 999px;

  /* shadows (warm-tinted) */
  --sh-sm: 0 1px 2px rgba(46,20,12,.06), 0 2px 8px rgba(46,20,12,.05);
  --sh-md: 0 16px 34px -14px rgba(46,20,12,.22);
  --sh-lg: 0 34px 64px -22px rgba(46,20,12,.34);

  --header-h: 76px;
  --shell: 1200px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
[id] { scroll-margin-top: 92px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .73rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--red); display: inline-block; }
.kicker-light { color: rgba(252,248,242,.78); }
.kicker-light::before { background: var(--red); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.section-title .accent { color: var(--red); font-style: italic; }
.section-title em { color: var(--red); font-style: italic; }
.muted { color: var(--ink-soft); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  padding: 14px 24px; border-radius: var(--pill);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(197,55,43,.7); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(197,55,43,.75); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-light { background: var(--cream); color: var(--espresso); box-shadow: var(--sh-md); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }
.btn-light:active { transform: translateY(0) scale(.985); }
.btn-ghost-light { color: var(--cream); border: 1.5px solid var(--line-l); }
.btn-ghost-light:hover { background: rgba(252,248,242,.1); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 3px 6px rgba(20,8,4,.28)); }
.brand-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav-links a { font-size: .95rem; font-weight: 500; opacity: .9; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-links .nav-host { font-weight: 600; }
.nav-actions { display: flex; align-items: center; }

/* states */
.site-header[data-state="top"] { color: var(--cream); }
.site-header[data-state="top"] .brand-word { color: var(--cream); }
.site-header[data-state="solid"] {
  background: rgba(247,241,232,.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--sh-sm);
  color: var(--ink);
}
.site-header[data-state="solid"] .brand-word { color: var(--ink); }

/* mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + 20px); padding-bottom: clamp(48px, 7vh, 88px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { z-index: 1; }
.hero-poster { z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(105deg, rgba(30,12,8,.86) 0%, rgba(30,12,8,.55) 38%, rgba(30,12,8,.18) 70%, rgba(30,12,8,.32) 100%),
    linear-gradient(to top, rgba(26,10,7,.78) 0%, rgba(26,10,7,.06) 34%, rgba(26,10,7,0) 55%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .42; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 5; color: var(--cream); width: 100%; }
.hero-title {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.55rem, 1.2rem + 5.6vw, 5.4rem);
  line-height: .98; letter-spacing: -.03em;
  max-width: 16ch; margin: 6px 0 0;
  text-shadow: 0 2px 30px rgba(20,8,5,.35);
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: #F1A593; }
.hero-lede { margin-top: 22px; max-width: 44ch; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: rgba(252,248,242,.9); }

/* searchbar */
.searchbar {
  margin-top: 30px; display: flex; align-items: stretch; gap: 6px;
  background: rgba(252,248,242,.96); border-radius: var(--r-lg); padding: 8px;
  box-shadow: var(--sh-lg); max-width: 660px; backdrop-filter: blur(6px);
}
.searchbar .field { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: var(--r); transition: background .2s; min-width: 0; }
.searchbar .field + .field { box-shadow: -1px 0 0 var(--line-2); }
.searchbar .field:hover { background: rgba(234,221,203,.5); }
.searchbar label { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.searchbar .field-row { display: flex; align-items: center; gap: 8px; }
.searchbar .i { width: 17px; height: 17px; stroke: var(--red); stroke-width: 1.7; fill: none; flex: none; }
.searchbar input, .searchbar select {
  border: none; background: none; width: 100%; font-size: .96rem; font-weight: 500; color: var(--ink); padding: 2px 0; min-width: 0;
}
.searchbar input::placeholder { color: var(--ink-mute); font-weight: 400; }
.searchbar select { appearance: none; cursor: pointer; }
.searchbar input:focus, .searchbar select:focus { outline: none; }
.btn-search { flex: none; align-self: stretch; padding-inline: 22px; }
.searchbar .btn-search .i { stroke: #fff; stroke-width: 2; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 26px; padding: 0; font-size: .92rem; color: rgba(252,248,242,.82); }
.hero-trust li { display: flex; align-items: center; gap: 9px; }
.hero-trust li + li::before { content: ""; }
.hero-trust strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--cream); }

.hero-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 5; width: 26px; height: 42px; border: 1.5px solid rgba(252,248,242,.45); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.hero-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--cream); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{ transform: translateY(0); opacity: 1 } 70%{ transform: translateY(13px); opacity: 0 } 100%{ opacity: 0 } }

/* =========================================================
   VALUES / ANTI-COMMISSION
   ========================================================= */
.values { padding-block: clamp(72px, 9vw, 136px); background: var(--cream); border-bottom: 1px solid var(--line-2); }
.values-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.values-head .section-title { margin-bottom: 20px; }
.values-head .muted { margin-bottom: 30px; }

.compare { display: grid; gap: 16px; max-width: 460px; }
.compare-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; }
.compare-label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.compare-val { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.compare-bar { grid-column: 1 / -1; height: 9px; border-radius: var(--pill); background: var(--sand); overflow: hidden; }
.compare-bar i { display: block; height: 100%; width: var(--w); border-radius: var(--pill); }
.compare-item.them .compare-bar i { background: linear-gradient(90deg, var(--espresso-2), var(--wine)); }
.compare-item.them .compare-val { color: var(--ink-soft); }
.compare-item.us .compare-bar i { background: var(--red); }
.compare-item.us .compare-val { color: var(--red); }

.values-list { list-style: none; padding: 0; margin: 0; }
.value-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 26px 0; border-top: 1px solid var(--line); position: relative; }
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-ix { position: absolute; right: 0; top: 26px; font-family: var(--serif); font-size: .9rem; color: var(--ink-mute); letter-spacing: .05em; }
.value-ic { grid-row: span 2; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); }
.value-ic svg { width: 24px; height: 24px; stroke: var(--red); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.value-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; }
.value-item p { color: var(--ink-soft); font-size: .98rem; max-width: 42ch; }

/* =========================================================
   FLATS
   ========================================================= */
.flats { padding-block: clamp(72px, 9vw, 136px); background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(34px, 4vw, 56px); flex-wrap: wrap; }
.section-head-note { max-width: 38ch; }

.flats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.5vw, 22px); }
.flat-card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.flat-card.feature { grid-column: span 3; grid-row: span 2; }
.flat-card.wide { grid-column: span 3; }
.flat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.flat-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.flat-card.wide .flat-media { aspect-ratio: 16 / 9; }
.flat-card.feature .flat-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.flat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.flat-card:hover .flat-media img { transform: scale(1.055); }
.flat-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(252,248,242,.92); color: var(--bordeaux);
  padding: 7px 13px; border-radius: var(--pill); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(20,8,4,.16);
}
.flat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.flat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.flat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.flat-loc { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.flat-rate { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 600; }
.flat-rate .star { width: 15px; height: 15px; fill: var(--red); }
.flat-rate span { color: var(--ink-mute); font-weight: 500; }
.flat-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1.15; }
.flat-card.feature .flat-body h3 { font-size: 1.7rem; }
.flat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.host { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink-soft); }
.price { font-size: .95rem; color: var(--ink-soft); }
.price strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }

.ava {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(140deg, var(--wine), var(--bordeaux)); color: var(--cream);
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; flex: none;
}

/* =========================================================
   TESTIMONIALS  (dark)
   ========================================================= */
.testimonials { padding-block: clamp(76px, 9vw, 140px); background: var(--espresso); color: var(--cream); }
.testimonials .section-title { color: var(--cream); }
.quote-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
.quote {
  background: linear-gradient(160deg, rgba(252,248,242,.06), rgba(252,248,242,.02));
  border: 1px solid var(--line-l); border-radius: var(--r-lg); padding: 30px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.quote.big { grid-row: span 2; }
.quote blockquote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.4; letter-spacing: -.01em; color: #F6ECE2; }
.quote.big blockquote { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); }
.quote figcaption { display: flex; align-items: center; gap: 13px; }
.quote .ava { width: 44px; height: 44px; font-size: .92rem; background: linear-gradient(140deg, var(--red), var(--bordeaux)); }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption small { color: rgba(252,248,242,.6); font-size: .82rem; }

/* =========================================================
   CTA  (bordeaux -> red)
   ========================================================= */
.cta { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 160px); text-align: center; color: var(--cream);
  background: radial-gradient(120% 140% at 15% 0%, var(--wine) 0%, var(--bordeaux) 42%, #4A0C18 100%); }
.cta-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 8px 0 18px; }
.cta-title em { font-style: italic; color: #F4B6A6; }
.cta-lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: rgba(252,248,242,.88); max-width: 48ch; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #1E0D09; color: rgba(252,248,242,.74); padding-block: clamp(56px, 7vw, 88px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px 28px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-word { color: var(--cream); }
.footer-tag { font-size: .96rem; line-height: 1.6; margin-bottom: 22px; max-width: 34ch; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-l); transition: background .2s, transform .2s, border-color .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); color: #fff; }
.socials svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.footer-col h4 { font-family: var(--serif); font-weight: 500; font-size: 1.04rem; color: var(--cream); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-l); font-size: .86rem; color: rgba(252,248,242,.5); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: 1fr; gap: 48px; }
  .flats-grid { grid-template-columns: repeat(2, 1fr); }
  .flat-card, .flat-card.feature, .flat-card.wide { grid-column: span 1; grid-row: auto; }
  .flat-card.feature { grid-column: 1 / -1; }
  .flat-card.feature .flat-media { aspect-ratio: 16 / 9; min-height: 0; }
  .quote-wall { grid-template-columns: 1fr 1fr; }
  .quote.big { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; padding: 8px clamp(20px,5vw,48px) 22px; background: rgba(247,241,232,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: var(--sh-md); }
  .mobile-menu a { padding: 14px 4px; font-size: 1.05rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); }
  .mobile-menu a:last-child { border-bottom: none; margin-top: 12px; }
  .mobile-menu .btn-primary { color: #fff; justify-content: center; }
  .site-header[data-state="top"]:has(.nav-toggle[aria-expanded="true"]) { background: rgba(247,241,232,.97); color: var(--ink); }
  .site-header[data-state="top"]:has(.nav-toggle[aria-expanded="true"]) .brand-word { color: var(--ink); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { align-items: flex-end; }
  .searchbar { flex-direction: column; gap: 2px; padding: 10px; max-width: 460px; }
  .searchbar .field + .field { box-shadow: 0 -1px 0 var(--line-2); }
  .btn-search { margin-top: 8px; padding-block: 15px; }
  .hero-trust { gap: 10px 22px; }
  .quote-wall { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .flats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-actions .btn { width: 100%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-cue { display: none; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 78px)); padding-bottom: clamp(64px, 9vw, 132px); background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-info .kicker { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-info .muted { margin-bottom: 30px; }

.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ci-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); }
.contact-list .ci-ic svg { width: 21px; height: 21px; stroke: var(--red); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-list .ci-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin-bottom: 3px; }
.contact-list a, .contact-list div > span:not(.ci-label) { font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.contact-list a { transition: color .2s; }
.contact-list a:hover { color: var(--red); }

.contact-card { background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-md); }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-mute); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(197,55,43,.14); }
.contact-form .btn-primary { justify-content: center; margin-top: 4px; }
.form-note { font-size: .87rem; color: var(--ink-soft); margin: 0; }
.form-note strong { color: var(--ink); }

/* success modal pop-up */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,12,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: modalFade .25s var(--ease); }
.modal-card { position: relative; z-index: 1; width: 100%; max-width: 440px; text-align: center; background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(30px, 4vw, 46px); box-shadow: var(--sh-lg); animation: modalPop .32s var(--ease); }
.modal-card .sent-ic { width: 66px; height: 66px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(197,55,43,.1); margin-bottom: 16px; }
.modal-card .sent-ic svg { width: 32px; height: 32px; stroke: var(--red); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.modal-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 10px; }
.modal-card p { color: var(--ink-soft); margin-bottom: 24px; }
.modal-card p strong { color: var(--ink); }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--sand); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--sand); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(.985); }
@keyframes modalFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.96) } to { opacity: 1; transform: none } }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
