/* ===== CSS Variables ===== */
:root {
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;
  --color-slate: #334155;
  --color-slate-light: #64748b;
  --color-teal: #0d9488;
  --color-teal-dark: #0f766e;
  --color-teal-light: #14b8a6;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --max-width: 1120px;
  --header-height: 84px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy-light);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, textarea {
  font: inherit;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-slate-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-slate);
  background: var(--color-bg-soft);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: auto;
  display: block;
}

.header-logo {
  height: 72px;
  max-width: 340px;
}

.footer-logo {
  height: 72px;
  max-width: 340px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-slate);
  transition: color 0.15s;
}

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

.nav-cta {
  padding: 8px 18px !important;
  background: var(--color-navy);
  color: var(--color-white) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-navy-light) !important;
  color: var(--color-white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-height) + 64px) 0 80px;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--color-teal);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-slate);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}

.hero-card-header {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}

.hero-card-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.hero-card-header .dot:nth-child(1) { background: #f87171; }
.hero-card-header .dot:nth-child(2) { background: #fbbf24; }
.hero-card-header .dot:nth-child(3) { background: #34d399; }

.hero-card-body {
  padding: 24px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.metric-label {
  font-size: 13px;
  color: var(--color-slate-light);
}

.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

.metric-value.status-good {
  color: var(--color-teal);
}

.metric-bar {
  height: 6px;
  background: var(--color-bg-muted);
  border-radius: 999px;
  margin: 20px 0 12px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  border-radius: 999px;
}

.metric-note {
  font-size: 13px;
  color: var(--color-slate-light);
  text-align: center;
}

/* ===== Services ===== */
.services {
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f0fdfa;
  color: var(--color-teal);
  border-radius: 10px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  background: var(--color-bg-soft);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 24px;
}

.about-content > p {
  color: var(--color-slate);
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.about-points {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--color-teal);
}

.about-points strong {
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.about-points span {
  font-size: 0.9375rem;
  color: var(--color-slate);
}

.about-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card li {
  font-size: 0.9375rem;
  color: var(--color-slate);
  padding-left: 18px;
  position: relative;
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
}

.about-divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}

.about-note {
  font-size: 0.875rem;
  color: var(--color-slate-light);
  line-height: 1.5;
}

/* ===== Process ===== */
.process {
  background: var(--color-bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
  opacity: 0.35;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  background: var(--color-bg-soft);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-slate);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-slate-light);
}

.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--color-teal);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

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

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

.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-slate-light);
  text-align: center;
  line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy);
  color: #94a3b8;
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  gap: 32px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-bottom p {
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 340px;
  }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .header-logo {
    height: 50px;
    max-width: 230px;
  }

  .section {
    padding: 72px 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: calc(var(--header-height) + 40px) 0 56px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .contact-form {
    padding: 28px 20px;
  }
}

/* ===== Blog ===== */
.blog-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
  background: var(--color-bg);
}

.blog-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-navy);
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--color-slate);
  font-size: 1.0625rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--color-slate);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 18px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
}

.blog-card-link:hover {
  color: var(--color-teal-dark);
}

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  font-size: 14px;
  color: var(--color-slate-light);
  margin-bottom: 16px;
}

.article-wrap h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 24px;
}

.article-body p {
  font-size: 1.0625rem;
  color: var(--color-slate);
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 32px 0 12px;
}

.article-body ul {
  list-style: disc;
  margin: 0 0 18px 22px;
}

.article-body li {
  font-size: 1.0625rem;
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.article-cta p {
  margin-bottom: 14px;
  color: var(--color-slate);
}

.back-link {
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-teal);
  margin-bottom: 28px;
}

.back-link:hover {
  color: var(--color-teal-dark);
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .blog-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
}
