/* Custom styles supplementing Tailwind CSS
   Design: Bold editorial — Playfair Display + Inter
   Palette: Teal + Slate Grey
*/

/* ─── Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
}

/* ─── Typography ─── */
.headline-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ─── Navigation ─── */
nav {
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Buttons ─── */
button, a[type="submit"] {
  cursor: pointer;
}

/* ─── Hero ─── */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Service Cards ─── */
.service-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(13, 148, 136, 0.12);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ─── Form Elements ─── */
input, textarea, select {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ─── CTA Pulse ─── */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}

.cta-pulse {
  animation: subtle-pulse 2.5s ease-in-out infinite;
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

/* ─── Map ─── */
iframe[src*="google.com/maps"] {
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.3s ease;
}

iframe[src*="google.com/maps"]:hover {
  filter: grayscale(0%) contrast(1);
}

/* ─── Stats ─── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ─── Accent underline on hover ─── */
a.hover-underline:hover {
  position: relative;
}

a.hover-underline:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0d9488;
}

/* ─── Teal gradient bar ─── */
.teal-bar {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
}

/* ─── Selection ─── */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
