/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0D2137;
  --color-secondary: #1A6B8A;
  --color-accent: #FF6B35;
  --color-accent-hover: #E55A28;
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-secondary: #555770;
  --color-text-light: #8B95A5;
  --color-border: #E5E3DF;
  --color-hero-gradient-start: #0D2137;
  --color-hero-gradient-end: #153550;

  /* Typography — system font stack, distinctive weights */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale (1.25 ratio) */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.nav--scrolled {
  background-color: rgba(13, 33, 55, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.nav__logo {
  height: 32px;
  width: auto;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background-color: var(--color-accent-hover);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26, 107, 138, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 40%);
}

/* Subtle geometric grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.85rem;
  background: rgba(26, 107, 138, 0.25);
  border: 1px solid rgba(26, 107, 138, 0.4);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

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

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

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

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn--dark {
  background-color: var(--color-primary);
  color: #fff;
}

.btn--dark:hover {
  background-color: #0a1a2c;
  transform: translateY(-1px);
}

/* ==========================================================================
   Section Shared
   ========================================================================== */

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--color-surface);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  padding: var(--space-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 33, 55, 0.08);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 107, 138, 0.1), rgba(26, 107, 138, 0.05));
  border-radius: 10px;
  margin-bottom: var(--space-lg);
  color: var(--color-secondary);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Process / How It Works
   ========================================================================== */

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  border-radius: 50%;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: var(--color-border);
  }
}

/* ==========================================================================
   About / Why techbuild
   ========================================================================== */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.about__text p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact__info h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.contact__info p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-secondary);
}

.contact__detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__form {
  background: var(--color-surface);
  padding: var(--space-2xl);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(26, 107, 138, 0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  width: 100%;
}

.form__status {
  display: none;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.form__status--success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form__status--error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer__logo {
  height: 28px;
  width: auto;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Animations (scroll-triggered via JS)
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.2rem;
    --text-4xl: 1.8rem;
    --text-3xl: 1.5rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--color-primary);
    padding: var(--space-2xl);
    gap: var(--space-lg);
    transition: right var(--transition-base);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__toggle {
    display: block;
    z-index: 101;
  }

  .nav__link {
    font-size: var(--text-lg);
  }

  /* Mobile overlay */
  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .nav__overlay--visible {
    display: block;
  }

  .hero__content {
    padding-top: var(--space-3xl);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
