@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');
@import url('./footer.css');

:root {
  /* Brand */
  --red:        #C41414;
  --red-light:  rgba(196, 20, 20, 0.07);
  --red-dim:    rgba(196, 20, 20, 0.07);
  --red-border: rgba(196, 20, 20, 0.3);
  --blue:       #1E5FAA;
  --blue-light: rgba(30, 95, 170, 0.07);
  --blue-dim:   rgba(30, 95, 170, 0.07);
  --blue-border:rgba(30, 95, 170, 0.3);

  /* Light surfaces */
  --bg:      #F5F2ED;
  --bg-2:    #FFFFFF;
  --bg-3:    #EDEBE5;
  --bg-dark: #0C0C0C;

  /* Text */
  --text:       #0D0D0D;
  --text-muted: #6B6865;
  --text-faint: #ABA8A4;
  --white:      #FFFFFF;

  /* Borders */
  --border:        #D2CFCA;
  --border-strong: #0D0D0D;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Square — no radius */
  --radius:    0px;
  --radius-lg: 0px;

  /* No box-shadows */
  --shadow-card: none;
  --shadow-sm:   none;
  --shadow-red:  none;
  --shadow-blue: none;

  --max-width: 1300px;
  --header-h:  68px;

  /* Backward compat: old dark-bg vars map to light */
  --dark:   var(--bg);
  --dark-2: var(--bg-2);
  --dark-3: var(--bg-3);
  --dark-4: var(--bg-2);
  --dark-5: var(--bg-3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem);  letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem,   4vw, 3.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { max-width: 65ch; color: var(--text-muted); line-height: 1.78; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ─── Section label ─── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* Red line sits on the heading row, in line with the first word */
.section-label + h1,
.section-label + h2,
.section-label + h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.section-label + h1::before,
.section-label + h2::before,
.section-label + h3::before {
  content: '';
  display: block;
  min-width: 22px;
  width: 22px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 0.62em; /* align with cap-height of first line */
}

/* ─── Heading accent bar ─── */
.heading-bar {
  padding-left: 1.25rem;
  border-left: 3px solid var(--red);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-red, .btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-red:hover, .btn-primary:hover {
  background: #A81010;
  border-color: #A81010;
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border: 2px solid var(--text);
}
.btn-dark:hover { background: #2a2a2a; border-color: #2a2a2a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
}
.btn-blue:hover { background: #1850A0; border-color: #1850A0; }

/* Hero buttons (on dark bg) */
.btn-hero-primary {
  background: #fff;
  color: var(--text);
  border: 2px solid #fff;
}
.btn-hero-primary:hover { background: #eae7e2; border-color: #eae7e2; }
.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.8); color: #fff; }

/* CTA section buttons (on red bg) */
.btn-cta-white {
  background: #fff;
  color: var(--red);
  border: 2px solid #fff;
  font-weight: 700;
}
.btn-cta-white:hover { background: #eae7e2; border-color: #eae7e2; }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.9); }

/* ─── Cards ─── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.card:hover { border-color: var(--red); }
.card-img  { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.75rem; }

/* ─── Page Hero (inner pages — dark overlay over photo) ─── */
.page-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.72);
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero-content h1 { color: #ffffff; }
.page-hero-content p  { color: rgba(255,255,255,0.72); max-width: none; }

/* Page-hero section-label: restore centered inline-flex with white bar */
.page-hero-content .section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
}
.page-hero-content .section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* Page-hero h1/h2: block (centered), no flex ::before decoration */
.page-hero-content .section-label + h1,
.page-hero-content .section-label + h2 {
  display: block;
  text-align: center;
}
.page-hero-content .section-label + h1::before,
.page-hero-content .section-label + h2::before {
  display: none;
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.stat-item  { text-align: center; padding: 0 2rem; }
.stat-item:not(:last-child) { border-right: 1px solid var(--border); }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.stat-item:nth-child(2) .stat-number { color: var(--blue); }

/* ─── Gallery / Grid (1:1 square images) ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12,12,12,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* Zoom icon on hover */
.gallery-item::before {
  content: '⤢';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  color: #fff;
  font-size: 1.8rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 0.5rem; opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.4rem;
  cursor: pointer; padding: 1rem 1.15rem;
  transition: background 0.2s;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(196,20,20,0.25); }

/* ─── Before/After ─── */
.ba-slider { position: relative; overflow: hidden; cursor: col-resize; user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--red); transform: translateX(-50%); z-index: 10; cursor: col-resize;
}
.ba-handle::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background: var(--red); border: 3px solid #fff;
}

/* ─── Testimonials ─── */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; gap: 1.5rem; transition: transform 0.5s var(--ease); }
.testimonial-card {
  flex: 0 0 calc(50% - 0.75rem);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 2.5rem;
}
@media (max-width: 767px) {
  .testimonial-card { flex: 0 0 100%; padding: 1.75rem; }
}
.testimonial-stars { color: var(--red); font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: 3px; }
.testimonial-text  { font-size: 1.1rem; font-style: italic; color: var(--text); line-height: 1.85; margin-bottom: 2rem; max-width: none; }
.testimonial-author { font-weight: 600; color: var(--blue); font-size: 1rem; }
.testimonial-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.testimonial-dot {
  width: 8px; height: 8px;
  background: var(--border); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testimonial-dot.active { background: var(--red); transform: scale(1.35); }

/* ─── CTA Section ─── */
.cta-section {
  background: var(--red);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { color: #fff; position: relative; z-index: 1; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.82); margin: 0 auto 2.5rem; position: relative; z-index: 1; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-section .section-label {
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
  text-align: center;
}
/* CTA: center the flex heading row and use white bar */
.cta-section .section-label + h2,
.cta-section .section-label + h3 {
  justify-content: center;
  position: relative;
  z-index: 1;
}
.cta-section .section-label + h2::before,
.cta-section .section-label + h3::before {
  background: rgba(255,255,255,0.65);
}

/* ─── Back link ─── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.72); font-size: 0.875rem;
  transition: color 0.25s; margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--red); }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.form-input,
.form-textarea,
.form-select,
.form-group input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  border-radius: 0;
  transition: border-color 0.22s, background 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  border-bottom-color: var(--red);
  background: var(--bg-2);
}
.form-textarea,
.form-group textarea { resize: vertical; min-height: 140px; }
.form-select,
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6865' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-message,
.form-status {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.75rem;
}
.form-message.success,
.form-status.success { background: var(--blue-light); border: 1px solid var(--blue-border); color: var(--blue); }
.form-message.error,
.form-status.error   { background: var(--red-light);  border: 1px solid var(--red-border);  color: var(--red); }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 1023px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; } }
@media (max-width: 767px)  {
  .section { padding: 4rem 0; }
  /* Hide stats bar on mobile — too much space for little info */
  .stats-bar { display: none; }
}

/* ──────────────────────────────────────────
   MOBILE — full responsive overrides
   ────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Container padding tighter */
  .container { padding: 0 1.25rem; }

  /* Section spacing */
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .cta-section { padding: 3.5rem 0; }

  /* Page hero */
  .page-hero {
    min-height: 36vh;
    padding-bottom: 2.25rem;
    align-items: flex-end;
  }

  /* Stack ALL inline 2-column grids (about, service detail, service-area, portfolio) */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1."] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Stack 3-column inline grids (about service-area cards) */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* CTA heading: drop flex on mobile, just center the text */
  .cta-section .section-label + h2,
  .cta-section .section-label + h3 {
    display: block;
    text-align: center;
  }
  .cta-section .section-label + h2::before,
  .cta-section .section-label + h3::before {
    display: none;
  }

  /* CTA buttons: stay in one row on mobile, shrink to fit */
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  .cta-buttons .btn {
    flex: 1;
    min-width: 130px;
    max-width: 220px;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Prevent wide headings from overflowing */
  h2 { overflow-wrap: break-word; }

  /* Map iframe on mobile */
  iframe { height: 220px; }

  /* Gallery: keep 2 columns */
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 0.4rem; }
}

/* Very small screens — font size clamp overrides */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.8rem, 9vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.5rem, 7.5vw, 2rem) !important; }
  /* Page-hero titles — reduce so long names fit on 1-2 lines */
  .page-hero-content h1 { font-size: clamp(1.5rem, 6.5vw, 2rem) !important; }
  .page-hero-content p  { font-size: 0.9rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
  .svc-card-body { padding: 1.25rem 1.25rem 1.5rem; }
  /* Service card titles — keep compact on mobile */
  .svc-card-body h2,
  .svc-card-body h3 { font-size: 1.25rem !important; line-height: 1.2; }
  .service-card h3,
  .service-card-body h3 { font-size: 1.15rem !important; line-height: 1.2; }
}

/* ─── Leaflet map dark-theme overrides ─── */
.leaflet-container {
  background: #0d0d0d;
  font-family: var(--font-body);
}
.leaflet-control-zoom a {
  background: var(--dark-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  line-height: 26px !important;
}
.leaflet-control-zoom a:hover {
  background: var(--dark-3) !important;
  color: var(--red) !important;
}
.leaflet-bar { border: 1px solid var(--border) !important; box-shadow: none !important; }
.leaflet-bar a:first-child { border-bottom: 1px solid var(--border) !important; }
.leaflet-control-attribution {
  background: rgba(0,0,0,0.55) !important;
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.65rem !important;
  padding: 2px 5px !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,0.45) !important; }
.leaflet-attribution-flag { display: none !important; }
/* Tooltip */
.svc-map-tip {
  background: var(--dark-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.svc-map-tip::before { display: none; }
/* Popup */
.leaflet-popup-content-wrapper {
  background: var(--dark-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.leaflet-popup-tip-container .leaflet-popup-tip { background: var(--dark-2); }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
/* Business-location pin */
.svc-map-pin div {
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(196,20,20,0.35), 0 2px 6px rgba(0,0,0,0.5);
}
