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

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #111111;
  --muted: #6A6A6A;
  --accent: #1D5FA6;
  --accent-light: #E6EEF8;
  --border: #DDE3EC;
  --dark: #1A1A1A;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  font-weight: 400;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 247, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s, opacity 0.2s !important;
}

.nav-cta:hover {
  color: var(--bg) !important;
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 102;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent); }

/* Sections */
section { padding: 6rem 2rem; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Hero */
.hero {
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-inner {
  padding: 5rem 2rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover { opacity: 0.82; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(0,0,0,0.03);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}

.btn-accent:hover { opacity: 0.88; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.hero-stat {
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child { border-right: none; padding-left: 2rem; }
.hero-stat:nth-child(2) { padding-left: 2rem; }

.hero-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Section headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: #C4B89A;
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Product cards */
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}

.product-card:hover {
  border-color: #C4B89A;
  transform: translateY(-4px);
}

.product-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-img svg {
  width: 100%;
  height: 100%;
}

.product-body {
  padding: 1.5rem;
}

.product-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.product-link:hover { gap: 0.7rem; }

/* Process */
.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.process-step:hover .step-num {
  border-color: var(--accent);
  color: var(--accent);
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  padding-top: 0.6rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA Banner */
.cta-banner {
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 4rem 3rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.testimonial-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  color: var(--accent);
  font-size: 1rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.author-loc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Blog cards */
.blog-card {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.blog-card:hover { opacity: 0.7; }

.blog-card:first-child { border-top: 1px solid var(--border); }

.blog-tag-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 580px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.25rem;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text);
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

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

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Page hero */
.page-hero {
  padding: 5rem 2rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.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; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* Info strip */
.info-strip {
  background: var(--accent-light);
  border-bottom: 1px solid #C5D4EA;
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #1A4A8A;
  line-height: 1.5;
}

.info-strip a { color: #1A4A8A; font-weight: 600; }

/* Service area tag */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.area-tag {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}

/* Booking placeholder */
.booking-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
}

.booking-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.booking-placeholder p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 1.5rem; }
  .hero-stat:last-child { border-bottom: none; }
  /* Fix: reset ALL hero-stat indent on mobile */
  .hero-stat,
  .hero-stat:nth-child(2),
  .hero-stat:last-child { padding-left: 0; }

  /* Stack all two-column section grids */
  div[style*="grid-template-columns:1fr 1fr; gap:4rem"],
  div[style*="grid-template-columns:1fr 1fr; gap:5rem"],
  div[style*="grid-template-columns:1fr 1fr; gap:3rem"],
  div[style*="grid-template-columns: 1fr 1fr"],
  a[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Asymmetric section grids */
  div[style*="grid-template-columns:1fr 1.4fr"],
  div[style*="grid-template-columns:1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Blog sidebar → stacks below */
  div[style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Disable sticky on sidebar when stacked */
  div[style*="position:sticky"],
  div[style*="position: sticky"] {
    position: static !important;
  }

  /* 3-col strip → 2 columns on tablet */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  /* Page hero — reduced now that nav is sticky (not fixed) */
  .page-hero { padding: 3rem 1.5rem 2.5rem; }

  /* Product section image sizing */
  div[style*="max-height:360px"] { max-height: 280px !important; }
  img[style*="min-height:300px"] { min-height: 200px !important; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
  .hero-inner { padding: 2.5rem 1.25rem 2.5rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .blog-card { grid-template-columns: 1fr; }

  /* Info strip — single compact line on small screens */
  .info-strip { padding: 0.5rem 1rem; font-size: 0.78rem; }

  /* Form rows → single column */
  div[style*="grid-template-columns:1fr 1fr; gap:1rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Related article cards → single column */
  div[style*="grid-template-columns:1fr 1fr; gap:1.25rem"],
  a[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* 3-col strip → single column on mobile */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero */
  .page-hero { padding: 2rem 1.25rem 2rem; }

  /* Hero h1 line height on small screens */
  .hero h1 { letter-spacing: -0.02em; }

  /* Timeline layout in about page */
  div[style*="grid-template-columns: 80px 1fr"] {
    grid-template-columns: 56px 1fr !important;
    gap: 1rem !important;
  }

  /* CTA banner actions */
  .cta-banner div[style*="display:flex"] { flex-direction: column; align-items: center; }

  /* Booking/contact form — remove inner padding on small screens */
  form[data-form] { padding: 1.5rem; }

  /* Mobile nav links — smaller on tiny screens */
  .mobile-nav a { font-size: 1.6rem; }

  /* Hero stats number size */
  .hero-stat .num { font-size: 2.2rem; }
}

/* Anchor targets — prevent sticky nav from covering them */
section[id], div[id] {
  scroll-margin-top: 80px;
}
