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

:root {
  --bg: #EBEBEB;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --gray-dark: #1F1F1F;
  --gray-mid: #444444;
  --gray-accent: #5A5A5A;
  --gray-light: #5E5E5E;
  --gray-border: #D4D4D4;
  --hero-bg: #0D0D0D;
  --accent: #5C7A8A;
  --accent-hero: #93B8C8;
  --accent-bg: #EEF4F7;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--gray-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* ===== FADE-IN SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  transition: color 0.2s;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

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

.nav-links .nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover {
  background: #4A6575;
  color: #ffffff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 100px;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hero);
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.1;
  max-width: 860px;
  margin-bottom: 28px;
}

.hero-tagline span {
  color: var(--accent-hero);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.8;
}

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

.btn-primary {
  background: #FFFFFF;
  color: var(--hero-bg);
  padding: 15px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-mid);
  padding: 15px 36px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-border);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--gray-mid);
  color: var(--gray-dark);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  padding: 15px 36px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
}

/* ===== SECTION SHARED ===== */
section {
  padding: 100px 40px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-light);
  line-height: 1.75;
  max-width: 560px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HOME — PREVIEW SECTIONS ===== */
.home-about {
  background: var(--bg-white);
}

.home-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-about-visual img {
  width: 220px;
  opacity: 0.6;
  filter: grayscale(20%);
}

.home-services-preview {
  background: var(--bg);
}

.home-services-preview .container {
  text-align: center;
}

.home-services-preview .section-desc {
  margin: 0 auto 60px;
}

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

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(92, 122, 138, 0.14);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ===== HOME — CTA STRIP ===== */
.cta-strip {
  background: var(--accent);
  padding: 80px 40px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: var(--gray-light);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .btn-primary {
  background: var(--bg-white);
  color: var(--gray-dark);
}

.cta-strip .btn-primary:hover {
  background: var(--bg-light);
  color: var(--gray-dark);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--bg);
}

.about-story {
  background: var(--bg-white);
}

.about-story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-story-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin: 32px 0 10px;
}

.about-story-text p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.75;
}

.about-values {
  background: var(--bg);
}

.about-values .container {
  text-align: center;
}

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

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 40px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(92, 122, 138, 0.14);
}

.value-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ===== TEAM STRIP ===== */
.team-strip {
  background: var(--bg-white);
  padding: 80px 40px;
  text-align: center;
}

.team-strip p {
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== SERVICES PAGE ===== */
.services-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--bg);
}

.services-list {
  background: var(--bg-white);
}

.services-list .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 52px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: start;
}

.service-row:last-child {
  border-bottom: none;
}

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.5;
  padding-top: 6px;
}

.service-row-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-row-body p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--gray-border);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.03em;
}

.services-process {
  background: var(--bg);
}

.services-process .container {
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--gray-border);
}

.step {
  padding: 0 20px;
  position: relative;
}

.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.65;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-dark);
  padding: 64px 40px 32px;
  color: var(--gray-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  filter: invert(1);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

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

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

.footer-col ul a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ===== PAGE HERO (shared) ===== */
.page-hero-content {
  max-width: 700px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .home-about .container,
  .about-story .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-about-visual { display: none; }

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

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

  .process-steps::before { display: none; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-logo-text { display: none; }

  section { padding: 72px 20px; }

  .hero { padding: 100px 20px 60px; }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
