/* ============================================================
   KING OF NY MASONRY — Shared Design System
   Luxury masonry & outdoor living. Charcoal / cream / beige / gold.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* warm-toned darks */
  --charcoal: #15130f;
  --charcoal-2: #1d1a14;
  --charcoal-3: #262219;
  --ink: #0f0e0b;

  /* warm-toned lights */
  --cream: #faf7f1;
  --cream-2: #f1ebe0;
  --paper: #fffdf9;

  /* beige + gold accents (shared chroma/lightness, varied hue) */
  --beige: #cdb893;
  --beige-soft: #e3d6bf;
  --gold: oklch(0.74 0.09 78);
  --gold-deep: oklch(0.62 0.09 70);
  --gold-soft: oklch(0.86 0.05 85);

  /* text */
  --text-dark: #211d16;
  --text-mid: #5c5347;
  --text-light: #f5f1e9;
  --text-light-mid: #c7bfb1;

  /* lines & glass */
  --line: rgba(33, 29, 22, 0.12);
  --line-light: rgba(245, 241, 233, 0.14);
  --glass: rgba(255, 253, 249, 0.06);
  --glass-strong: rgba(255, 253, 249, 0.10);

  /* shadows */
  --shadow-sm: 0 2px 10px rgba(20, 17, 12, 0.08);
  --shadow-md: 0 18px 40px -18px rgba(20, 17, 12, 0.30);
  --shadow-lg: 0 40px 90px -30px rgba(20, 17, 12, 0.45);
  --shadow-gold: 0 20px 50px -20px oklch(0.62 0.09 70 / 0.55);

  /* type */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Dark mode (warmer charcoal) ---------- */
body.dark {
  --cream: #15130f;
  --cream-2: #1d1a14;
  --paper: #1d1a14;
  --text-dark: #f3eee4;
  --text-mid: #b3aa9b;
  --line: rgba(245, 241, 233, 0.12);
  background: var(--cream);
  color: var(--text-dark);
}
body.dark .section-light { background: var(--charcoal); }
body.dark .card,
body.dark .glass-card { background: var(--charcoal-2); border-color: var(--line-light); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section-dark { background: var(--charcoal); color: var(--text-light); }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; }
.section-dark .eyebrow { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.display { font-size: clamp(2.6rem, 6vw, 5rem); }
.h-xl { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-mid); max-width: 60ch; }
.section-dark .lead { color: var(--text-light-mid); }
.text-wrap-pretty { text-wrap: pretty; }
.text-balance { text-wrap: balance; }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #211a0c;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 26px 60px -18px oklch(0.62 0.09 70 / 0.7); }

.btn-dark { background: var(--charcoal); color: var(--text-light); }
.btn-dark:hover { background: var(--ink); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--glass);
  color: var(--text-light);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-strong); }

.btn-outline { border: 1px solid var(--line); color: var(--text-dark); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s, padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(21, 19, 15, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text-light); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid; place-items: center;
  color: #1a1409;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.brand-mark svg { width: 58%; height: 58%; display: block; }
.brand-text { line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; letter-spacing: 0.01em; }
.brand-text span { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-light); font-size: 14.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 100px;
  position: relative; transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { background: var(--glass-strong); }
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--text-light); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-light); transition: 0.3s; border-radius: 2px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(21, 19, 15, 0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--text-light); font-family: var(--serif); font-size: 30px; padding: 12px; }
.mobile-menu a.active { color: var(--gold); }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line-light);
  color: var(--text-light); transition: 0.3s;
}
.theme-toggle:hover { background: var(--glass-strong); }
.theme-toggle svg { width: 18px; height: 18px; }

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

.glass-card {
  background: var(--glass-strong);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s;
}
.glass-card:hover { transform: translateY(-6px); background: rgba(255,253,249,0.13); box-shadow: var(--shadow-lg); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-light-mid); padding: 90px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; font-weight: 700; }
.site-footer .brand { color: var(--text-light); margin-bottom: 20px; }
.footer-about { font-size: 15px; line-height: 1.7; max-width: 34ch; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 15px; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; align-items: flex-start; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-socials { display: flex; gap: 12px; margin-top: 22px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: 0.3s; }
.footer-socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- Sticky mobile call button ---------- */
.mobile-call {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 95;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1409; font-weight: 700; padding: 16px; border-radius: 100px;
  box-shadow: var(--shadow-gold);
}
.mobile-call svg { width: 18px; height: 18px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--charcoal); color: var(--text-light);
  padding: clamp(150px, 20vh, 220px) 0 clamp(70px, 9vw, 110px);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumbs { font-size: 13px; letter-spacing: 0.1em; color: var(--text-light-mid); margin-top: 22px; }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .display { margin-top: 20px; }
.page-hero .lead { margin: 22px auto 0; }
.page-hero-bg { position: absolute; inset: 0; opacity: 0.22; object-fit: cover; width: 100%; height: 100%; z-index: 0; filter: grayscale(0.2); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21,19,15,0.6), var(--charcoal) 92%); }

/* ---------- Image placeholder util ---------- */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(205,184,147,0.16) 0 12px, rgba(205,184,147,0.06) 12px 24px),
    var(--charcoal-2);
  display: grid; place-items: center;
  color: var(--text-light-mid); font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---------- Utility ---------- */
.grid { display: grid; }
.flex { display: flex; }
.gold-text { color: var(--gold-deep); }
.section-dark .gold-text { color: var(--gold); }
.muted { color: var(--text-mid); }
.divider-gold { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 3px; }

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

/* Large desktops — let the layout breathe a touch more */
@media (min-width: 1600px) {
  :root { --container: 1340px; }
  body { font-size: 18px; }
}

/* Tablets / small laptops */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
}

@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mobile-call { display: flex; }
  /* keep clear of the sticky call button */
  .site-footer { padding-bottom: 96px; }
}

/* Landscape phones / large phones */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 11px 0; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { font-size: 9.5px; letter-spacing: 0.18em; }
}

/* Phones */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  /* declutter header: rely on hamburger + sticky call button */
  .nav-cta .btn { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.2em; }
  .eyebrow::before, .eyebrow.center::after { width: 22px; }
  .section-head .lead, .lead { font-size: 1.02rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .brand-text span { display: none; }
  .display { font-size: 2.3rem; }
}
