/* ============================================================
   MOONLIGHT DECKS — site styles
   ------------------------------------------------------------
   HOW TO EDIT COLORS & FONTS:
   Change the values in ":root" below and every page updates.
   You normally never need to touch anything past the ROOT block.
   ============================================================ */

:root {
  /* ---- Brand colors (from the flyer) ---- */
  --navy:        #16324a;   /* headers, footer, primary text on cream */
  --navy-dark:   #0f2233;   /* deeper navy for gradients/hover */
  --gold:        #e7b866;   /* accent, buttons, highlights */
  --gold-ink:    #b87a2e;   /* gold for text/links on light backgrounds */
  --gold-hover:  #8f5d1e;   /* link hover */
  --cream:       #f7f1e6;   /* page background */
  --card:        #fffdf8;   /* cards / panels */
  --ink:         #2b2a26;   /* main body text */
  --ink-soft:    #55534c;   /* secondary text */
  --muted:       #8a877d;   /* captions, placeholders */
  --line:        #e4ddcd;   /* borders / dividers */

  /* ---- Fonts ---- */
  --font-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1120px;          /* max content width */
  --radius: 14px;
  --shadow: 0 10px 26px rgba(22,50,74,0.12);
  --shadow-sm: 0 4px 14px rgba(22,50,74,0.10);
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
/* Text logo */
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fdfaf3; letter-spacing: .3px; }
.logo-tag  { font-size: .68rem; letter-spacing: 2px; color: var(--gold); font-weight: 600; margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #dbe4ec; font-weight: 600; font-size: .98rem; padding: 9px 13px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-links a.active { color: var(--navy); background: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; font-weight: 700 !important;
  padding: 10px 16px !important; border-radius: 999px !important;
}
.nav-cta:hover { background: #f0c983; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: #fff;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-dark); padding: 8px 16px 16px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; transition: transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f0c983; color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color:#fff; }

/* Little pill (e.g., SINCE 2004 / FREE ESTIMATE) */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: .82rem; letter-spacing: .5px; padding: 7px 15px; border-radius: 999px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,29,44,.94) 0%, rgba(13,29,44,.86) 34%, rgba(13,29,44,.5) 58%, rgba(13,29,44,.12) 82%); }
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 80px; }
.hero-content { max-width: 620px; color: #fff; }
.hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 2.5px; font-size: .82rem; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead { font-size: 1.22rem; color: #d8e2ec; margin-bottom: 26px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-phone { color:#fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.hero-phone:hover { color: var(--gold); text-decoration: none; }

/* Page banner (interior pages) */
.page-banner { background: var(--navy); color: #fff; padding: 54px 0 46px; position: relative; }
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { color: #cdd8e2; font-size: 1.15rem; margin: 0; max-width: 640px; }
.breadcrumbs { font-size: .85rem; color: #9fb2c2; margin-bottom: 16px; }
.breadcrumbs a { color: #cddbe8; }

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section { padding: 66px 0; }
.section.alt { background: #efe7d6; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--gold-ink); font-weight: 700; letter-spacing: 2.5px; font-size: .8rem; text-transform: uppercase; }
.section-head h2 { margin-top: 8px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Service cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card .card-media { aspect-ratio: 3 / 2; overflow: hidden; background: #e9e2d3; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .card-body h3 { margin: 0; }
.card .card-body p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.card .card-link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--gold-ink); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: #eef3f7; color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.reverse .split-text { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } .split.reverse .split-text { order: 0; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Feature list with check icons */
.checklist { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; color: var(--gold-ink); }

/* Placeholder image box (until you add a real photo) */
.img-placeholder {
  aspect-ratio: 3 / 2; border: 2px dashed #c9c1ae; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg,#f0e9da,#f0e9da 14px,#ece4d2 14px,#ece4d2 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-weight: 600; padding: 20px;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { background: var(--navy); color: #fff; text-align: center; padding: 54px 0; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #cdd8e2; font-size: 1.12rem; max-width: 560px; margin: 0 auto 22px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   GALLERY (Recent Work)
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background:#e9e2d3; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { display:none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row .icon-badge { flex: none; margin: 0; }
.info-row h3 { margin: 2px 0 3px; font-size: 1.05rem; }
.info-row p, .info-row a { margin: 0; color: var(--ink-soft); }
.big-call { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--navy); text-decoration: none; }
.big-call:hover { color: var(--gold-ink); text-decoration: none; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: 1.08rem; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: #b9cbdb; padding: 50px 0 26px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 14px; }
.site-footer a { color: #cddae6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand .logo-name { color:#fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color:#8ea3b5; }

/* Utility spacing */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
