/* ===========================================================
   Godrej Rowhouses — main.css
   Reset · design tokens · header · FABs · buttons · utilities
   =========================================================== */

@font-face {
  font-family: "Cera Godrej Interio";
  src:
    url("../fonts/CeraGodrejInterio-regular.woff2") format("woff2"),
    url("../fonts/CeraGodrejInterio-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cera Godrej Interio";
  src:
    url("../fonts/CeraGodrejInterio-medium.woff2") format("woff2"),
    url("../fonts/CeraGodrejInterio-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cera Godrej Interio";
  src:
    url("../fonts/CeraGodrejInterio-Bold.woff2") format("woff2"),
    url("../fonts/CeraGodrejInterio-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===========================================================
     THE FOUR COLORS — the entire site is composed from these.
     Everything below is an alpha or mix of one of these four;
     no other hue is introduced anywhere in the system.

     Palette drawn from the hero villa (golden-hour warmth):
       onyx    — deep walnut-espresso, the teak's shadow tone
       ivory   — travertine sand-cream, the stone & wall render
       gold    — honeyed amber-bronze, the teak timber cladding
       oxblood — deep terracotta-brick, the coral flowering tree
     =========================================================== */
  --onyx: #1a1109;
  --onyx-rgb: 26, 17, 9;
  --ivory: #f2e8d5;
  --ivory-rgb: 242, 232, 213;
  --gold: #c4903c;
  --gold-rgb: 196, 144, 60;
  --oxblood: #6d3322;
  --oxblood-rgb: 109, 51, 34;

  /* surfaces & ink — every section sits on espresso now, so surfaces
     are dark mixes of onyx and ink reads light off ivory */
  --bg: var(--espresso);
  --bg-2: color-mix(in srgb, var(--bg) 90%, var(--ivory) 10%);
  --paper: color-mix(in srgb, var(--bg) 82%, var(--ivory) 18%);
  --ink: var(--ivory);
  --ink-soft: color-mix(in srgb, var(--ivory) 80%, var(--onyx) 20%);
  --ink-mute: color-mix(in srgb, var(--ivory) 55%, var(--onyx) 45%);
  --line: rgba(var(--ivory-rgb), 0.16);
  --line-soft: rgba(var(--ivory-rgb), 0.09);
  --nav-glass: rgba(var(--onyx-rgb), 0.92);

  /* gold accent — CTAs, icons, borders, highlight lines */
  --accent: var(--gold);
  --accent-2: color-mix(in srgb, var(--gold) 82%, var(--onyx) 18%);
  --accent-soft: color-mix(in srgb, var(--gold) 68%, var(--ivory) 32%);

  /* oxblood — the sparing fourth accent: errors, pricing, hover depth */
  --deep: var(--oxblood);
  --deep-soft: color-mix(in srgb, var(--oxblood) 55%, var(--ivory) 45%);

  --espresso: var(--onyx);
  --espresso-2: color-mix(in srgb, var(--onyx) 90%, var(--oxblood) 10%);

  /* effects */
  --shadow-sm: 0 1px 2px rgba(var(--onyx-rgb), 0.06);
  --shadow-md: 0 18px 40px -24px rgba(var(--onyx-rgb), 0.45);
  --shadow-lg: 0 40px 90px -50px rgba(var(--onyx-rgb), 0.6);

  /* type */
  --serif: "Cera Godrej Interio", Georgia, serif;
  --sans: "Cera Godrej Interio", system-ui, sans-serif;

  --maxw: 1260px;
  --header-h: 84px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
::selection {
  background: var(--accent);
  color: var(--ivory);
}

/* ---------- shared layout ---------- */
.wrap {
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 45px 0;
}
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  margin: 20px 0 0;
}
.section-head p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 18px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent-soft);
  display: inline-block;
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent-soft);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(var(--ivory-rgb), 0.4);
  border-top-color: var(--ivory);
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}
.btn-primary {
  background: var(--ivory);
  color: var(--espresso);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-gold {
  background: var(--accent);
  color: var(--ivory);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost-light {
  border: 1px solid rgba(var(--ivory-rgb), 0.4);
  color: var(--ivory);
}
.btn-ghost-light:hover {
  background: rgba(var(--ivory-rgb), 0.1);
  border-color: rgba(var(--ivory-rgb), 0.8);
}

/* icon helper */
.i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.i svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flip {
  transform: scaleX(-1);
}

/* ===========================================================
   HEADER (fixed)
   =========================================================== */
#fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
#fixed-header.scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 20px -12px rgba(var(--onyx-rgb), 0.4);
}
.brand-logo {
  display: flex;
  align-items: center;
  height: 30px;
}
.brand-logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.header-nav a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.92;
  transition:
    opacity 0.2s,
    color 0.4s;
}
.header-nav a:hover {
  opacity: 0.6;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.header-enquire {
  padding: 12px 24px;
}

/* burger */
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--ivory);
}
.header-burger span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 89;
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  padding: 14px 22px 22px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-menu .btn {
  margin-top: 16px;
}

/* ===========================================================
   FLOATING ACTION BUTTONS (WhatsApp + Call)
   =========================================================== */
.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s;
}
.fab:hover {
  transform: scale(1.08);
}
.fab svg {
  width: 26px;
  height: 26px;
}
.fab-whatsapp {
  background: var(--deep);
  color: var(--ivory);
  box-shadow: 0 14px 30px -10px rgba(var(--oxblood-rgb), 0.7);
}
.fab-call {
  background: var(--accent);
  color: var(--onyx);
}

/* ===========================================================
   Generic placeholder media block (used where a real photo
   has not been supplied yet)
   =========================================================== */
.ph-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      rgba(var(--gold-rgb), 0.18),
      rgba(var(--ivory-rgb), 0.05)
    ),
    repeating-linear-gradient(
      135deg,
      rgba(var(--ivory-rgb), 0.05) 0px,
      rgba(var(--ivory-rgb), 0.05) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--bg-2);
  color: var(--ink-mute);
  overflow: hidden;
}
.ph-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--ivory-rgb), 0.14);
}
.ph-media .ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
}
.ph-media .i svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.1;
}

/* ===========================================================
   RESPONSIVE — header / global collapses
   =========================================================== */
@media (max-width: 1080px) {
  .section {
    padding: 96px 0;
  }
}
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .header-cta .header-phone,
  .header-cta .header-enquire {
    display: none;
  }
  .header-burger {
    display: flex;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 22px;
  }
  #fixed-header {
    padding: 0 22px;
  }
  .section {
    padding: 76px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}
