/* ============================================================
   STRUCTR — Main Stylesheet

   To retheme the site, edit the variables in :root below.
   Everything else inherits from those values.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ============================================================
   DESIGN TOKENS (edit these to change the look site-wide)
   ============================================================ */
:root {
  /* Brand colours */
  --navy:         #1e2d4a;
  --teal:         #2d7d7d;
  --teal-light:   #3a9696;
  --teal-pale:    #e8f4f4;
  --orange:       #e8751a;
  --orange-light: #f08c3a;
  --cream:        #f4efe8;

  /* Neutrals */
  --white:      #ffffff;
  --gray-50:    #fafaf8;
  --gray-100:   #f0f0ec;
  --gray-200:   #dcdcd6;
  --gray-400:   #a0a09a;
  --gray-500:   #6b6b65;
  --gray-700:   #3a3a36;
  --text:       #1a1a18;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width:  1100px;
  --radius:     8px;
  --radius-lg:  14px;

  /* Transitions */
  --ease: 0.2s ease;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font);
}


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

/* Standard padded section */
.section {
  padding: 88px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Full-width coloured band that wraps a .section */
.band {
  background: var(--gray-50);
}

.band-dark {
  background: var(--navy);
}

.band-teal {
  background: var(--teal);
}


/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.label-light {
  color: var(--teal-light);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title-xl {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--navy);
}

.title-lg {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
}

.title-md {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
}

.subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
}

.subtitle-light {
  color: rgba(255, 255, 255, 0.68);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo — shows image if present, falls back to text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.logo-wordmark {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--ease);
}

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

/* Desktop CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile CTA inside dropdown — hidden on desktop */
.nav-mobile-cta {
  display: none;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--ease);
  transform-origin: center;
}

/* Animated X when open */
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 108px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft colour glow in background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(45, 125, 125, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(232, 117, 26, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  padding: 7px 16px;
  border: 1px solid rgba(58, 150, 150, 0.4);
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--white);
}

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

.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.68);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

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


/* ============================================================
   PAGE HEADER — inner pages (services, about, contact)
   ============================================================ */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 72px 24px;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 520px;
  line-height: 1.7;
}


/* ============================================================
   SERVICES — Homepage preview cards
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 28px rgba(45, 125, 125, 0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ============================================================
   SERVICES — Full detail page
   ============================================================ */
.service-detail {
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

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

.service-detail.flipped {
  direction: rtl;
}

.service-detail.flipped > * {
  direction: ltr;
}

.service-detail-text h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-detail-text > p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 24px;
}

.includes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

.includes-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%232d7d7d'/%3E%3Cpath d='M5 9l3 3 5-5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Visual panel on service detail */
.service-detail-visual {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.visual-placeholder {
  text-align: center;
  color: var(--gray-400);
}

.visual-placeholder svg {
  width: 56px;
  height: 56px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
  margin: 0 auto 12px;
}

.visual-placeholder p {
  font-size: 13px;
  color: var(--gray-400);
}

/* Tools / tech tags */
.tools-used {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tool-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 4px 10px;
  border-radius: 100px;
}


/* ============================================================
   HOW IT WORKS — Process steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-top: 52px;
}

.step-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

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

.step p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ============================================================
   STATS BAND
   ============================================================ */
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  line-height: 1.5;
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-intro-text p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-intro-visual {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative accent block */
.about-intro-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.value-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--teal);
  border-top: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-detail p {
  font-size: 14px;
  color: var(--gray-500);
}

/* Form */
.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--ease);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b65' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  text-align: center;
}

/* Success message (shown after form submit) */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--gray-500);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand .logo-wordmark {
  color: var(--white);
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  transition: color var(--ease);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}


/* ============================================================
   MISCELLANEOUS COMPONENTS
   ============================================================ */

/* Horizontal divider with label */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-400);
  font-size: 13px;
  margin: 32px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

/* Simple pill/chip */
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.chip-teal {
  background: var(--teal-pale);
  color: var(--teal);
}


/* ============================================================
   RESPONSIVE — Mobile adjustments
   ============================================================ */
@media (max-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro-visual {
    height: 220px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail.flipped {
    direction: ltr;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 20px;
  }

  /* Hide desktop nav — show hamburger */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Open state: dropdown slides in below nav bar */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-mobile-cta {
    display: block;
  }

  .hero {
    padding: 72px 20px 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

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

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