/* =====================================================================
   Rockwood Custom Homes — luxury minimal site
   Neutral near-black + champagne GOLD, Playfair Display serif + Jost UI.
   Hand-authored. Mobile-first. Calm, expensive, architectural.
   Distinct from South Peak (brown/copper/Fraunces), Ultimate
   (green/sage/Cormorant) and Epic (navy/blue/Archivo grotesk).
   ===================================================================== */

:root {
  --bg:     #0E0E0F;   /* neutral near-black */
  --panel:  #161517;
  --panel-2:#1D1C1E;
  --deep:   #080808;
  --text:   #F0EDE6;   /* warm white */
  --soft:   rgba(240, 237, 230, 0.58);
  --gold:   #C7A86B;   /* champagne */
  --gold-l: #DEC68C;
  --gold-d: #A6884A;
  --line:   rgba(240, 237, 230, 0.14);
  --line-2: rgba(240, 237, 230, 0.07);

  --maxw: 1240px;
  --gut: clamp(22px, 5.5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *{animation:none!important;transition:none!important} }

body {
  margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.7; font-weight: 300; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* type primitives */
.overline { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); display: inline-block; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.04; letter-spacing: -0.005em; margin: 0; }
.display em { font-style: italic; color: var(--gold-l); }
h2.heading { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.08; margin: 0; }
.heading em { font-style: italic; color: var(--gold-l); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--soft); max-width: 58ch; font-weight: 300; }
.hairline { height: 1px; background: var(--line); border: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{transition-delay:.12s}.reveal[data-delay="2"]{transition-delay:.24s}.reveal[data-delay="3"]{transition-delay:.36s}

/* buttons — refined, gold */
.btn { display: inline-flex; align-items: center; gap: .7em; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 1.15em 2em; background: var(--gold); color: var(--deep); border: 1px solid var(--gold); transition: background .35s, color .35s, transform .35s; }
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: transparent; color: var(--gold-l); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { background: var(--text); color: var(--deep); border-color: var(--text); }
.ulink { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: .7em; align-items: center; position: relative; padding-bottom: 6px; }
.ulink::after { content:""; position: absolute; left:0; bottom:0; height:1px; width:100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ulink:hover::after { transform: scaleX(1); }
.ulink svg { width: 13px; height: 13px; transition: transform .3s; }
.ulink:hover svg { transform: translateX(5px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, padding .4s, box-shadow .4s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 26px var(--gut); transition: padding .4s var(--ease); }
.nav.scrolled { background: rgba(14,14,15,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-2); }
.nav.scrolled .nav-inner { padding-top: 15px; padding-bottom: 15px; }
.wordmark { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.wordmark span { color: var(--gold); }
.wordmark small { display: block; font-family: var(--sans); font-size: .56rem; font-weight: 400; letter-spacing: .42em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.nav-links { display: none; gap: 36px; align-items: center; }
.nav-links a { font-size: .76rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--text); opacity: .82; transition: color .25s, opacity .25s; }
.nav-links a:hover { color: var(--gold-l); opacity: 1; }
.nav-right { display: none; align-items: center; gap: 24px; }
.nav-phone { font-size: .8rem; letter-spacing: .08em; }
.burger { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { content:""; display:block; width: 26px; height: 1.4px; background: var(--text); position: relative; transition: .3s; }
.burger span::before{position:absolute;top:-8px}.burger span::after{position:absolute;top:8px}
.menu-open .burger span{background:transparent}
.menu-open .burger span::before{top:0;transform:rotate(45deg)}
.menu-open .burger span::after{top:0;transform:rotate(-45deg)}
.drawer { position: fixed; inset: 0; z-index: 99; background: var(--deep); transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column; justify-content: center; padding: var(--gut); }
.menu-open .drawer{transform:none}
.drawer a { font-family: var(--serif); font-size: 2rem; padding: 13px 0; border-bottom: 1px solid var(--line); }
.drawer a:last-of-type{border:0}
.drawer .btn{margin-top:26px;justify-content:center}
@media (min-width: 1000px){ .nav-links,.nav-right{display:flex} .burger{display:none} }

/* =====================================================================
   HERO — cinematic, image-led
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg .fallback { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 10%, #1b1a17 0%, var(--bg) 60%); }
.hero::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, transparent 28%, rgba(8,8,8,.85) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; }
.hero .overline { margin-bottom: 26px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0; max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold-l); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(240,237,230,.78); max-width: 48ch; margin: 28px 0 36px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div b { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; display: block; line-height: 1; }
.hero-meta div span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 8px; display: block; }

/* =====================================================================
   DIFFERENCE — transparency pillars
   ===================================================================== */
.diff { padding: clamp(70px,10vw,140px) 0; }
.diff-head { max-width: 60ch; margin-bottom: 56px; }
.diff-head .overline { display: block; margin-bottom: 22px; }
.pillars { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 820px){ .pillars { grid-template-columns: repeat(3,1fr); } }
.pillar { background: var(--bg); padding: 40px 34px; }
.pillar .pn { font-family: var(--serif); font-size: 1rem; color: var(--gold); font-style: italic; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 18px 0 12px; }
.pillar p { margin: 0; color: var(--soft); font-size: .96rem; }

/* =====================================================================
   PORTFOLIO — large-format asymmetric
   ===================================================================== */
.portfolio { padding: clamp(70px,10vw,140px) 0; background: var(--panel); }
.pf-head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.pf { display: grid; gap: clamp(40px,7vw,90px); }
.pf-item { display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px){ .pf-item { grid-template-columns: 1fr 1fr; } .pf-item.rev .pf-img { order: 2; } }
.pf-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--panel-2); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pf-item:hover .pf-img img { transform: scale(1.04); }
.pf-img .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.pf-img .fallback svg { width: 54px; height: 54px; opacity: .5; }
.pf-text .overline { display: block; margin-bottom: 16px; }
.pf-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem,3.6vw,2.6rem); margin: 0 0 14px; }
.pf-text p { color: var(--soft); margin: 0 0 22px; max-width: 46ch; }
.pf-text .specs { display: flex; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.pf-text .specs b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; display: block; }
.pf-text .specs span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process { padding: clamp(70px,10vw,140px) 0; }
.proc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.proc { display: grid; gap: 14px; padding: 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px){ .proc { grid-template-columns: .22fr .4fr 1fr; gap: 40px; align-items: baseline; } }
.proc .pn { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: var(--gold); font-style: italic; line-height: 1; }
.proc h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem,2.6vw,2rem); margin: 0; }
.proc p { margin: 0; color: var(--soft); max-width: 54ch; }

/* =====================================================================
   AWARDS band
   ===================================================================== */
.awards { padding: clamp(56px,8vw,100px) 0; background: var(--deep); }
.aw-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 44px 20px; text-align: center; }
@media (min-width: 820px){ .aw-grid { grid-template-columns: repeat(4,1fr); } }
.aw .n { font-family: var(--serif); font-size: clamp(2.8rem,6vw,4.4rem); font-weight: 500; line-height: 1; color: var(--text); }
.aw .n em { font-style: italic; color: var(--gold-l); }
.aw .l { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

/* =====================================================================
   SERVICES list
   ===================================================================== */
.services { padding: clamp(70px,10vw,140px) 0; background: var(--panel); }
.svc-list { margin-top: 50px; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.svc-row:hover { padding-left: 16px; }
.svc-row .no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.svc-row .name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem,3vw,2.2rem); transition: color .3s; }
.svc-row:hover .name { color: var(--gold-l); }
.svc-row .meta { font-size: .82rem; color: var(--soft); text-align: right; max-width: 26ch; }
@media (max-width: 640px){ .svc-row { grid-template-columns: auto 1fr; } .svc-row .meta { display: none; } }

/* =====================================================================
   TESTIMONIAL (single, large)
   ===================================================================== */
.quote { padding: clamp(80px,11vw,160px) 0; text-align: center; }
.quote .overline { margin-bottom: 30px; }
.quote blockquote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem,3.6vw,2.8rem); line-height: 1.4; margin: 0 auto; max-width: 22ch; }
.quote blockquote em { font-style: italic; color: var(--gold-l); }
.quote .by { margin-top: 34px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.quote .note { margin-top: 10px; font-size: .72rem; color: var(--soft); letter-spacing: .04em; }

/* =====================================================================
   CONTACT / CTA
   ===================================================================== */
.contact { padding: clamp(70px,10vw,140px) 0; background: var(--deep); }
.contact-grid { display: grid; gap: 50px; }
@media (min-width: 920px){ .contact-grid { grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; } }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem,5.5vw,4rem); line-height: 1.04; margin: 16px 0 0; }
.contact h2 em { font-style: italic; color: var(--gold-l); }
.contact .lead { margin-top: 24px; }
.contact-meta { margin-top: 38px; display: grid; gap: 18px; }
.contact-meta a, .contact-meta span { display: inline-flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.contact-meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.contact-hours { margin-top: 26px; font-size: .9rem; color: var(--soft); }

.form { border: 1px solid var(--line); padding: clamp(28px,4vw,44px); background: var(--bg); }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.form .small { color: var(--soft); font-size: .9rem; margin: 0 0 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: .98rem; font-weight: 300; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); transition: border-color .3s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(240,237,230,.34); }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 520px){ .form-row { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 12px; }
.form-note { text-align: center; font-size: .76rem; color: var(--soft); margin: 16px 0 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--bg); padding: clamp(60px,8vw,100px) 0 34px; border-top: 1px solid var(--line-2); }
.foot-top { display: grid; gap: 44px; }
@media (min-width: 820px){ .foot-top { grid-template-columns: 1.8fr 1fr 1fr; gap: 54px; } }
.foot-brand .wordmark span { color: var(--gold); }
.foot-brand p { color: var(--soft); max-width: 36ch; margin: 22px 0 0; font-size: .94rem; }
.foot-col h5 { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; font-weight: 500; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.foot-col a { color: var(--soft); font-size: .92rem; transition: color .25s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot-bottom p { margin: 0; font-size: .78rem; color: var(--soft); }
.foot-bottom .socials { display: flex; gap: 12px; }
.foot-bottom .socials a { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s; }
.foot-bottom .socials a:hover { background: var(--gold); border-color: var(--gold); }
.foot-bottom .socials a:hover svg { stroke: var(--deep); }
.foot-bottom .socials svg { width: 16px; height: 16px; }
.disclaimer { margin-top: 20px; font-size: .7rem; color: rgba(240,237,230,.36); max-width: 86ch; line-height: 1.6; }

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; background: var(--deep); border-top: 1px solid var(--line); }
.callbar a { flex: 1; text-align: center; padding: 15px; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.callbar a.alt { background: var(--gold); color: var(--deep); }
.callbar svg { width: 15px; height: 15px; }
@media (min-width: 1000px){ .callbar{display:none} }
@media (max-width: 999px){ body{padding-bottom:50px} }
