/* ==========================================================================
   IkiProperty — style.css
   Foundation: design tokens, base, typography, layout, navigation,
   buttons, hero, footer, section shells.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --warm-white: #F3F0E9;
  --off-white: #FAF8F3;
  --cream: #ECE7DD;
  --olive: #3B3E22;
  --olive-deep: #2C2E18;
  --olive-hover: #494d2c;
  --ink: #23231D;
  --gray: #6E6E64;
  --gray-soft: #8C8C82;
  --line: #E4E0D6;
  --line-soft: rgba(35, 35, 29, 0.08);
  --gold: #A98B52;
  --gold-soft: #b9a06f;
  --white: #FFFFFF;

  /* Status */
  --status-available: #6f8f4e;
  --status-reserved: #d6b24a;
  --status-sold: #b4573f;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  /* Shadow */
  --shadow-sm: 0 4px 20px rgba(35, 35, 29, 0.05);
  --shadow: 0 14px 44px rgba(35, 35, 29, 0.08);
  --shadow-lg: 0 30px 70px rgba(35, 35, 29, 0.12);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
/* Lenis-driven smooth scroll (JS fallback keeps native smooth) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--olive); color: var(--off-white); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); line-height: 1.08; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 500;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: inline-block;
}
.lead { font-size: 1.06rem; color: var(--gray); line-height: 1.7; }
.muted { color: var(--gray); }

/* --------------------------------------------------------------------------
   4. Layout Helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);}
.container-wide { max-width: 1400px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }
.flex-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.container-h-auto {height: auto!important; padding-top: 5vh!important; padding-bottom: 5vh!important;}
.max-h-400px { max-height: 400px!important; }
.max-h-450px { max-height: 450px!important; }
.max-h-150px { max-height: 150px!important; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link-arrow i { transition: transform 0.4s var(--ease); }
.link-arrow:hover { gap: 0.85rem; color: var(--gold); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  padding: 0.95rem 1.6rem; border-radius: var(--radius-pill);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), background-color 0.4s var(--ease), color 0.4s, box-shadow 0.4s;
  white-space: nowrap;
}
.btn i { transition: transform 0.45s var(--ease); font-size: 1rem; }
.btn:hover { transform: translateY(-3px); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-dark { background: var(--olive); color: var(--off-white); box-shadow: 0 10px 26px rgba(59, 62, 34, 0.25); }
.btn-dark:hover { background: var(--olive-hover); box-shadow: 0 16px 34px rgba(59, 62, 34, 0.32); }

.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--olive); }
.btn-outline-light { background: transparent; color: var(--off-white); border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--off-white); background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 0.95rem; }

/* Play / circular icon button */
.btn-play { display: inline-flex; align-items: center; gap: 0.85rem; font-weight: 600; font-size: 0.9rem; }
.btn-play .play-circle {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: all 0.4s var(--ease); background: var(--white);
}
.btn-play:hover .play-circle { background: var(--olive); color: var(--off-white); border-color: var(--olive); transform: scale(1.06); }

.circle-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--white); color: var(--ink);
  transition: all 0.4s var(--ease); flex-shrink: 0;
}
.circle-btn:hover { background: var(--olive); color: var(--off-white); border-color: var(--olive); }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header .nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 0.4rem;
  transition: color 0.3s; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--olive);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--olive); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .btn { padding: 0.7rem 1.4rem; font-size: 0.82rem; }
.nav-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.25rem; color: var(--ink);
  transition: all 0.4s var(--ease); background: rgba(255,255,255,0.5);
}
.nav-toggle:hover { background: var(--olive); color: var(--off-white); border-color: var(--olive); }

/* Transparent-over-hero state */
.site-header.at-top { background: transparent; }
.site-header.at-top .nav-toggle { border-color: rgba(35,35,29,0.2); }
/* Scrolled state */
.site-header.scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 30px rgba(35,35,29,0.05);
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--off-white);
  transform: translateY(-100%); transition: transform 0.6s var(--ease);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 2rem; color: var(--ink); padding-block: 0.6rem;
  border-bottom: 1px solid var(--line); transition: color 0.3s, padding-left 0.4s var(--ease);
}
.mobile-menu a:hover { color: var(--gold); padding-left: 0.6rem; }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }

/* --------------------------------------------------------------------------
   7. Page Hero (interior pages: about/contact/projects/properties)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 40px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
  overflow: hidden;
}
.page-hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.page-hero-text { padding-block: 2rem 3.5rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--gray); margin-bottom: 1.6rem; }
.breadcrumb i { font-size: 0.7rem; }
.breadcrumb a:hover { color: var(--olive); }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 1.4rem; }
.page-hero .gold-rule { width: 68px; height: 3px; background: var(--gold); margin: 1.4rem 0; border-radius: 2px; }
.page-hero .lead { max-width: 460px; margin-bottom: 2rem; }
.page-hero-media {
  height: clamp(320px, 42vw, 520px); border-radius: 0 0 0 var(--radius-lg); overflow: hidden;
  position: relative;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Mini feature row (contact/about hero) */
.hero-features { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-feature { display: flex; gap: 0.8rem; max-width: 220px; }
.hero-feature i { font-size: 1.3rem; color: var(--olive); }
.hero-feature h4 { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700; margin-bottom: 0.2rem; }
.hero-feature p { font-size: 0.8rem; color: var(--gray); line-height: 1.45; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--off-white); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr; gap: 2.4rem;
  padding-bottom: 3.4rem;
}
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; margin-top: 1rem; max-width: 260px; line-height: 1.6; }
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--warm-white);
  display: grid; place-items: center; color: var(--ink); transition: all 0.4s var(--ease); font-size: 0.95rem;
}
.footer-socials a:hover { background: var(--olive); color: var(--off-white); transform: translateY(-3px); }
.footer-col h5 {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1.3rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--gray); transition: color 0.3s, padding-left 0.3s var(--ease); }
.footer-col ul a:hover { color: var(--olive); padding-left: 4px; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--gray); margin-bottom: 0.9rem; }
.footer-contact li i { color: var(--gold); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 1.6rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--gray);
}
.footer-bottom .legal { display: flex; gap: 2rem; }
.footer-bottom a:hover { color: var(--olive); }

/* --------------------------------------------------------------------------
   9. Reveal animation base (GSAP-driven)
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); }
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; transform: translateY(110%); }
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .reveal-lines .line > span { transform: none; }

/* Utility */
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92); color: var(--ink); backdrop-filter: blur(4px);
}
.tag-olive { background: var(--olive); color: var(--off-white); }
