/* ═══════════════════════════════════════════════════════════
   Robertson Restoration — Shared Stylesheet
   robertsonrestoration.net
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --green:       #1F4E35;
  --green-dark:  #163828;
  --green-light: #2C6144;
  --white:       #FFFFFF;
  --cream:       #F7F4EE;
  --warm-off:    #EDE8DF;
  --text:        #1A1A18;
  --text-muted:  #5A5A52;
  --gold:        #C9A96E;
  --nav-h:       80px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  padding-top: var(--nav-h);
}
body.hero-page { padding-top: 0; }
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: box-shadow 0.3s;
}
nav#main-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.35); }

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  border-bottom: 1px solid rgba(201,169,110,0.6);
  padding-bottom: 2px;
}
.nav-links .nav-cta {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 9px 22px;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ── PAGE TITLE BAND (interior pages) ──────────────────── */
.page-band {
  background: var(--green-dark);
  padding: 64px 80px 56px;
  position: relative;
}
.page-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: 80px;
  width: 48px;
  height: 2px;
  background: var(--gold);
}
.page-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-band h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

/* ── SECTION SHELL ──────────────────────────────────────── */
section { padding: 100px 80px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}
.section-heading.light { color: var(--white); }
.section-body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 640px;
}
.section-body.light { color: rgba(255,255,255,0.75); }
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0 32px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--green-light);
  transition: background 0.25s, border-color 0.25s;
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}
.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--green-dark);
  padding: 52px 80px 44px;
  text-align: center;
}
.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-divider {
  width: 32px;
  height: 1px;
  background: rgba(201,169,110,0.45);
  margin: 4px 0 8px;
}
.footer-contact {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.58);
  transition: color 0.2s;
}
.footer-contact:hover { color: var(--white); }
.footer-copy {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  margin-top: 14px;
}

/* ── OAK QUOTE BAND ─────────────────────────────────────── */
.oak-band {
  padding: 56px 80px;
  background-color: var(--warm-off);
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 3px, rgba(160,120,60,0.04) 3px, rgba(160,120,60,0.04) 6px),
    repeating-linear-gradient(180deg, transparent 0px, transparent 20px, rgba(140,100,40,0.03) 20px, rgba(140,100,40,0.03) 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oak-band blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
  text-align: center;
  max-width: 720px;
  line-height: 1.7;
}

/* ── PORTFOLIO ──────────────────────────────────────────── */
.portfolio-wrap { background: var(--cream); padding: 80px 80px 100px; }
.portfolio-header {
  max-width: 1200px;
  margin: 0 auto 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.portfolio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 2px;
}
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; }
.portfolio-item.featured { grid-column: span 2; }
.portfolio-photo {
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-photo { transform: scale(1.04); }
.portfolio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(to top, rgba(15,35,24,0.9) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; transform: translateY(0); }
.portfolio-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}
.portfolio-caption p {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.portfolio-cta {
  display: block;
  text-align: center;
  margin: 48px auto 0;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 4px;
  width: fit-content;
}

/* ── PROCESS ────────────────────────────────────────────── */
.process-wrap { background: var(--white); padding: 100px 80px; }
.process-grid {
  max-width: 1200px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.process-card { border-top: 2px solid var(--green); padding-top: 28px; }
.process-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  color: rgba(31,78,53,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.process-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}
.process-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── FOUNDATION ─────────────────────────────────────────── */
.foundation-wrap {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 80px;
}
.foundation-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  background: var(--green);
  opacity: 0.18;
}
.story-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.story-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background-image: url('/images/story.jpg');
  background-size: cover;
  background-position: center;
}

/* ── HOME INTRO ─────────────────────────────────────────── */
.intro-wrap { background: var(--white); padding: 88px 80px; }
.intro-inner { max-width: 1200px; margin: 0 auto; }
.intro-body { max-width: 780px; margin-bottom: 56px; }
.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #E2DDD4;
  padding-top: 40px;
}
.credential { padding: 0 40px 0 0; border-right: 1px solid #E2DDD4; }
.credential:nth-child(2) { padding: 0 40px; }
.credential:last-child { padding: 0 0 0 40px; border-right: none; }
.credential-icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 14px; }
.credential-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.credential-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── HOME PAGE NAV LINKS ────────────────────────────────── */
.page-links {
  background: var(--cream);
  padding: 56px 80px;
}
.page-links-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.page-link-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}
.page-link-card:hover { background: var(--green-dark); }
.page-link-card:hover .plc-title,
.page-link-card:hover .plc-arrow { color: var(--white); }
.page-link-card:hover .plc-desc { color: rgba(255,255,255,0.6); }
.plc-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}
.plc-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  transition: color 0.2s;
  flex: 1;
}
.plc-arrow {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  transition: color 0.2s;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact-wrap { background: var(--cream); padding: 100px 80px; }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info > p {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
}
.contact-detail { margin-bottom: 20px; }
.contact-detail-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
}
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid #D8D3C8;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--green-dark);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 17px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  width: fit-content;
}
.form-submit:hover { background: var(--green-light); }

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  margin-right: -6px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: transform 0.27s ease, opacity 0.27s ease;
  transform-origin: center;
}
nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── TABLET 900px ────────────────────────────────────────── */
@media (max-width: 900px) {
  nav#main-nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10.5px; }
  .page-band { padding: 48px 32px 40px; }
  .page-band::after { left: 32px; }
  section,
  .intro-wrap,
  .portfolio-wrap,
  .process-wrap,
  .foundation-wrap,
  .contact-wrap,
  .page-links { padding: 60px 32px; }
  .oak-band { padding: 40px 32px; }
  .story-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .portfolio-item.featured { grid-column: span 2; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .page-links-inner { grid-template-columns: 1fr 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .credential,
  .credential:nth-child(2),
  .credential:last-child {
    padding: 0 0 28px 0;
    border-right: none;
    border-bottom: 1px solid #E2DDD4;
    margin-bottom: 28px;
  }
  .credential:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  footer { padding: 40px 32px; }
}

/* ── MOBILE NAV — hamburger at 768px ────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  /* Nav links become a slide-down dropdown */
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  nav.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.72);
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a.active {
    color: var(--white);
    border-bottom: none;
    padding-bottom: 14px;
  }

  /* "Begin a Conversation" — plain gold link in mobile menu */
  .nav-links .nav-cta {
    border: none;
    padding: 14px 0;
    background: none;
    color: var(--gold);
  }
  .nav-links .nav-cta:hover,
  .nav-links .nav-cta.active {
    background: none;
    border: none;
    color: var(--white);
  }
}

/* ── PHONE 600px ─────────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --nav-h: 68px; }
  .nav-name { font-size: 15px; letter-spacing: 0.13em; }
  .nav-sub { display: none; }

  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .portfolio-item.featured { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .page-links-inner { grid-template-columns: 1fr; }

  section,
  .intro-wrap,
  .portfolio-wrap,
  .process-wrap,
  .foundation-wrap,
  .contact-wrap,
  .page-links { padding: 48px 20px; }
  .page-band { padding: 40px 20px 36px; }
  .page-band::after { left: 20px; }
  .oak-band { padding: 32px 20px; }
  footer { padding: 36px 20px; }

  .section-body { font-size: 15px; }
  .process-desc { font-size: 14.5px; }
  .page-link-card { padding: 28px 24px; }
}
