/* ===========================================================
   Guy Land Residential — Custom Home Design
   Rebuilt by Level Nine Media | static Netlify build
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink:        #1c1a17;
  --ink-soft:   #43403a;
  --cream:      #f6f2ea;
  --paper:      #fbf9f4;
  --line:       #d9d1c2;
  --bronze:     #9c7c4a;
  --bronze-dk:  #7e6437;
  --white:      #ffffff;

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: .005em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 18px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.brand img { height: 56px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 42px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 400; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--bronze); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: .12em; color: var(--ink);
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-phone:hover { border-color: var(--bronze); color: var(--bronze); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 34px; height: 26px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 400;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 16px 40px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: all .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-light { border-color: var(--cream); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-solid { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-solid:hover { background: var(--bronze-dk); border-color: var(--bronze-dk); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.55), rgba(20,18,15,.72));
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  animation: kenburns 22s ease-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 300;
  max-width: 14ch;
}
.hero p {
  max-width: 56ch; margin: 28px 0 38px; font-size: 1.06rem;
  font-weight: 300; color: #ece6d9;
}
.hero .eyebrow { color: #d8b878; }

/* ---------- Generic section ---------- */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 80px 0; }

/* alternating feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 70px;
}
.feature.reverse .feature-media { order: 2; }
.feature-media {
  position: relative; overflow: hidden;
}
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 380px;
  transition: transform 1.2s var(--ease);
}
.feature-media:hover img { transform: scale(1.05); }
.feature h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 22px; }
.feature p { color: var(--ink-soft); font-size: 1.02rem; }
.feature .btn { margin-top: 30px; }

.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink .eyebrow { color: #d8b878; }
.bg-ink p { color: #cfc7b6; }

/* ---------- Intro / mission band ---------- */
.band {
  text-align: center; max-width: 820px; margin: 0 auto;
}
.band h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; font-weight: 300; }
.band p { font-size: 1.12rem; color: var(--ink-soft); }
.bg-ink .band p { color: #cfc7b6; }

/* ---------- Featured projects grid ---------- */
.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px;
}
.proj-grid figure { margin: 0; overflow: hidden; position: relative; aspect-ratio: 4/3; }
.proj-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-grid figure:hover img { transform: scale(1.07); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.quote { position: relative; padding-left: 0; }
.quote .mark {
  font-family: var(--display); font-size: 4.5rem; line-height: .6; color: var(--bronze);
  display: block; margin-bottom: 10px;
}
.quote blockquote {
  margin: 0; font-family: var(--display); font-style: italic;
  font-size: 1.5rem; line-height: 1.5; font-weight: 400; color: var(--cream);
}
.quote cite {
  display: block; margin-top: 22px; font-family: var(--body); font-style: normal;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #d8b878;
}
.quote cite span { display: block; color: #9c958a; letter-spacing: .1em; margin-top: 4px; font-size: .74rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink); color: var(--cream); text-align: center;
  padding: 120px 0 100px;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 300; }
.page-hero p { color: #cfc7b6; max-width: 60ch; margin: 22px auto 0; }
.page-hero .eyebrow { color: #d8b878; }

/* ---------- About ---------- */
.about-lead { max-width: 760px; margin: 0 auto; text-align: center; }
.about-lead p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 28px; }
.about-motto {
  font-family: var(--display); font-style: italic; font-size: 2rem;
  color: var(--bronze); margin: 40px 0 0;
}
.about-figure { margin: 70px 0 0; overflow: hidden; }
.about-figure img { width: 100%; max-height: 540px; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3; column-gap: 16px; margin-top: 10px;
}
.gallery-grid figure {
  margin: 0 0 16px; break-inside: avoid; overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-grid img { width: 100%; transition: transform .9s var(--ease), filter .5s; }
.gallery-grid figure::after {
  content: '+'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--display); font-size: 2.4rem; color: #fff;
  background: rgba(28,26,23,0); opacity: 0; transition: all .45s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure:hover::after { background: rgba(28,26,23,.35); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(18,16,13,.94); padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: none; border: none; color: #efe9dc; cursor: pointer;
  font-family: var(--display); transition: color .3s;
}
.lightbox .lb-close { top: 26px; right: 34px; font-size: 2.4rem; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 22px; }
.lightbox .lb-prev { left: 6px; }
.lightbox .lb-next { right: 6px; }
.lightbox button:hover { color: var(--bronze); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 300; margin-bottom: 34px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.contact-info .eyebrow { margin-bottom: 22px; }
.contact-info h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 300; margin-bottom: 26px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 30px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 1.02rem; }
.contact-detail svg { width: 18px; height: 18px; stroke: var(--bronze); flex: none; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-weight: 300; font-size: 1rem;
  color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  padding: 10px 2px; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 18px; }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a2; padding: 64px 0 30px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .brand img { height: 64px; filter: brightness(0) invert(1); opacity: .9; }
.footer-contact { font-size: .92rem; line-height: 1.9; }
.footer-contact a:hover { color: var(--bronze); }
.socials { display: flex; gap: 16px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid #43403a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .35s var(--ease);
}
.socials a:hover { border-color: var(--bronze); background: var(--bronze); }
.socials svg { width: 17px; height: 17px; fill: #cfc7b6; transition: fill .35s; }
.socials a:hover svg { fill: #fff; }
.footer-base {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid #322f2a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .74rem; letter-spacing: .08em; color: #8a8378;
}
.footer-base a { color: var(--bronze); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 92px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 0; transform: translateY(-130%); transition: transform .45s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 18px 0; }
  .nav-links a::after { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }

  .feature, .contact-wrap, .quotes { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media img { min-height: 300px; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .section-pad { padding: 74px 0; }
}

@media (max-width: 560px) {
  .proj-grid, .gallery-grid { columns: 1; grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
