/* ==========================================================================
   PRECISION PALMETTO — brand styles
   Colors and type match the approved design:
   navy #132A43 · maroon #7C2230 · gold #D3A53D · cream #F2E9D3
   ========================================================================== */

:root {
  /* fluid vertical rhythm scale */
  --section-y: clamp(56px, 7vw, 96px);
  --gap-lg: 34px;
  --navy: #132A43;
  --navy-deep: #0D1E32;
  --maroon: #7C2230;
  --maroon-deep: #5E1721;
  --gold: #D3A53D;
  --gold-light: #E6C878;
  --cream: #F2E9D3;
  --ink: #14202B;
  --cream-muted: #C9BE9E;
  --cream-soft: #D9CFAF;
}

* { box-sizing: border-box; }

/* Anything with the hidden attribute stays hidden, even if other rules set a display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

.pp-display {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.center { text-align: center; }
.gold { color: var(--gold); }
.maroon { color: var(--maroon); }

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}
.gold-icon { color: var(--gold); }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.eyebrow { letter-spacing: 0.15em; font-size: 13px; margin-bottom: 8px; }
.section-head .eyebrow { font-size: 16px; }

.services-brand {
  color: var(--navy);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ============================== HEADER ============================== */
.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 700; line-height: 1.1; }
.brand-tag { font-size: 11px; color: var(--gold-light); letter-spacing: 0.15em; }

.desktop-nav { display: none; gap: 28px; }
.desktop-nav a { color: var(--cream); font-size: 14px; letter-spacing: 0.05em; text-decoration: none; }
.desktop-nav a:hover { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-phone {
  display: flex; align-items: center; gap: 6px;
  color: var(--gold); font-weight: 700; text-decoration: none; font-size: 15px;
}

.menu-btn {
  background: transparent; border: none; color: var(--cream);
  cursor: pointer; font-size: 26px; padding: 4px; display: block;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: inline; }

.mobile-nav {
  display: none;
  background: var(--navy-deep);
  padding: 12px 20px;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--cream); font-size: 15px; text-decoration: none; }

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 500px) {
  .header-phone-text { display: none; }
}

/* =============================== HERO =============================== */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(211, 165, 61, 0.04) 0px,
    rgba(211, 165, 61, 0.04) 2px,
    transparent 2px,
    transparent 14px
  );
}

.hero-grid {
  padding-block: clamp(56px, 7vw, 88px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--maroon);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 14px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 640px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  color: #E6DCC3;
  margin: 0 0 28px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); padding: 14px 26px; font-weight: 700; border: none; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border: 2px solid var(--gold); color: var(--cream); padding: 12px 24px; font-weight: 600; }
.btn-outline:hover { background: rgba(211, 165, 61, 0.12); }
.btn-navy { background: var(--navy); color: var(--cream); padding: 14px 20px; font-weight: 700; letter-spacing: 0.05em; border: none; width: 100%; justify-content: center; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-navy:disabled { opacity: 0.6; cursor: wait; }

.hero-checks { display: flex; flex-wrap: wrap; gap: 22px; color: var(--cream-muted); font-size: 14px; }
.hero-checks span { display: flex; align-items: center; gap: 6px; }

.hero-seal { display: none; align-items: center; justify-content: center; }
.hero-seal img {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}

@media (min-width: 900px) {
  .hero-grid {
  padding-block: clamp(56px, 7vw, 88px); grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-seal { display: flex; }
}

/* ============================ TRUST STRIP ============================ */
.trust { background: var(--maroon); color: var(--cream); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-item .icon { font-size: 22px; }
.trust-item span { font-size: 13px; letter-spacing: 0.04em; }

.trust-emergency {
  text-align: center;
  padding: 0 20px 20px;
  margin: 0;
  font-size: 13.5px;
  color: var(--gold-light);
}

@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================= SERVICES ============================= */
.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .why h2, .area h2, .quote h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.service-card {
  background: #fff;
  border: 1px solid #E3D6B0;
  border-top: 4px solid var(--gold);
  padding: 26px 22px;
}

.service-icon { font-size: 30px; color: var(--maroon); }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; }
.service-card p { font-size: 14.5px; line-height: 1.55; color: #3A3229; margin: 0; }

@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================== WHY US ============================== */
.why { background: var(--navy); color: var(--cream); }
.why-grid { row-gap: var(--gap-lg); }

.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }

.why h2 { color: var(--cream); font-size: clamp(26px, 4vw, 36px); margin: 0 0 18px; }
.why-copy { font-size: 16px; line-height: 1.65; color: var(--cream-soft); max-width: 480px; margin: 0; }

.why-points { display: flex; flex-direction: column; gap: 18px; }
.why-point { border-left: 3px solid var(--gold); padding-left: 16px; }
.why-point-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.why-point-copy { font-size: 14.5px; color: var(--cream-muted); line-height: 1.5; }

@media (min-width: 860px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================ SERVICE AREA =========================== */
.area { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.area h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 26px; }

.area-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

/* ============================= QUOTE FORM ============================ */
.quote { background: var(--maroon); }

.quote-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  justify-content: center;
}

.social-panel {
  color: var(--cream);
  text-align: center;
  order: 2;
  padding-top: 4px;
}
.social-title {
  color: var(--gold-light);
  letter-spacing: 0.15em;
  font-size: 15px;
  margin-bottom: 8px;
}
.social-copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: #EBD9C9;
  margin: 0 0 16px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--cream);
  border: 2px solid var(--gold);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.social-btn .icon { color: var(--gold); font-size: 18px; }
.social-btn:hover { background: var(--navy-deep); color: var(--gold-light); }

@media (min-width: 920px) {
  .quote-inner { grid-template-columns: 290px minmax(0, 720px); }
  .social-panel { order: 0; text-align: left; padding-top: 40px; position: sticky; top: 100px; }
}

.quote-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream);
  padding: 36px 28px;
  border: 3px solid var(--gold);
}

.quote h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 8px; }
.quote-sub { color: #4A4030; font-size: 15px; margin: 0 0 24px; }

#quoteForm { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

input, select, textarea {
  font-family: 'Source Sans 3', sans-serif;
  padding: 12px 14px;
  border: 1px solid #C9B98A;
  font-size: 14.5px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

textarea { resize: vertical; }

.form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: #4A4030;
  margin-top: -4px;
  cursor: pointer;
  user-select: none;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--maroon);
  cursor: pointer;
  flex: none;
}

.form-error { color: var(--maroon-deep); font-size: 14px; margin: 0; }
.form-error a { color: var(--maroon-deep); font-weight: 700; }

.form-success { text-align: center; padding: 28px 10px; }
.success-icon { font-size: 40px; color: var(--maroon); margin-bottom: 10px; }
.success-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-success p { color: #4A4030; font-size: 15px; margin: 0; }

/* =============================== FOOTER ============================== */
.site-footer { background: var(--navy-deep); color: #B9AF92; padding: 40px 20px 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-left: 0;
  padding-right: 0;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 44px; width: auto; }
.footer-name { color: var(--cream); font-size: 15px; font-weight: 700; }
.footer-tag { font-size: 12.5px; }

.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-contact span, .footer-contact a { display: flex; align-items: center; gap: 6px; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--gold-light); text-decoration: underline; }

.footer-legal {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  padding-bottom: 20px;
  color: #7C7458;
}

/* ======================= CLICKABLE SERVICE CARDS ======================= */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(19, 42, 67, 0.14);
  border-color: var(--gold);
}
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--maroon);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ============================ GALLERY PAGE ============================ */
.gallery-banner {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}
.gallery-banner h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  margin: 0 0 12px;
}
.gallery-banner-sub { color: #E6DCC3; font-size: 16px; margin: 0 0 24px; }

.gallery-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gallery-jump a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid var(--gold);
  padding: 7px 14px;
}
.gallery-jump a:hover { background: var(--gold); color: var(--navy-deep); }

.gallery-main { padding-top: 24px; padding-bottom: 40px; }

.gallery-section { padding: 40px 0 8px; scroll-margin-top: 90px; }
.gallery-section h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative;
  border: 1px solid #E3D6B0;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  display: block;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-caption {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13.5px;
  color: #3A3229;
  text-align: left;
  padding: 10px 12px;
  border-top: 3px solid var(--gold);
}

.gallery-empty {
  grid-column: 1 / -1;
  border: 1px dashed #C9B98A;
  background: #FAF5E7;
  text-align: center;
  padding: 34px 20px;
  color: #6B5E3F;
}
.gallery-empty span { display: block; letter-spacing: 0.12em; font-size: 14px; color: var(--maroon); margin-bottom: 6px; }
.gallery-empty p { margin: 0; font-size: 14.5px; }

.gallery-cta { background: var(--maroon); color: var(--cream); padding: 56px 20px; }
.gallery-cta h2 { color: var(--cream); font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 8px; }
.gallery-cta p { color: var(--gold-light); margin: 0 0 22px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 30, 50, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox img {
  max-width: 94vw;
  max-height: 82vh;
  border: 3px solid var(--gold);
  background: #fff;
}
.lightbox-caption { color: var(--cream); font-size: 15px; margin-top: 12px; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--maroon);
  border: 2px solid var(--gold);
  color: var(--cream);
  font-size: 22px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}


/* Facebook link in footer */
.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--gold) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.footer-fb:hover { color: var(--gold-light) !important; text-decoration: underline; }


/* ===================== ACCESSIBILITY HELPERS ===================== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--navy-deep);
  font-family: 'Oswald', sans-serif; padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== AVAILABILITY STATUS LINE ===================== */
.status-line {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #C9B98A; border-left: 4px solid var(--gold);
  color: #4A4030; font-size: 13.5px; letter-spacing: 0.02em;
  padding: 8px 16px; margin: 0 0 14px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2E7D32; box-shadow: 0 0 0 3px rgba(46,125,50,0.18); flex: none;
}

/* even card rhythm */
.service-card { display: flex; flex-direction: column; }
.service-card p { margin-bottom: 0; }
.card-link { margin-top: auto; align-self: flex-start; }

/* license credential line in footer */
.footer-license {
  align-items: flex-start !important;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 430px;
  color: #A99F84;
}
.footer-license .icon { margin-top: 3px; flex: none; }
