/* ============================================================
   Beaux Construction & Outdoors — beauxconstruction.com
   Colorway: emerald green / black / white
   Display: Cinzel (Roman inscriptional capitals — stone-carved)
   Body: Jost
   ============================================================ */

:root {
  --ink: #0a0f0c;
  --ink-soft: #101713;
  --emerald: #0f6b45;
  --emerald-deep: #0a4530;
  --emerald-bright: #2fa36b;
  --white: #ffffff;
  --paper: #f5f8f6;
  --muted: #5c6b62;
  --line: rgba(15, 107, 69, 0.35);
  --line-light: rgba(255, 255, 255, 0.22);
  /* gold sampled from the logo's rope border — hairline accents only.
     --gold is deep + saturated so it reads on white sections;
     --gold-bright is used on dark backgrounds. */
  --gold: #cf9520;
  --gold-bright: #f2cf78;
  --gold-deep: #a8700c;
  --gold-line: rgba(207, 149, 32, 0.9);
  --gold-line-soft: rgba(207, 149, 32, 0.55);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

a { color: var(--emerald); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- eyebrow + mortar-line signature ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--emerald-bright); }
.on-dark .eyebrow::before { background: var(--gold-bright); }

.rule { border: 0; height: 1px; background: var(--gold-line); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 12, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 207, 120, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}
.brand span { color: var(--emerald-bright); }
.brand-lockup { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.brand-text { display: block; font-size: 0.92rem; letter-spacing: 0.1em; }
@media (max-width: 480px) {
  .brand-text { font-size: 0.82rem; max-width: 150px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
}

/* logo crest in hero */
.hero-crest {
  width: clamp(130px, 20vw, 190px);
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.55));
}

/* logo mark in footer */
.footer-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  opacity: 0.95;
}
.footer-tagline {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  list-style: none;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--white); border-color: var(--emerald-bright); }
.nav-links a.active { color: var(--emerald-bright); border-color: var(--emerald-bright); }
.nav-links a.nav-cta {
  border: 1px solid var(--emerald-bright);
  color: var(--white);
  padding: 11px 18px;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--emerald); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--gold-line-soft);
    display: none;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a.nav-cta { text-align: center; margin-top: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--emerald); color: var(--white); }
.btn-solid:hover { background: var(--emerald-deep); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 128px 24px 136px;
  overflow: hidden;
}
/* dark scrim keeps headline legible over any photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 12, 0.82) 0%, rgba(10, 15, 12, 0.62) 45%, rgba(10, 15, 12, 0.88) 100%),
    radial-gradient(900px 500px at 50% 45%, rgba(10, 69, 48, 0.35), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 90px
  );
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { justify-content: center; color: var(--emerald-bright); }
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; width: 42px; height: 1px; background: var(--gold-bright);
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 26px auto 10px;
  max-width: 860px;
}
.hero .hero-sub {
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 26px;
}
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 42px;
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}
.hero .btn-row { justify-content: center; }

/* page heroes (interior pages) */
.page-hero { padding: 88px 24px 92px; }
.page-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-dark {
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(47, 163, 107, 0.18), transparent 60%),
    var(--ink);
  color: var(--white);
}
.section-paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.78); }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* Centered eyebrows need a rule on BOTH sides, or the single left dash
   shifts the text off centre. Dark sections use the brighter gold. */
.center .eyebrow,
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow { color: var(--emerald-bright); }
.center .eyebrow::after,
.cta-band .eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}
.cta-band .eyebrow::before,
.cta-band .eyebrow::after { background: var(--gold-bright); }

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.pillar { padding: 44px 34px; border-left: 1px solid var(--gold-line-soft); }
.pillar:first-child { border-left: 0; }
.pillar h3 { font-size: 1.02rem; color: var(--emerald-deep); margin-bottom: 14px; }
.pillar p { font-size: 0.98rem; color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--gold-line-soft); }
  .pillar:first-child { border-top: 0; }
}

/* ---------- service blocks ---------- */
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--gold-line-soft);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc.flip .svc-media { order: 2; }
.svc h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.svc h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}
.svc .svc-tag {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 16px;
}
.svc p { color: var(--muted); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .svc.flip .svc-media { order: 0; }
}

/* ---------- photo frames ---------- */
/* the thin gold inner rule echoes the rope border on the logo */
.card-img, .work-img, .split-media, .svc-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-line-soft);
  background: var(--ink);
}
.card-img::after, .work-img::after, .split-media::after, .svc-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(246, 214, 141, 0.5);
  pointer-events: none;
  z-index: 1;
}
.card-img img, .work-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.split-media img, .svc-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.card:hover .card-img img,
.work-tile:hover .work-img img,
.work-tile:focus-visible .work-img img { transform: scale(1.04); }

.card figcaption {
  padding: 16px 4px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.card figcaption strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- "coming soon" media placeholder ---------- */
.media-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(420px 300px at 30% 20%, rgba(15, 107, 69, 0.4), transparent 65%),
    linear-gradient(150deg, #0d1410 0%, #12241b 60%, #0a0f0c 100%);
}
.media-placeholder .ph-text {
  position: relative;
  z-index: 2;
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-align: center;
  padding: 0 20px;
}

/* ---------- split text/image section ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- portfolio filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gold-line-soft);
}
.filter-btn {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--emerald); }
.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

/* ---------- work tiles ---------- */
.work-tile { cursor: pointer; }
.work-tile[hidden] { display: none; }
.work-tile figcaption {
  padding: 16px 4px 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.work-tile figcaption strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 5px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 10, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border: 1px solid var(--gold-line);
}
.lightbox figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid var(--gold-line-soft);
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox button:hover { background: var(--emerald); border-color: var(--emerald); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox { padding: 20px 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ---------- portfolio grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-grid { row-gap: 44px; }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gold-line-soft); border: 1px solid var(--gold-line); }
.value { background: var(--white); padding: 40px 36px; }
.value h3 { font-size: 0.98rem; color: var(--emerald-deep); margin-bottom: 12px; }
.value p { font-size: 0.97rem; color: var(--muted); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 104px 24px;
  border-top: 1px solid rgba(242, 207, 120, 0.75);
  border-bottom: 1px solid rgba(242, 207, 120, 0.75);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 12, 0.88) 0%, rgba(10, 15, 12, 0.72) 50%, rgba(10, 15, 12, 0.9) 100%),
    radial-gradient(700px 380px at 50% 110%, rgba(15, 107, 69, 0.4), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); margin: 20px 0 18px; }
.cta-band p { max-width: 600px; margin: 0 auto 38px; color: rgba(255, 255, 255, 0.82); }

/* ---------- forms ---------- */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 48px 44px;
  background: var(--white);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 34px 24px; }
}
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
}
textarea { min-height: 140px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 26px; }
.form-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.hidden { display: none; }

/* ---------- contact ---------- */
.contact-info { text-align: center; margin-bottom: 60px; }
.contact-info .big {
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.1em;
  display: block;
  color: var(--white);
  margin: 6px 0;
}
.contact-info a.big:hover { color: var(--emerald-bright); }
.socials { margin-top: 22px; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.socials a { color: var(--emerald-bright); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(242, 207, 120, 0.7);
  padding: 64px 0 40px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .brand { font-size: 0.95rem; margin-bottom: 14px; display: block; }
.site-footer h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(242, 207, 120, 0.35);
  padding-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
