/* ---------- Design tokens ---------- */
:root {
  --color-primary: #098e94;
  --color-primary-dark: #0a585c;
  --color-primary-light: #e6f3f4;
  --color-accent: #f2a154;
  --color-ink: #1c2321;
  --color-ink-soft: #4b5a56;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-border: #e2e8e5;
  --shadow-sm: 0 2px 8px rgba(20, 40, 35, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 40, 35, 0.10);
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #249ea4;
    --color-primary-dark: #1a797d;
    --color-primary-light: #122f30;
    --color-ink: #eef3f1;
    --color-ink-soft: #a9b8b3;
    --color-bg: #101614;
    --color-bg-alt: #161e1b;
    --color-border: #263330;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --color-primary: #249ea4;
  --color-primary-dark: #1a797d;
  --color-primary-light: #122f30;
  --color-ink: #eef3f1;
  --color-ink-soft: #a9b8b3;
  --color-bg: #101614;
  --color-bg-alt: #161e1b;
  --color-border: #263330;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --color-primary: #098e94;
  --color-primary-dark: #0a585c;
  --color-primary-light: #e6f3f4;
  --color-ink: #1c2321;
  --color-ink-soft: #4b5a56;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-border: #e2e8e5;
  --shadow-sm: 0 2px 8px rgba(20, 40, 35, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 40, 35, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--color-ink-soft); }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
  width: 100%;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
}
.logo-text { color: var(--color-primary); }
.logo-text em { color: inherit; font-style: normal; }

/* Brand name always renders in the brand color so it stands out in body copy. */
.brand { color: var(--color-primary); font-weight: 600; }
/* The footer sits on --color-ink, where the standard teal drops to 4.05:1.
   Use the lighter dark-mode teal there so the name stays prominent. */
.site-footer .brand,
.footer-brand .logo-text { color: #249ea4; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { color: var(--color-ink-soft); transition: color 0.15s ease; }
.nav a:hover { color: var(--color-primary); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.4em;
}
/* Each sentence wraps as a unit so a line never breaks mid-sentence.
   inline-block (not block) lets a sentence still wrap internally on
   narrow screens rather than overflowing. */
.hero h1 span { display: inline-block; }
.hero-sub { font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.hero-trust li::before { content: "✓ "; color: var(--color-primary); }

.hero-art {
  position: relative;
  height: 360px;
}
.hero-card {
  position: absolute;
  width: 230px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}
.hero-card .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-card strong { font-family: var(--font-heading); font-size: 1.15rem; display: block; color: #fff; }
.card-1 { top: 10px; left: 0; }
.card-2 { bottom: 10px; right: 0; }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg-alt); padding: 20px 0; }
.strip-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; }
.strip-inner > span { font-weight: 600; color: var(--color-ink-soft); white-space: nowrap; }
.strip-places { display: flex; gap: 24px; flex-wrap: wrap; color: var(--color-ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-sub { font-size: 1rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card.featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-bg) 60%);
}
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; }
.service-list { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  padding-left: 22px;
  position: relative;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.service-link { font-weight: 600; color: var(--color-primary); font-size: 0.92rem; }
.service-link:hover { text-decoration: underline; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.why-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.why-list { display: flex; flex-direction: column; gap: 30px; }
.why-item { display: flex; gap: 20px; }
.why-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.why-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Service Area ---------- */
.areas-inner { text-align: center; }
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.areas-grid span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink-soft);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 0.95rem; color: var(--color-ink); }
.testimonial-card figcaption { font-size: 0.85rem; font-weight: 600; color: var(--color-ink-soft); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.price-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--color-accent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card h3 { font-size: 1.15rem; }
.price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--color-ink-soft); }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex-grow: 1; }
.price-card li {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  padding-left: 22px;
  position: relative;
}
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 40px; font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.contact-detail:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-light);
  font-size: 1.4rem;
  line-height: 1;
}
.contact-detail strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.contact-detail div span { font-size: 0.88rem; color: var(--color-ink-soft); overflow-wrap: anywhere; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.contact-note { text-align: center; margin: 20px 0 0; font-size: 0.88rem; }

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-field textarea { resize: vertical; }
.form-status { margin: 12px 0 0; font-size: 0.88rem; text-align: center; min-height: 1.2em; }
.form-status.success { color: var(--color-primary); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #cdd8d4; padding: 64px 0 24px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-text { font-family: var(--font-heading); font-weight: 700; margin-left: 8px; }
.footer-brand em { color: var(--color-primary); font-style: normal; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: #9fb0aa; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links a, .footer-links span { display: block; font-size: 0.88rem; color: #9fb0aa; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; color: #7f9189; }

/* ---------- Responsive ---------- */
/* The staggered hero cards are absolutely positioned at a fixed 230px, so they
   collide once .hero-art is narrower than ~460px. Below that, lay them out in
   normal flow: auto-fit drops from two columns to one when space runs out. */
@media (max-width: 1120px) {
  .hero-art {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }
  .hero-card { position: static; width: auto; }
}

@media (max-width: 960px) {
  .hero-inner, .why-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .hero-art { margin-top: 20px; }
  .services-grid, .testimonial-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; height: calc(100vh - 76px); background: var(--color-bg); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; z-index: 99; }
  .nav.open { transform: translateX(0); }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .services-grid, .testimonial-grid, .pricing-grid, .contact-details { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; gap: 32px; }
}
