/* ============================================================
   FOUNDERCLONE REALTY — FOUNDATION DESIGN TOKEN SYSTEM
   Feature 1: CSS Design Token System
   Palette grounded in Chennai's built + coastal environment:
   temple-gopuram verdigris, brass detailing, red-oxide tile,
   parchment heat-haze, teak-ink shadow.
   ============================================================ */

:root {
  /* ---- Brand tokens (change these 6 to re-skin the whole site) ---- */
  --ink:        #12181F;   /* deep slate-navy, dark sections / nav */
  --parchment:  #F5F0E5;   /* warm ivory background */
  --verdigris:  #1E3A5F;   /* deep navy — primary brand color */
  --brass:      #C9973E;   /* warm gold detailing, accents, dividers */
  --oxide:      #B23B28;   /* terracotta-red — CTA / urgency only */
  --marble:     #FDFCF9;   /* card backgrounds, light surfaces */

  --text:       #171E27;
  --muted:      #5D6672;
  --border:     rgba(18,24,31,.12);
  --shadow:     0 20px 60px rgba(18,24,31,.16);
  --success:    #2E6B4F;
  --white:      #FFFFFF;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --nav-h: 84px;
  --radius: 4px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---- Layout ---- */
.sec { max-width: 1240px; margin: 0 auto; padding: 0 1.75rem; }
.section-pad { padding: 6.5rem 0; }
.sec-head { text-align: center; margin-bottom: 3.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--verdigris); display: inline-block; margin-bottom: .75rem; }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; color: var(--ink); }
.sec-sub { color: var(--muted); font-size: 1.05rem; margin-top: .85rem; }

/* ---- Cards ---- */
.card {
  background: var(--marble);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---- Buttons ---- */
.btn-primary, .btn-outline, .btn-wa {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.9rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  transition: filter .2s ease, transform .2s ease, background .2s ease;
}
.btn-primary { background: var(--oxide); color: var(--white); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--marble); }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { filter: brightness(1.08); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.badge-brand { background: rgba(30,58,95,.1); color: var(--verdigris); border: 1px solid rgba(30,58,95,.25); }
.badge-brass { background: rgba(201,151,62,.15); color: #8a6a2f; border: 1px solid rgba(201,151,62,.4); }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }

/* ---- Scroll-reveal (Feature 4) ---- */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Scroll progress bar (Feature 2) ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--verdigris), var(--brass));
  z-index: 9999; transition: width .1s ease-out;
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .section-pad { padding: 4.5rem 0; }
}
@media (max-width: 480px) {
  .sec { padding: 0 1.1rem; }
}
