/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Sticky footer layout */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f7f7f7;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.top-bar {
  background: #0b1220;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.top-bar-link {
  color: #f97316; /* orange accent */
  text-decoration: none;
  font-weight: 600;
}

.top-bar-link:hover {
  text-decoration: underline;
}

/* Header / Nav */
.site-header {
  background: #111827;
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* --- LOGO AREA --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
}

.logo-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Base nav */
.site-nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: #ffffff;
}

/* Active link */
.site-header nav a.active {
  color: #f97316;
  font-weight: 600;
}

/* Special mobile call link */
.nav-call {
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a, #1f2933);
  color: #f9fafb;
  padding: 48px 0 56px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.hero-text {
  flex: 2;
  min-width: 260px;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-highlights {
  list-style: disc;
  margin: 0 0 16px 20px;
  padding: 0;
}

.hero-box {
  flex: 1;
  min-width: 260px;
  background: #111827;
  border-radius: 8px;
  padding: 16px 18px;
  border: 1px solid #374151;
}

.hero-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.hero-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #d1d5db;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 40px 0;
  background: #f7f7f7;
}

.section-alt {
  background: #ffffff;
}

.section-alt .card p[style*="italic"] {
  font-size: 0.95rem;
}

.section-alt .card strong {
  color: #111827;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 700px;
  font-size: 0.98rem;
  color: #4b5563;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(249, 250, 251, 0.08);
}

/* Cards / Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* exactly 3 per row on desktop */
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;                 /* stretch to fill the grid row */
  display: flex;                /* for vertical alignment */
  flex-direction: column;
  position: relative;
  overflow: hidden;             /* hide accent overflow */
}

/* Accent bar at top of service cards */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #2563eb);
}

/* Elevation and subtle motion on hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  border-color: #cbd5f5;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Service card extras */
.service-card {
  padding-top: 24px; /* a bit more space to account for accent + icon */
}

/* Icon styling: circular badge + animation */
.service-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

/* Icon hover effect (triggered when card hovered) */
.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  background-color: #dbeafe;
  color: #1e40af;
}

.service-tagline {
  margin-top: auto;         /* push tagline to bottom for consistent heights */
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

.service-cta {
  margin-top: 28px;
  text-align: center;
  font-size: 0.96rem;
  color: #4b5563;
}

.service-cta .btn-primary {
  margin-top: 10px;
}

/* Booking form */
.booking-form {
  margin-top: 24px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #e5e7eb;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.checkbox-group {
  margin-top: 8px;
}

.checkbox-group label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

/* Hide honeypot */
.hidden {
  display: none;
}

/* Contact section */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-grid > div {
  flex: 1;
  min-width: 260px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  color: #2563eb;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.map-placeholder {
  background: #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.9rem;
  color: #4b5563;
}

.map-placeholder iframe {
  border-radius: 6px;
  display: block;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 16px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.footer-note {
  color: #6b7280;
}

/* Calendar wrapper */
.calendar-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

/* Services page extras */
.service-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.service-intro-card {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.service-list li + li {
  margin-top: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #111827;
  color: #f9fafb;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

/* Better focus outlines */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* =========================
   MOBILE NAV / HAMBURGER
   ========================= */

/* Hamburger button – hidden on desktop by default */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}

/* Three lines */
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #e5e7eb;
  margin: 4px 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Animate to "X" when open */
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ====== Mobile layout ====== */
@media (max-width: 900px) {
  /* 2 cards per row on tablet */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo-main {
    font-size: 1.1rem;
  }

  .logo-sub {
    font-size: 0.75rem;
  }

  /* Nav as dropdown */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111827;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 10px;
    gap: 4px;
    border-top: 1px solid #1f2937;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .site-nav a {
    margin-left: 0;
    padding: 8px 0;
    border-bottom: 1px solid #1f2937;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  /* Show nav when open */
  .site-header.nav-open .site-nav {
    max-height: 260px;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Desktop layout for nav */
@media (min-width: 769px) {
  .site-nav {
    position: static;
    flex-direction: row;
    padding: 0;
    max-height: none;
    border: none;
  }

  .site-header nav a {
    margin-left: 16px;
    border-bottom: none;
    padding: 0;
  }

  /* Hide mobile call link on desktop (top bar already has call) */
  .nav-call {
    display: none;
  }

  .nav-toggle {
    display: none;
  }
}

/* Extra small specifics (hero/layout tweaks) */
@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column;
  }

  /* 1 card per row on small screens */
  .services-grid {
    grid-template-columns: 1fr;
  }
}
