@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #4c6971;
  --color-primary-dark: #2b3d43;
  --color-secondary: #614e73;
  --color-accent: #f6b756;
  --color-accent-dark: #df8a1f;
  --color-bg: #05090f;
  --color-panel: #0f1b24;
  --color-card-bg: linear-gradient(180deg, rgba(15,27,36,0.9), rgba(5,9,15,0.95));
  --color-service-card-bg: rgba(15,27,36,0.9);
  --color-surface-strong: rgba(5,9,15,0.9);
  --color-glass: rgba(255,255,255,0.04);
  --color-border: rgba(255,255,255,0.08);
  --color-chip-border: rgba(255,255,255,0.15);
  --color-chip-bg: rgba(255,255,255,0.05);
  --color-text: #e2e8f0;
  --color-heading: #ffffff;
  --color-muted: #94a3b8;
  --color-nav: rgba(5, 9, 15, 0.85);
  --color-nav-blur: blur(16px);
  --color-btn-outline: rgba(255,255,255,0.2);
  --color-btn-primary-text: #05090f;
  --shadow-btn-primary: 0 15px 35px rgba(246, 183, 86, 0.35);
  --shadow-strong: 0 30px 60px rgba(0,0,0,0.35);
  --color-label-surface: rgba(5,9,15,0.75);
  --color-label-text: #ffffff;
  --hero-visual: url('assets/images/hero-dark.jpg');
  --max-width: 1200px;
  font-size: 16px;
}

:root[data-theme="light"] {
  --color-bg: #f4f7fb;
  --color-panel: #edf2ff;
  --color-card-bg: linear-gradient(180deg, #ffffff, #f4f7fb);
  --color-service-card-bg: #ffffff;
  --color-surface-strong: #ffffff;
  --color-glass: rgba(15,23,42,0.05);
  --color-border: rgba(15,23,42,0.1);
  --color-chip-border: rgba(15,23,42,0.18);
  --color-chip-bg: rgba(15,23,42,0.08);
  --color-text: #0f172a;
  --color-heading: #020617;
  --color-muted: #475569;
  --color-nav: rgba(255,255,255,0.92);
  --color-nav-blur: blur(12px);
  --color-btn-outline: rgba(15,23,42,0.2);
  --color-btn-primary-text: #f8fafc;
  --shadow-btn-primary: 0 15px 25px rgba(76,105,113,0.35);
  --shadow-strong: 0 25px 45px rgba(15,23,42,0.15);
  --color-accent: var(--color-primary);
  --color-accent-dark: var(--color-primary-dark);
  --color-label-surface: rgba(57,76,86,0.85);
  --color-label-text: #f8fafc;
  --hero-visual: url('assets/images/hero-light.jpg');
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, rgba(76,105,113,0.25), transparent 45%),
              radial-gradient(circle at 20% 20%, rgba(97,78,115,0.23), transparent 40%),
              var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.3s ease;
}

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

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

.wrapper {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav);
  backdrop-filter: var(--color-nav-blur);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.logo span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

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

.dropdown {
  position: relative;
}

.theme-toggle {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-glass);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  min-width: 230px;
  box-shadow: var(--shadow-strong);
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.25rem;
  color: var(--color-text);
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--color-accent);
}

.dropdown.open .dropdown-menu {
  display: block;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-heading);
  font-size: 1.75rem;
  cursor: pointer;
}

.hero {
  padding: 6rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--color-heading);
}

.hero-subline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.hero-copy {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-glow {
  background: linear-gradient(120deg, rgba(76,105,113,0.5), rgba(97,78,115,0.4));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.5), transparent 45%);
  opacity: 0.6;
}

.hero-glow > * {
  position: relative;
  z-index: 2;
}

.hero-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(145deg, rgba(5,9,15,0.7), rgba(5,9,15,0.15)), var(--hero-visual) center/cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 45%);
  mix-blend-mode: screen;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--color-glass);
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-btn-primary-text);
  box-shadow: var(--shadow-btn-primary);
}

.btn-outline {
  border: 1px solid var(--color-btn-outline);
  color: var(--color-text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  margin-top: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

.section-subtitle {
  color: var(--color-muted);
}

.highlight-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.highlight-card {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.highlight-card h3 {
  margin-bottom: 0.75rem;
}

.highlight-card p + ul {
  margin-top: 0.75rem;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--color-glass);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.gradient-panel {
  padding: 2rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 20% 20%, rgba(97,78,115,0.35), transparent 60%), var(--color-panel);
  border: 1px solid var(--color-border);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-service-card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-card ul {
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.service-card li {
  margin-bottom: 0.35rem;
}

.service-card .btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--color-glass);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-heading);
}

.panel .stats {
  margin-top: 1rem;
}

.page-hero {
  padding: 5rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.breadcrumb {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-accent);
}

.page-content {
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  margin-bottom: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.check-list {
  list-style: none;
  color: var(--color-muted);
}

.check-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.service-detail-hero {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.service-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5,9,15,0.55), rgba(5,9,15,0.35));
}

.service-detail-hero .inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  max-width: 600px;
  color: #fff;
}

.service-detail-hero .inner h2,
.service-detail-hero .inner p {
  color: inherit;
}

.service-detail-hero .inner .badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: var(--color-service-card-bg);
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-nav);
}

footer .wrapper {
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-muted);
}

footer a {
  color: var(--color-accent);
}

ul.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

ul.pill-list li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-chip-border);
  background: var(--color-chip-bg);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--color-glass);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.contact-cta.compact {
  margin-top: 1rem;
  padding: 1.25rem;
}

.image-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.image-showcase figure {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-strong);
}

.image-showcase figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,9,15,0.6), rgba(5,9,15,0.1));
}

.image-showcase span {
  position: absolute;
  inset: auto 1rem 1rem;
  background: var(--color-label-surface);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-label-text);
  z-index: 1;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-feature-grid .highlight-card {
  min-height: 180px;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-matrix article {
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
}

.service-matrix h4 {
  margin-bottom: 0.6rem;
}

.service-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.service-tag-list li {
  border: 1px solid var(--color-chip-border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: var(--color-chip-bg);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-stack .panel {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
}

.panel-stack .panel.accent {
  background: var(--color-card-bg);
  color: var(--color-heading);
}

.panel-stack .panel.accent p {
  color: inherit;
}

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 4%;
    flex-direction: column;
    width: min(320px, 90vw);
    background: var(--color-nav);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    display: none;
  }

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

  .mobile-toggle {
    display: block;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
  }

  footer .wrapper {
    padding-bottom: 1rem;
  }
}
