/*
 * Blueprint Theme — HandyTop CMS
 * Clean, architectural, precision-focused styling for luxury custom carpentry
 *
 * Palette:
 *   Dark Blue:    #1a89fc
 *   Light Blue:   #3bc1fa
 *   Slate Gray:   #64748b
 *   Dark Slate:   #1e293b
 *   Surface:      #f0f7ff
 *   Yellow:       #dfce66
 *   Brown:        #3a2a1a
 *   Dark Navy:    #0f172a
 */

/* ============================================================
   0. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: #1a89fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3bc1fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1e293b;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2.125rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: #334155;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* ============================================================
   1. CONTAINER & LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #f0f7ff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.text-center {
  text-align: center;
}

/* ============================================================
   2. NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}

.site-header.scrolled {
  border-bottom-color: #e0ecfa;
  box-shadow: 0 1px 12px rgba(26, 137, 252, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: #1a89fc;
}

.nav-logo span {
  color: #1a89fc;
}

.nav-logo .site-logo {
  display: block;
  max-height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #dfce66;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1e293b;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a89fc;
  color: #FFFFFF !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: #3bc1fa;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e293b;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   3. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(26, 137, 252, 0.45) 50%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem 1.5rem;
}

.hero-content h1 {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #3bc1fa;
  color: #FFFFFF;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 193, 250, 0.3);
}

.hero-cta:hover {
  background: #1a89fc;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(26, 137, 252, 0.4);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s infinite;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.5);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   4. PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background: #1a89fc;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: #3bc1fa;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a89fc;
  color: #FFFFFF;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
  background: #1574d4;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-gold {
  background: #3bc1fa;
  color: #FFFFFF;
}

.btn-gold:hover {
  background: #1a89fc;
  color: #FFFFFF;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #1a89fc;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid #1a89fc;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #1a89fc;
  color: #FFFFFF;
}

.btn-outline-accent {
  border-color: #3bc1fa;
  color: #3bc1fa;
}

.btn-outline-accent:hover {
  background: #3bc1fa;
  color: #FFFFFF;
}

/* ============================================================
   6. SERVICE CARDS
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 137, 252, 0.1);
  border-color: #3bc1fa;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #1a89fc;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1a89fc;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.service-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
}

.service-card .btn-outline {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

/* ============================================================
   7. GALLERY / MASONRY
   ============================================================ */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: #1a89fc;
  border-color: #1a89fc;
  color: #FFFFFF;
}

.masonry-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  transform: scale(1.015);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.masonry-item:hover .masonry-item-overlay {
  opacity: 1;
}

.masonry-item-overlay .caption {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: border-color 0.35s ease;
  pointer-events: none;
}

.masonry-item:hover::after {
  border-color: #3bc1fa;
}

/* ============================================================
   8. REVIEWS
   ============================================================ */

.reviews-section {
  background: #f0f7ff;
  padding: 5rem 0;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 calc(33.333% - 1.34rem);
  background: #FFFFFF;
  border-radius: 10px;
  padding: 2.25rem 2rem;
  margin: 0 1rem;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 30px rgba(26, 137, 252, 0.08);
}

.review-quote {
  font-family: 'Space Grotesk', Georgia, serif;
  font-size: 3rem;
  color: #1a89fc;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.review-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}

.review-stars .star {
  color: #dfce66;
  font-size: 1rem;
}

.review-stars .star.empty {
  color: #e2e8f0;
}

.review-author {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #1a89fc;
  border-color: #1a89fc;
  color: #FFFFFF;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Service Area Map */
.service-area-map {
  margin-top: 2rem;
}

.service-area-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.service-area-cities span {
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-area-cities span:hover {
  background: #1a89fc;
  border-color: #1a89fc;
  color: #FFFFFF;
}

/* Map markers */
.map-city-dot {
  background: #1a89fc;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.map-city-tooltip {
  background: #1e293b;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.map-city-tooltip::before {
  border-top-color: #1e293b;
}

@media (max-width: 768px) {
  #serviceAreaMap {
    height: 340px !important;
  }
}

/* Google Reviews badge */
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1rem;
}

.google-reviews-badge .star {
  color: #dfce66;
}

.reviews-rating {
  font-weight: 700;
}

/* Auto-scrolling reviews container */
.reviews-autoscroll {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.reviews-autoscroll::before,
.reviews-autoscroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.reviews-autoscroll::before {
  left: 0;
  background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%);
}

.reviews-autoscroll::after {
  right: 0;
  background: linear-gradient(270deg, #f0f7ff 0%, transparent 100%);
}

/* Cards sit in a flat list inside .reviews-scroll-track. JS measures the
   real width of one set (first half of children) and animates via rAF,
   snapping back when scrolled exactly one set-width — guaranteed seamless. */
.reviews-scroll-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Google-style review cards */
.review-card-google {
  flex: 0 0 360px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.75rem;
  margin-right: 1.25rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.review-card-google:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(26, 137, 252, 0.1);
  border-color: #3bc1fa;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author-info {
  flex: 1;
  min-width: 0;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.google-check {
  flex-shrink: 0;
}

.review-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.review-google-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.review-card-google .review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.review-card-google .review-stars .star {
  color: #dfce66;
  font-size: 0.9rem;
}

.review-date-inline {
  font-size: 0.75rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.review-card-google .review-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0;
  font-style: normal;
}

/* ============================================================
   9. CTA STRIP
   ============================================================ */

.cta-strip {
  background: #1a89fc;
  padding: 4rem 0;
  text-align: center;
}

.cta-strip h2 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .btn-gold {
  background: #FFFFFF;
  color: #1a89fc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-strip .btn-gold:hover {
  background: #f0f7ff;
  color: #1a89fc;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ============================================================
   10. ABOUT PREVIEW (homepage)
   ============================================================ */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-image {
  border-radius: 10px;
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview-text h2 {
  margin-bottom: 1rem;
  color: #1a89fc;
}

.about-preview-text p {
  margin-bottom: 1.5rem;
}

/* ============================================================
   11. ABOUT PAGE
   ============================================================ */

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================================
   12. CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: #64748b;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a89fc;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: #1a89fc;
}

.contact-detail-text .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0;
}

.contact-hours {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #1a89fc;
}

.contact-hours h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-hours h4 svg {
  width: 16px;
  height: 16px;
  stroke: #1a89fc;
}

.contact-hours p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
}

/* Calendly embed */
.calendly-embed {
  margin-top: 2rem;
}

.calendly-embed .calendly-inline-widget {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}


/* Contact form */
.contact-form-card {
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2.5rem;
}

.contact-form-card h3 {
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  background: #FFFFFF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3bc1fa;
  box-shadow: 0 0 0 3px rgba(59, 193, 250, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.captcha-container {
  margin-bottom: 1rem;
}

.captcha-container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.captcha-img {
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
}

.captcha-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-input:focus {
  outline: none;
  border-color: #3bc1fa;
  box-shadow: 0 0 0 3px rgba(59, 193, 250, 0.15);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a89fc;
  color: #FFFFFF;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(26, 137, 252, 0.25);
}

.submit-btn:hover {
  background: #1574d4;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 137, 252, 0.35);
}

.submit-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: #3a2a1a;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #3bc1fa;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: #3bc1fa;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #3bc1fa;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(58, 42, 26, 0.15);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
}

.footer-social a:hover {
  color: #3bc1fa;
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: right;
}

.footer-legal-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #3bc1fa;
}

/* ============================================================
   14. ALERTS
   ============================================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem auto;
  max-width: 1200px;
  font-size: 0.95rem;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ============================================================
   15. LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 137, 252, 0.2);
  border: none;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(26, 137, 252, 0.4);
}

.lightbox-prev {
  left: -3.5rem;
}

.lightbox-next {
  right: -3.5rem;
}

/* ============================================================
   16. BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a89fc;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(26, 137, 252, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #3bc1fa;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   17. ANIMATIONS / FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   18. GALLERY INTRO
   ============================================================ */

.gallery-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gallery-intro p {
  font-size: 1.05rem;
}

.gallery-intro p.gallery-note {
  font-size: 1.2rem;
  color: #64748b;
  margin-top: 1.25rem;
}

/* ============================================================
   19. SERVICES PAGE
   ============================================================ */

.services-content {
  max-width: 1200px;
  margin: 0 auto;
}

.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ============================================================
   20. CONTACT INTRO
   ============================================================ */

.contact-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro p {
  font-size: 1.05rem;
}

/* ============================================================
   21. HOMEPAGE SECTIONS (specific)
   ============================================================ */

.home-services-preview {
  text-align: center;
}

.home-services-preview .services-grid {
  margin-top: 2rem;
}

.home-services-preview .service-item {
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-services-preview .service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 137, 252, 0.1);
  border-color: #3bc1fa;
}

.home-services-preview .service-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.home-services-preview .service-item p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

.home-gallery-preview {
  text-align: center;
}

.home-about-preview {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.home-about-preview h2 {
  margin-bottom: 1rem;
}

.home-about-preview p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* Page content (generic) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-bottom: 1.5rem;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ============================================================
   22. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid,
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry-grid {
    columns: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-preview {
    gap: 2.5rem;
  }

  .review-card {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 3.5rem 0;
  }

  /* The mobile overlay now lives INSIDE .site-header so it shares the
     same stacking context as .nav-links — z-index works deterministically. */
  .site-header {
    z-index: 1100;
  }

  /* Mobile navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 30;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 40;
  }

  /* Overlay sits behind the slide-out menu but above the page content.
     Pointer events are off when inactive so it never traps clicks even
     if the .active class lingers from a stale state. */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    visibility: hidden;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-hero {
    padding: 6.5rem 0 3rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  /* Grids */
  .services-grid,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    columns: 2;
    column-gap: 0.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-copyright {
    text-align: center;
  }

  .review-card {
    flex: 0 0 calc(100% - 2rem);
  }

  .cta-strip h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .masonry-grid {
    columns: 1;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .nav-inner {
    height: 60px;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .gallery-filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .btn,
  .btn-primary,
  .btn-gold {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }

  .btn-outline {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   23. PRINT
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .hero-scroll,
  .carousel-controls,
  .gallery-filters,
  .lightbox-overlay,
  .mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: none !important;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content h1 {
    color: #000;
  }

  .hero-content p {
    color: #333;
  }

  .section {
    padding: 1.5rem 0;
  }

  .page-hero {
    background: #f0f0f0 !important;
    padding: 2rem 0;
  }

  .page-hero h1 {
    color: #000;
  }

  .page-hero p {
    color: #333;
  }

  .cta-strip {
    background: #f0f0f0 !important;
    padding: 1.5rem 0;
  }

  .cta-strip h2 {
    color: #000;
  }

  .cta-strip p {
    color: #333;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .masonry-grid {
    columns: 2;
  }

  .service-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ============================================================
   24. LAZY LOAD PLACEHOLDER
   ============================================================ */

img[data-src] {
  background: #f0f7ff;
  min-height: 100px;
}

img.loaded {
  animation: fadeInImg 0.5s ease;
}

@keyframes fadeInImg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   25. PAGE WITH CONTACT FORM (custom pages)
   ============================================================ */

.page-with-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.page-with-form .page-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-with-form .page-content h2,
.page-with-form .page-content h3 {
  margin-top: 1.5rem;
}

.page-with-form .page-content > *:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .page-with-form {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === SITE LOGO HARD LIMIT (applied after theme styles to defeat specificity) === */
img.site-logo,
.site-logo {
    max-height: 48px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
@media (max-width: 768px) {
    img.site-logo,
    .site-logo {
        max-height: 40px !important;
        max-width: 160px !important;
    }
}
