/* ==========================================================
   DIAMOND RIDGE CONSTRUCTIONS — DESIGN TOKENS
   ========================================================== */
:root{
  --white:#FFFFFF;
  --bone:#F8F7F3;
  --graphite:#1A1A1A;
  --graphite-soft:#2A2A28;
  --silver:#C9C9C9;
  --silver-deep:#9E9E9E;
  --gold:#C6A05A;
  --gold-light:#E7C97A;
  --gold-deep:#9C7A3C;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:1280px;
  --pad:clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bone);
  color:var(--graphite);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  line-height:1.12;
  margin:0;
  letter-spacing:-0.01em;
}
p{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

.eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--gold-deep);
  font-weight:600;
  margin-bottom:14px;
}
.gold-text{
  font-style:italic;
  background:linear-gradient(100deg, var(--gold-deep), var(--gold-light) 55%, var(--gold));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.text-link{
  display:inline-block;
  margin-top:18px;
  font-weight:600;
  border-bottom:1px solid var(--gold);
  padding-bottom:2px;
  transition:opacity .25s var(--ease);
}
.text-link:hover{ opacity:.6; }

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 30px;
  border-radius:2px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.03em;
  border:1px solid transparent;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space:nowrap;
}
.btn--gold{
  background:linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color:var(--graphite);
  box-shadow:0 8px 24px -8px rgba(198,160,90,.55);
}
.btn--gold:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(198,160,90,.7); }
.btn--ghost{
  background:transparent;
  border-color:rgba(255,255,255,.5);
  color:var(--white);
  backdrop-filter:blur(6px);
}
.btn--ghost:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }
.btn--full{ width:100%; }

/* ---------- RIDGE LOADER ---------- */
.ridge-loader{
  position:fixed; inset:0; z-index:9999;
  background:var(--graphite);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.ridge-loader.is-hidden{ opacity:0; visibility:hidden; }
.ridge-loader__mark{ width:160px; height:auto; }
.ridge-loader__mark polyline{
  fill:none; stroke:var(--gold); stroke-width:3;
  stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:400; stroke-dashoffset:400;
  animation:draw-ridge 1.1s var(--ease) forwards;
}
@keyframes draw-ridge{ to{ stroke-dashoffset:0; } }

/* ---------- RIDGE DIVIDERS (signature motif) ---------- */
.ridge-divider{ line-height:0; margin-top:-1px; }
.ridge-divider svg{ width:100%; height:44px; display:block; }
.ridge-divider polyline{
  fill:none;
  stroke:var(--silver);
  stroke-width:1.4;
  opacity:.6;
}
.ridge-divider--hero{
  position:absolute; left:0; right:0; bottom:132px; z-index:2;
}
.ridge-divider--hero svg{ height:60px; }
.ridge-divider--hero polyline{ stroke:var(--gold-light); opacity:.85; stroke-width:1.6; }

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  transition:background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding:22px 0;
}
.nav__inner{
  max-width:var(--max-w); margin:0 auto; padding:0 var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav.is-scrolled{
  background:rgba(248,247,243,.82);
  backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 1px 0 rgba(0,0,0,.06);
  padding:14px 0;
}
.nav__brand{ display:flex; align-items:center; gap:10px; }
.nav__logo{ width:34px; height:34px; object-fit:contain; }
.nav__brand-text{
  font-family:var(--font-display); font-size:19px; font-weight:500;
  color:var(--white); transition:color .35s var(--ease);
}
.nav.is-scrolled .nav__brand-text{ color:var(--graphite); }

.nav__links{ display:flex; gap:34px; }
.nav__links a{
  font-size:14px; font-weight:500; color:rgba(255,255,255,.92);
  position:relative; transition:color .3s var(--ease);
}
.nav.is-scrolled .nav__links a{ color:var(--graphite-soft); }
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:1px;
  background:var(--gold); transition:width .3s var(--ease);
}
.nav__links a:hover::after{ width:100%; }

.nav__cta{ padding:12px 24px; font-size:13px; }
.nav__toggle{
  display:none; background:none; border:none; width:28px; height:20px;
  position:relative; padding:0;
}
.nav__toggle span{
  position:absolute; left:0; right:0; height:2px; background:var(--white);
  transition:.3s var(--ease);
}
.nav.is-scrolled .nav__toggle span{ background:var(--graphite); }
.nav__toggle span:nth-child(1){ top:0; }
.nav__toggle span:nth-child(2){ top:9px; }
.nav__toggle span:nth-child(3){ top:18px; }
.nav__toggle.is-open span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2){ opacity:0; }
.nav__toggle.is-open span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  position:relative; min-height:100svh; display:flex; flex-direction:column;
  justify-content:center; overflow:hidden; padding:120px var(--pad) 0;
}
.hero__media{ position:absolute; inset:0; z-index:0; }
.hero__img{ width:100%; height:100%; object-fit:cover; }
.hero__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(15,15,14,.55) 0%, rgba(15,15,14,.45) 40%, rgba(12,12,11,.86) 100%),
    linear-gradient(100deg, rgba(15,15,14,.55), rgba(15,15,14,.15) 55%);
}
.hero__content{ position:relative; z-index:2; max-width:820px; margin:0 auto var(--pad); width:100%; }
.hero .eyebrow{ color:var(--gold-light); }
.hero__headline{
  font-size:clamp(38px, 6.4vw, 76px);
  color:var(--white);
  font-weight:400;
}
.hero__sub{
  color:rgba(255,255,255,.82);
  font-size:clamp(15px,1.6vw,18px);
  max-width:520px;
  margin-top:22px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:36px; }

.stats-strip{
  position:relative; z-index:2;
  max-width:var(--max-w); margin:0 auto; width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:26px clamp(20px,4vw,40px);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:4px;
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 24px 60px -20px rgba(0,0,0,.55);
  margin-bottom:56px;
  animation:float-card 6s ease-in-out infinite;
}
@keyframes float-card{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
.stat{ display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; text-align:center; }
.stat__num{ font-family:var(--font-display); font-size:clamp(22px,3vw,34px); color:var(--gold-light); font-weight:500; }
.stat__label{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.75); }
.stat-divider{ width:1px; height:34px; background:rgba(255,255,255,.22); }

.scroll-tag{
  position:absolute; left:var(--pad); bottom:38px; z-index:2;
  writing-mode:vertical-rl; letter-spacing:.3em; font-size:11px;
  color:rgba(255,255,255,.6); text-transform:uppercase;
}

/* ==========================================================
   SECTION HEAD
   ========================================================== */
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; padding:0 var(--pad); }
.section-head h2{ font-size:clamp(28px,3.6vw,42px); }
.section-head.light .eyebrow{ color:var(--gold-light); }
.section-head.light h2{ color:var(--white); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about{ padding:120px var(--pad); max-width:var(--max-w); margin:0 auto; }
.about__grid{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.about__media{ position:relative; }
.about__media img{ border-radius:4px; aspect-ratio:4/5; object-fit:cover; }
.about__frame{
  position:absolute; top:20px; left:-20px; right:20px; bottom:-20px;
  border:1px solid var(--gold); border-radius:4px; z-index:-1;
}
.about__copy h2{ font-size:clamp(28px,3.4vw,40px); margin-bottom:20px; }
.about__copy p{ color:#4a4a48; margin-bottom:16px; max-width:480px; }

/* ==========================================================
   SERVICES
   ========================================================== */
.services{ padding:100px var(--pad) 120px; max-width:var(--max-w); margin:0 auto; }
.services__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.service-card{
  background:var(--white);
  border:1px solid rgba(0,0,0,.06);
  border-radius:4px;
  padding:36px 26px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:0 26px 50px -24px rgba(20,20,18,.25);
  border-color:transparent;
}
.service-card__icon{
  width:52px; height:52px; margin-bottom:22px;
  color:var(--gold-deep);
}
.service-card__icon svg{ width:100%; height:100%; }
.service-card h3{ font-size:19px; margin-bottom:10px; font-weight:500; }
.service-card p{ font-size:14.5px; color:#5a5a57; }

/* ==========================================================
   PROJECTS
   ========================================================== */
.projects{ padding:0 var(--pad) 120px; max-width:var(--max-w); margin:0 auto; }
.projects__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.project-card{
  position:relative; overflow:hidden; border-radius:4px; aspect-ratio:4/5;
}
.project-card img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease);
}
.project-card:hover img{ transform:scale(1.08); }
.project-card::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 50%, rgba(10,10,9,.85) 100%);
}
.project-card__tag{
  position:absolute; left:18px; bottom:16px; z-index:2;
  color:var(--white); font-size:13.5px; font-weight:500; letter-spacing:.02em;
}

/* ==========================================================
   WHY US
   ========================================================== */
.why{ background:var(--graphite); padding:110px var(--pad); }
.why__grid{
  max-width:var(--max-w); margin:0 auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.why-card{ background:var(--graphite); padding:40px 34px; transition:background .35s var(--ease); }
.why-card:hover{ background:#242220; }
.why-card__num{
  font-family:var(--font-display); font-style:italic; color:var(--gold);
  font-size:15px; display:block; margin-bottom:16px;
}
.why-card h3{ color:var(--white); font-size:18px; margin-bottom:8px; font-weight:500; }
.why-card p{ color:rgba(255,255,255,.6); font-size:14px; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials{ padding:120px var(--pad); max-width:var(--max-w); margin:0 auto; }
.testimonials__track{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testimonial-card{
  background:var(--white); border-radius:4px; padding:36px 30px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 20px 44px -30px rgba(20,20,18,.3);
}
.stars{ color:var(--gold); letter-spacing:2px; font-size:15px; margin-bottom:18px; }
.testimonial-card p{ font-size:15px; color:var(--graphite-soft); line-height:1.65; margin-bottom:24px; }
.testimonial-card__author{ display:flex; flex-direction:column; }
.author-name{ font-weight:600; font-size:14.5px; }
.author-loc{ font-size:12.5px; color:#8a8a86; margin-top:2px; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact{ padding:120px var(--pad); max-width:var(--max-w); margin:0 auto; }
.contact__grid{ display:grid; grid-template-columns:1fr 1fr; gap:72px; }
.contact__info h2{ font-size:clamp(28px,3.4vw,38px); margin:6px 0 18px; }
.contact__info p{ color:#5a5a57; max-width:420px; margin-bottom:32px; }
.contact__list{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.contact__list li{ display:flex; flex-direction:column; gap:2px; }
.contact__label{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-deep); font-weight:600; }
.contact__list a{ font-size:16px; font-weight:500; transition:color .25s var(--ease); }
.contact__list a:hover{ color:var(--gold-deep); }
.contact__socials{ display:flex; gap:20px; }
.contact__socials a{ font-size:13.5px; font-weight:600; border-bottom:1px solid var(--graphite); padding-bottom:2px; }

.contact__form{
  background:var(--white); border-radius:4px; padding:40px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 30px 60px -34px rgba(20,20,18,.25);
  display:flex; flex-direction:column; gap:20px;
}
.contact__form label{ display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:600; color:var(--graphite-soft); }
.contact__form input, .contact__form textarea{
  font-family:var(--font-body); font-size:15px; padding:13px 14px;
  border:1px solid rgba(0,0,0,.14); border-radius:3px; background:var(--bone);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
  resize:vertical;
}
.contact__form input:focus, .contact__form textarea:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(198,160,90,.18);
}
.form__note{ font-size:13px; color:var(--gold-deep); min-height:16px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{ background:var(--graphite); color:rgba(255,255,255,.8); }
.footer__inner{
  max-width:var(--max-w); margin:0 auto; padding:64px var(--pad) 32px;
  display:flex; flex-wrap:wrap; gap:32px; align-items:center; justify-content:space-between;
}
.footer__brand{ display:flex; align-items:center; gap:10px; }
.footer__brand img{ width:30px; height:30px; }
.footer__brand span{ font-family:var(--font-display); color:var(--white); font-size:16px; }
.footer__links{ display:flex; gap:26px; flex-wrap:wrap; }
.footer__links a{ font-size:13.5px; color:rgba(255,255,255,.7); transition:color .25s var(--ease); }
.footer__links a:hover{ color:var(--gold-light); }
.footer__socials{ display:flex; gap:22px; flex-wrap:wrap; }
.footer__socials a{ font-size:13.5px; color:rgba(255,255,255,.7); transition:color .25s var(--ease); }
.footer__socials a:hover{ color:var(--gold-light); }
.footer__bottom{
  text-align:center; font-size:12.5px; color:rgba(255,255,255,.4);
  padding:20px var(--pad) 30px; border-top:1px solid rgba(255,255,255,.08);
  max-width:var(--max-w); margin:0 auto;
}

/* ==========================================================
   WHATSAPP FAB
   ========================================================== */
.whatsapp-fab{
  position:fixed; right:22px; bottom:22px; z-index:900;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -10px rgba(37,211,102,.6);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-fab svg{ width:28px; height:28px; }
.whatsapp-fab:hover{ transform:translateY(-4px) scale(1.05); box-shadow:0 20px 36px -10px rgba(37,211,102,.7); }

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:1024px){
  .about__grid{ grid-template-columns:1fr; gap:48px; }
  .contact__grid{ grid-template-columns:1fr; gap:48px; }
  .services__grid{ grid-template-columns:repeat(2,1fr); }
  .why__grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:860px){
  .nav__links{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px);
    background:var(--white); flex-direction:column; justify-content:center;
    gap:28px; padding:40px; transform:translateX(100%);
    transition:transform .4s var(--ease); box-shadow:-20px 0 50px rgba(0,0,0,.15);
  }
  .nav__links.is-open{ transform:translateX(0); }
  .nav__links a{ color:var(--graphite) !important; font-size:18px; }
  .nav__cta{ display:none; }
  .nav__toggle{ display:block; }

  .projects__grid{ grid-template-columns:repeat(2,1fr); }
  .testimonials__track{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .services__grid{ grid-template-columns:1fr; }
  .why__grid{ grid-template-columns:1fr; }
  .projects__grid{ grid-template-columns:1fr; }
  .stats-strip{ flex-wrap:wrap; gap:20px; }
  .stat-divider{ display:none; }
  .stat{ flex:1 1 40%; }
  .hero{ padding-top:110px; }
  .about, .services, .contact, .testimonials, .why{ padding-left:20px; padding-right:20px; }
  .contact__form{ padding:28px 22px; }
  .about__frame{ display:none; }
}

@media (max-width:400px){
  .hero__headline{ font-size:34px; }
  .stats-strip{ padding:20px; }
}
