/* ==========================================================================
   Luminescent Touch Lights — Shared Styles
   Luxury / upscale home-services aesthetic: deep pine, near-black, and navy
   grounds with a muted champagne-gold accent. Elegant serif display type,
   a refined geometric sans for body copy, restrained shadows, generous
   white space. Edit the CSS variables below to re-theme.
   ========================================================================== */

:root {
  /* Brand palette — deep, sophisticated grounds */
  --color-navy-950: #0a0f1a;
  --color-navy-900: #0e1626;
  --color-navy-800: #172642;   /* also used as "pine-adjacent" deep panel tone */
  --color-navy-700: #223258;

  /* Champagne gold — the single accent color, used sparingly and deliberately */
  --color-gold-400: #e3c88a;   /* primary accent (was a brighter warm gold) */
  --color-gold-500: #d6b571;
  --color-gold-600: #a9793a;   /* deeper gold for text/icons on light backgrounds */

  /* Deep forest green — secondary accent, used for tags/badges/small details */
  --color-holly-600: #2b4a37;

  /* Reserved for flagging placeholder/editorial notes only — not part of the
     customer-facing palette, so it stays a plain, legible red. */
  --color-berry-600: #8a3a3a;

  --color-cream-50: #f9f6ef;   /* warm ivory page background */
  --color-cream-100: #f1ead9;

  --color-ink-900: #16150f;
  --color-ink-700: #433f34;
  --color-ink-500: #6f6a5c;
  --color-ink-300: #b9c1ba;    /* muted sage-grey, for body text on dark grounds */
  --color-ink-100: #e9e4d6;

  --font-display: 'Cormorant Garamond', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 2px; /* buttons: near-rectangular, editorial rather than "friendly pill" */

  --shadow-soft: 0 16px 46px rgba(10, 15, 26, 0.10);
  --shadow-glow: 0 10px 30px rgba(227, 200, 138, 0.25);

  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-ink-900);
  background: var(--color-cream-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--color-navy-950);
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p {
  margin: 0 0 1em;
  color: var(--color-ink-700);
  font-weight: 300;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-gold-600);
  margin-bottom: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 2.1em;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-gold-400);
  color: var(--color-navy-950);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--color-gold-500);
  box-shadow: 0 14px 36px rgba(227, 200, 138, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--color-gold-400);
  color: var(--color-gold-400);
}

.btn-dark {
  background: var(--color-navy-950);
  color: var(--color-cream-50);
  border-color: var(--color-navy-950);
}

.btn-dark:hover {
  background: var(--color-navy-800);
}

.btn-sm {
  padding: 0.7em 1.4em;
  font-size: 0.72rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(227, 200, 138, 0.14);
}

/* Original hand-drawn garland + wreath trim along the nav bar's bottom
   edge (images/nav-garland.svg, tiled). Sits inside the header's own
   bottom padding so it never touches the logo, links, or CTA button —
   purely decorative, so it's excluded from layout (pointer-events: none)
   and from the accessibility tree (aria-hidden is set on the empty div
   markup, if any is ever added; here it's a background image on a
   non-interactive pseudo-element, so nothing needs hiding explicitly). */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  background-image: url('../images/nav-garland.svg');
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 176px 13px;
  opacity: 0.8;
  pointer-events: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-cream-50);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--color-ink-100);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--color-gold-400);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--color-gold-400);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream-50);
  font-size: 1.6rem;
  cursor: pointer;
}

/* The full desktop nav (brand + 5 links + phone + CTA button) needs
   roughly 1100px of unbroken width to lay out on one line without
   squeezing individual link labels into a wrap. Rather than let
   flexbox shrink link text mid-word on medium/laptop-width screens,
   the breakpoint below switches to the compact hamburger menu before
   that squeeze can happen. */
@media (min-width: 1080px) {
  .nav-phone { display: inline; }
}

@media (max-width: 1079px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2; /* paints above .site-header::after's garland trim, which
                   sits at that same top-of-dropdown edge */
    background: var(--color-navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid rgba(227, 200, 138, 0.14);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { white-space: normal; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
/* Full-bleed hand-drawn illustration (houses trimmed in string lights,
   images/hero-houses.svg — original art, not stock photography; the
   sandbox's network access was retested and confirmed still blocked for
   binary image fetches, so this is the illustrated fallback) sits behind
   a low-opacity navy wash so it reads as a moody, brand-tinted photo
   rather than a flat panel. */
.hero {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(10, 15, 26, 0.62) 0%, rgba(10, 15, 26, 0.7) 100%),
    url('../images/hero-houses.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: var(--color-cream-50);
  overflow: hidden;
  padding: 130px 0 140px;
}

.hero-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bulb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-400);
  box-shadow: 0 0 12px 3px rgba(227, 200, 138, 0.7);
  animation: twinkle 4.2s ease-in-out infinite;
}

.hero-bulb:nth-child(2n) {
  width: 4px;
  height: 4px;
  background: var(--color-gold-500);
  box-shadow: 0 0 9px 2px rgba(214, 181, 113, 0.55);
  animation-duration: 5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .eyebrow { color: var(--color-gold-400); }

.hero h1 {
  color: #fff;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold-400);
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-ink-100);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-trust {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-trust .stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-gold-400);
}

.hero-trust .stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-300);
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}

.section-tight {
  padding: 70px 0;
}

.section-alt {
  background: var(--color-cream-100);
}

.section-dark {
  background: var(--color-navy-950);
  color: var(--color-cream-50);
}

.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--color-ink-300); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 15, 26, 0.06);
  border-top: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(10, 15, 26, 0.14);
  border-top-color: var(--color-gold-400);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-tile .card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 26px 26px 30px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-holly-600);
  background: rgba(43, 74, 55, 0.09);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.placeholder-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-berry-600);
  background: rgba(138, 58, 58, 0.08);
  border: 1px dashed rgba(138, 58, 58, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

/* ---------- Icon feature blocks ---------- */
.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(169, 121, 58, 0.35);
  background: rgba(227, 200, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-600);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid rgba(227, 200, 138, 0.12);
}

.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: var(--color-ink-300); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-ink-300);
  padding: 70px 0 34px;
  margin-top: 40px;
  border-top: 1px solid rgba(227, 200, 138, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: var(--color-ink-300);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 300;
}

.footer-grid a:hover {
  color: var(--color-gold-400);
}

.footer-bottom {
  padding-top: 26px;
  font-size: 0.74rem;
  color: var(--color-ink-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (interior pages) ---------- */
/* Same illustrated-houses-behind-navy-wash treatment as .hero, applied
   consistently to every interior page's header band. */
.page-hero {
  background-image:
    linear-gradient(180deg, rgba(10, 15, 26, 0.66) 0%, rgba(10, 15, 26, 0.72) 100%),
    url('../images/hero-houses.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff;
  padding: 88px 0 76px;
  text-align: center;
}

.page-hero h1 { color: #fff; }
.page-hero p { color: var(--color-ink-300); max-width: 600px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--color-navy-950);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10,15,26,0.15);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold-500);
}

.form-field .field-error {
  color: var(--color-berry-600);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: var(--color-berry-600);
}

.form-field.invalid .field-error {
  display: block;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-ink-500);
  margin-top: 16px;
}

.form-success {
  display: none;
  background: rgba(43, 74, 55, 0.08);
  border: 1px solid rgba(43, 74, 55, 0.3);
  color: var(--color-holly-600);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 22px;
}

.form-success.show { display: block; }

/* ---------- Contact info card ---------- */
.contact-info-card {
  background: var(--color-navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(227, 200, 138, 0.12);
}

.contact-info-card h3 { color: #fff; font-weight: 500; }
.contact-info-card .phone-big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--color-gold-400);
  text-decoration: none;
  display: inline-block;
  margin: 10px 0 6px;
}

.contact-info-card .placeholder-flag {
  color: var(--color-gold-400);
  border-color: rgba(227, 200, 138, 0.45);
  background: rgba(227, 200, 138, 0.08);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge-row span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy-800);
  background: var(--color-cream-100);
  border: 1px solid rgba(10,15,26,0.08);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Scroll reveal (subtle, tasteful) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
