/* San Juan Closet Works — site styles */
:root {
  --green: #627d69;          /* main forest green */
  --green-rgb: 98, 125, 105;
  --green-dark: #485b4d;
  --green-dark-rgb: 72, 91, 77;
  --green-deep: #2d3a30;
  --green-deep-rgb: 45, 58, 48;
  --blue: #0b5e7a;           /* river-blue accent */
  --gold: #e8b151;
  --gold-light: #f3cf60;
  --gold-rgb: 232, 177, 81;
  --cream: #fbf8f2;
  --cream-2: #f6f1e6;
  --ink: #1f2a30;
  --muted: #4f5960;
  --line: #b9b2a4;
  --shadow: 0 24px 50px -28px rgba(var(--green-deep-rgb), 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 55%, var(--cream) 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--cream); color: var(--ink); border-radius: 4px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top: nav + logo ---------- */
.top {
  background: linear-gradient(180deg,
    var(--green-deep) 0%,
    var(--green) 70px,
    rgba(var(--green-rgb), 0.55) 150px,
    rgba(218, 227, 209, 0.35) 330px,
    rgba(246, 241, 230, 0) 520px);
}

.nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 56px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.26em;
}
.nav-links a { color: #fff; text-decoration: none; padding: 24px 0; }
.nav-links a:hover { color: var(--gold-light); }

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0) 0%, rgba(var(--gold-rgb), 0.9) 50%, rgba(var(--gold-rgb), 0) 100%);
}

.logo-area { display: flex; justify-content: center; padding: 40px 24px 32px; }
.logo-glow {
  display: block; line-height: 0; max-width: 100%;
  padding: 50px 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(251, 248, 242, 1) 0%, rgba(251, 248, 242, 0.95) 45%, rgba(251, 248, 242, 0) 72%);
}
.logo-glow img { display: block; width: 530px; max-width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 8px 24px 0; }
.hero-card { border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(var(--green-deep-rgb), 0.45); }

.services {
  margin: 0; padding: 16px 24px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--gold-light); background-color: rgba(var(--green-dark-rgb), 0.87);
}
.services .dot { display: inline-block; margin: 0 20px; opacity: 0.7; }

.hero-photo { position: relative; min-height: 620px; display: flex; align-items: flex-end; }
.hero-photo picture, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero-text { position: relative; padding: 56px; max-width: 680px; color: #fff; }
.hero-text h1 {
  margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em;
}
.hero-text p { margin: 0 0 30px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 16px 30px; border-radius: 2px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
}
.btn-gold { background: linear-gradient(135deg, #f3cf60 0%, #e8b151 60%, #e0b87a 100%); color: var(--ink); border: 0; }
.btn-gold:hover { color: var(--ink); filter: brightness(1.04); }
.btn-frost {
  padding: 15px 29px; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--gold-light);
  background: rgba(var(--green-deep-rgb), 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-frost:hover { color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border: 0; min-height: 50px; }
.btn-green:hover { color: #fff; filter: brightness(1.06); }
.btn-green:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Section headings ---------- */
.heading-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 48px; }
.heading-row .line { flex: 0 1 120px; height: 1px; }
.heading-row .line-l { background: linear-gradient(90deg, rgba(var(--gold-rgb), 0), var(--gold)); }
.heading-row .line-r { background: linear-gradient(90deg, var(--gold), rgba(var(--gold-rgb), 0)); }
h2.section-title {
  margin: 0; font-size: clamp(28px, 4vw, 34px); font-weight: 600; letter-spacing: -0.01em; color: var(--green); text-align: center;
}
.section-sub { margin: -34px auto 48px; text-align: center; color: var(--muted); }

/* ---------- Why ---------- */
.why { padding-top: 80px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.feature { padding-top: 24px; border-top: 1px solid rgba(var(--gold-rgb), 0.55); display: flow-root; }
.feature svg { float: left; margin: -6px 12px 0 -6px; width: 58px; height: 58px; }
.feature h3 { margin: 0 0 6px; line-height: 1.3; font-size: 19px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Our Work ---------- */
.work { padding: 80px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.card img { display: block; width: 100%; height: 280px; object-fit: cover; }
.card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.card h3 { margin: 0; padding: 20px 28px 24px; font-size: 19px; font-weight: 600; color: var(--green); }
.card h3.blue { color: var(--blue); }

/* ---------- Process ---------- */
.process {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--green-rgb), 0) 0%, rgba(var(--green-rgb), 0.35) 90px, var(--green) 240px, var(--green-dark) calc(100% - 100px), rgba(246, 241, 230, 0) calc(100% - 100px));
}
.peaks { display: block; width: 100%; height: 160px; }
.process-inner { padding-top: 16px; padding-bottom: 80px; color: #fff; }
.process-head { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; }
.process-head h2 { margin: 0; font-size: clamp(28px, 4vw, 34px); font-weight: 600; letter-spacing: -0.01em; }
.process-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.9), rgba(var(--gold-rgb), 0)); }
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.step { padding-top: 24px; border-top: 1px solid rgba(var(--gold-rgb), 0.5); display: flow-root; }
.step h3 { margin: 0 0 12px; line-height: 1.3; font-size: 21px; font-weight: 600; }
.step .num { float: left; margin: 4px 14px 0 0; font-size: 46px; font-weight: 500; line-height: 0.9; color: var(--gold-light); }
.step p { margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.process-fade { height: 100px; background: linear-gradient(180deg, var(--green-dark) 0%, rgba(var(--green-dark-rgb), 0.4) 50%, rgba(246, 241, 230, 0) 100%); }

/* ---------- About ---------- */
.about { padding-top: 24px; padding-bottom: 80px; }
.about-row { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.about figure { flex: 1 1 460px; min-width: 0; margin: 0; }
.about figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px;
  box-shadow: 0 24px 50px -28px rgba(var(--green-deep-rgb), 0.45);
}
.about figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.about-text { flex: 1 1 380px; min-width: 0; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--green); }
.about-text p.lead { margin: 0 0 18px; font-size: 19px; line-height: 1.6; }
.about-text p.lead:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; padding-bottom: 80px; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--green); }
.short-rule { width: 80px; height: 1px; background: var(--gold); margin-bottom: 20px; }
.contact-info .intro { margin: 0 0 28px; color: var(--muted); }
.label { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.contact-info .phone { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.contact-info .phone a { text-decoration: none; }
.contact-info .value { margin: 0 0 18px; }

.form {
  flex: 1 1 460px; min-width: 0; display: grid; gap: 16px; padding: 36px;
  border-radius: 4px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(var(--gold-rgb), 0.3);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; min-height: 48px; padding: 10px 14px; width: 100%;
  border: 1px solid var(--line); border-radius: 2px; background: #fffdf9; color: var(--ink);
}
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--green-dark); font-weight: 600; }
.form-status.err { color: #9a3b1f; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, rgba(var(--green-rgb), 0) 0%, rgba(var(--green-rgb), 0.6) 60px, var(--green-dark) 140px, var(--green-deep) 100%); }
.footer-space { height: 60px; }
.footer-inner {
  padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: rgba(255, 255, 255, 0.78);
}
.footer-name { color: #fff; font-weight: 600; letter-spacing: 0.06em; }
.footer-inner a { color: var(--gold-light); text-decoration: none; font-weight: 600; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { gap: 0 16px; font-size: 11px; letter-spacing: 0.1em; padding: 0 12px; }
  .nav-links a { padding: 16px 0; }
  .logo-area { padding: 24px 16px 20px; }
  .logo-glow { padding: 24px 28px; }
  .hero { padding: 4px 12px 0; }
  .services { padding: 12px 14px; font-size: 11px; letter-spacing: 0.16em; line-height: 1.9; }
  .services .dot { margin: 0 8px; }
  .hero-photo { min-height: 480px; }
  .hero-text { padding: 28px 22px; }
  .hero-text p { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .why, .work { padding-top: 56px; }
  .heading-row { margin-bottom: 32px; gap: 12px; }
  .heading-row .line { flex: 0 0 28px; }
  /* phones: a soft shade behind the hero text so it stays readable over the photo */
  .hero-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 80%);
  }
  .hero-text { z-index: 1; }
  .section-sub { margin: -20px auto 32px; }
  .cards { gap: 28px; grid-template-columns: 1fr; }
  .card img { height: 240px; }
  .peaks { height: 90px; }
  .process-inner { padding-bottom: 56px; }
  .about, .contact { padding-bottom: 56px; }
  .about figure, .about-text, .contact-info, .form { flex-basis: 100%; }
  .about-text p.lead { font-size: 17px; }
  .form { padding: 24px 18px; }
}
