/* ==========================================================================
   Grand Line Renovations — Design Tokens
   ========================================================================== */
:root {
  /* Brand palette: coastal navy + sand + teal, terracotta CTA accent */
  --navy-900: #0A1626;
  --navy-800: #0F2438;
  --navy-700: #16324A;
  --navy-600: #1F4661;

  --teal-600: #0D7C74;
  --teal-500: #14B8A6;
  --teal-100: #E3F5F2;

  --sand-50:  #FAF7F1;
  --sand-100: #F3ECDF;
  --sand-200: #E8DFCB;

  --terracotta-500: #C2703D;
  --terracotta-600: #A85E30;

  --ink-900: #12181F;
  --ink-600: #4B5563;
  --ink-400: #6B7280;

  --white: #FFFFFF;
  --border: #E4DECF;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 38, 0.06), 0 1px 3px rgba(10, 22, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 38, 0.12);
  --shadow-lg: 0 24px 48px rgba(10, 22, 38, 0.18);

  --duration-fast: 180ms;
  --duration-base: 280ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--navy-900); line-height: 1.15; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

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

.section { padding: var(--space-9) 0; }
.section-alt { background: var(--sand-50); }
.section-dark { background: var(--navy-900); color: var(--sand-100); }

.section-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--teal-600);
  margin-bottom: var(--space-3);
}
.section-eyebrow-light { color: var(--teal-500); }

.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.section-title-light { color: var(--white); }

.section-lead {
  max-width: 640px;
  color: var(--ink-600);
  font-size: 1.05rem;
  margin-bottom: var(--space-7);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracotta-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-600); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand-logo { height: 40px; width: auto; }

.nav-desktop {
  display: flex;
  gap: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a {
  position: relative;
  padding: var(--space-2) 0;
  color: var(--navy-800);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal-500);
  transition: right var(--duration-base) var(--ease-out);
}
.nav-desktop a:hover { color: var(--teal-600); }
.nav-desktop a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--teal-600); }
.header-phone:hover { color: var(--teal-600); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--navy-900);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 500;
}
.nav-mobile a { padding: var(--space-3) 0; color: var(--navy-800); border-bottom: 1px solid var(--border); }
.nav-mobile-phone { display: flex; align-items: center; gap: var(--space-2); color: var(--teal-600) !important; }
.nav-mobile-phone svg { width: 18px; height: 18px; }
.nav-mobile .btn { margin-top: var(--space-3); }
.nav-mobile.is-open { display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.75) 0%, rgba(10, 22, 38, 0.55) 45%, rgba(10, 22, 38, 0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--white);
}
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-500);
  margin-bottom: var(--space-4);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  color: var(--sand-100);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.75;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 26px; height: 26px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--teal-600);
  margin-bottom: var(--space-4);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}
.service-card p {
  color: var(--ink-600);
  font-size: 0.92rem;
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.why-us-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.check-list { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.check-list svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--teal-600);
  margin-top: 2px;
}
.check-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin-bottom: 2px;
  color: var(--navy-900);
}
.check-list span { color: var(--ink-600); font-size: 0.94rem; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.process-step { position: relative; padding-top: var(--space-3); }
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.process-step p { color: var(--ink-600); font-size: 0.92rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: none;
  padding: 0;
  background: var(--navy-900);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(10,22,38,0.85), transparent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.testimonial-card {
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.testimonial-card .stars { display: flex; gap: 4px; margin-bottom: var(--space-4); }
.testimonial-card .stars svg { width: 18px; height: 18px; }
.testimonial-card.is-pending .stars { color: var(--border); }
.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink-400);
  margin-bottom: var(--space-4);
}
.testimonial-name { font-size: 0.85rem; color: var(--ink-600); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.contact-lead { color: var(--sand-100); margin-bottom: var(--space-6); max-width: 480px; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: var(--space-6);
}
.contact-phone svg { width: 24px; height: 24px; color: var(--teal-500); }

.service-area p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-500);
  margin-bottom: var(--space-3);
}
.area-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.area-chips span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--sand-100);
  font-size: 0.85rem;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
  height: fit-content;
}
.form-row { margin-bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.form-row-split > div { display: flex; flex-direction: column; gap: var(--space-2); }
label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-800);
}
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  color: var(--ink-900);
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
  outline: none;
}
textarea { resize: vertical; }
.form-error {
  background: #FDECEA;
  color: #B3261E;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: var(--space-4);
}
.form-note {
  font-size: 0.8rem;
  color: var(--ink-400);
  text-align: center;
  margin-top: var(--space-4);
}
.form-note a { color: var(--teal-600); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: var(--sand-200); padding: var(--space-8) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.footer-logo span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--teal-500); letter-spacing: 0.1em; }
.footer-brand p:last-child { font-size: 0.9rem; color: var(--ink-400); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.footer-col a, .footer-col span { color: var(--sand-200); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-500); }
.footer-bottom {
  text-align: center;
  padding: var(--space-5) 0;
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 22, 38, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 75vh; border-radius: var(--radius-md); margin: 0 auto; }
.lightbox figcaption { color: var(--sand-100); font-family: var(--font-heading); margin-top: var(--space-4); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .gallery-item:nth-child(6) { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-8) 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: var(--space-5); }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
}
