/* ============================================================
   Steward AI — Marketing Website Stylesheet
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */

:root {
  /* Brand Colors */
  --color-navy:        #0d2444;
  --color-navy-700:    #1a3a5e;
  --color-navy-500:    #2c5282;
  --color-teal:        #14b8a6;
  --color-teal-light:  #5eead4;
  --color-amber:       #f59e0b;

  /* Text */
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;
  --color-text-light:  #94a3b8;

  /* Backgrounds */
  --color-bg:          #ffffff;
  --color-bg-alt:      #f8fafc;
  --color-bg-dark:     #0d2444;
  --color-border:      #e2e8f0;
  --color-border-light:#f1f5f9;

  /* Project accent colors */
  --color-indigo:  #6366f1;
  --color-emerald: #10b981;
  --color-amber-p: #f59e0b;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Layout */
  --container-width:    1200px;
  --container-padding:  clamp(1rem, 4vw, 2rem);
  --section-padding-y:  clamp(3.5rem, 8vw, 6rem);
  --nav-height:         72px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);

  /* Transitions */
  --transition:      150ms ease;
  --transition-med:  250ms ease;
  --transition-slow: 350ms ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw,   3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.7; color: var(--color-text-muted); }


/* ============================================================
   4. LAYOUT
   ============================================================ */

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

.section {
  padding: var(--section-padding-y) 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section-heading {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-med), border-color var(--transition-med),
              color var(--transition-med), box-shadow var(--transition-med),
              transform var(--transition-med);
  white-space: nowrap;
}

.btn-lg {
  padding: 0.875rem 1.875rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-primary {
  background-color: var(--color-teal);
  color: #ffffff;
  border-color: var(--color-teal);
}
.btn-primary:hover {
  background-color: #0d9488;
  border-color: #0d9488;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.55);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-navy-500);
  color: var(--color-navy);
  transform: translateY(-1px);
}


/* ============================================================
   6. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.badge--live         { background-color: #dcfce7; color: #15803d; }
.badge--available    { background-color: #dbeafe; color: #1d4ed8; }
.badge--coming-soon  { background-color: #fef3c7; color: #92400e; }


/* ============================================================
   7. TAGS
   ============================================================ */

.tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


/* ============================================================
   8. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-med), box-shadow var(--transition-med);
}

.nav--scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-indigo) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  transition: color var(--transition-med);
}
.nav--scrolled .nav-logo-text { color: var(--color-navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  text-decoration: none;
}
.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.1);
}
.nav--scrolled .nav-link            { color: var(--color-text-muted); }
.nav--scrolled .nav-link:hover      { color: var(--color-text); background-color: var(--color-bg-alt); }
.nav-link--active                   { color: #ffffff !important; background-color: rgba(255,255,255,0.15) !important; }
.nav--scrolled .nav-link--active    { color: var(--color-teal) !important; background-color: rgba(20,184,166,0.1) !important; }

/* Force mobile nav link color regardless of scroll state */
.nav--menu-open .nav-link { color: rgba(255,255,255,0.85) !important; }
.nav--menu-open .nav-link:hover { color: #ffffff !important; background-color: rgba(255,255,255,0.1) !important; }

.nav-cta { display: flex; align-items: center; }

/* Mobile nav button */
.nav-mobile-cta { display: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform var(--transition-med), opacity var(--transition-med);
}
.nav--scrolled .nav-hamburger span { background-color: var(--color-text); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-cta { display: block; }

  .nav--menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-navy);
    padding: 1rem var(--container-padding) 1.5rem;
    gap: 0.125rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav--menu-open .nav-link {
    padding: 0.75rem 1rem;
  }
}


/* ============================================================
   9. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 15% 80%, rgba(20,184,166,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(99,102,241,0.18) 0%, transparent 50%),
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 3rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-teal);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-heading span { color: var(--color-teal); }

.hero-subtext {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-indicator {
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.hero-scroll-indicator::after {
  content: '';
  width: 3px;
  height: 7px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(8px); opacity: 0.85; }
}


/* ============================================================
   10. PROJECT CARDS (Home & About)
   ============================================================ */

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

.project-card {
  position: relative;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.project-card--indigo::before  { background-color: var(--color-indigo); }
.project-card--emerald::before { background-color: var(--color-emerald); }
.project-card--amber::before   { background-color: var(--color-amber-p); }

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

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.project-card__description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.project-card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}


/* ============================================================
   11. ABOUT TEASER (Home Page)
   ============================================================ */

.about-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-teaser__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-teaser__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 0;
}

.about-teaser__bio {
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.about-teaser__initials {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-700) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}


/* ============================================================
   12. PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem;
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 10% 90%, rgba(20,184,166,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(99,102,241,0.12) 0%, transparent 50%);
  text-align: center;
}

.page-hero .section-label { display: block; margin-bottom: 0.75rem; }
.page-hero h1 { color: #ffffff; margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.62); font-size: 1.125rem; max-width: 520px; margin: 0 auto; }


/* ============================================================
   13. PROJECT DETAIL CARDS (Projects Page)
   ============================================================ */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-detail-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: box-shadow var(--transition-med);
}
.project-detail-card:hover { box-shadow: var(--shadow-lg); }

.project-detail-card--indigo  { border-top: 4px solid var(--color-indigo); }
.project-detail-card--emerald { border-top: 4px solid var(--color-emerald); }
.project-detail-card--amber   { border-top: 4px solid var(--color-amber-p); }

.project-detail-card__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--color-border);
}

.project-detail-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-detail-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.project-detail-card__title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.project-detail-card__tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 0;
}

.project-detail-card__description {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.book-info {
  padding: 1rem 1.25rem;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-emerald);
}
.book-info p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.book-info strong { color: var(--color-text); }

.project-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: auto;
}

.project-detail-card__features {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--color-bg-alt);
}

.project-detail-card__features h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.feature-list--indigo li::before {
  background-color: rgba(99,102,241,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5L4 7.5L8.5 2.5' stroke='%236366f1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}
.feature-list--emerald li::before {
  background-color: rgba(16,185,129,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5L4 7.5L8.5 2.5' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}
.feature-list--amber li::before {
  background-color: rgba(245,158,11,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5L4 7.5L8.5 2.5' stroke='%23f59e0b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}


/* ============================================================
   14. ABOUT PAGE
   ============================================================ */

.about-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 0% 100%, rgba(20,184,166,0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 0%, rgba(99,102,241,0.12) 0%, transparent 45%);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-indigo) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.about-hero-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-hero h1 { color: #ffffff; margin-bottom: 0.5rem; }

.about-hero-location { color: rgba(255,255,255,0.5); font-size: 0.9375rem; }
.about-hero-location strong { color: rgba(255,255,255,0.72); font-weight: 500; }

/* About content layout */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-bio h2 { margin-bottom: 1.75rem; }

.about-bio p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-bio p:last-child { margin-bottom: 0; }

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.expertise-list { display: flex; flex-direction: column; gap: 0.5rem; }

.expertise-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.expertise-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: block;
}


/* ============================================================
   15. CONTACT / CTA SECTION
   ============================================================ */

.contact-section {
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(20,184,166,0.2) 0%, transparent 60%);
  padding: var(--section-padding-y) 0;
  text-align: center;
}
.contact-section h2 { color: #ffffff; margin-bottom: 1rem; }
.contact-section p  { color: rgba(255,255,255,0.62); font-size: 1.0625rem; max-width: 480px; margin: 0 auto 2rem; }


/* ============================================================
   16. FOOTER
   ============================================================ */

.footer {
  background-color: #0a1a2e;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-indigo) 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #ffffff;
}

.footer-description { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.65; }
.footer-location    { font-size: 0.8125rem; color: rgba(255,255,255,0.28); }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.footer-col-subheading { margin-top: 1.75rem; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: rgba(255,255,255,0.88); }

.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-contact-item { font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-contact-item a { color: var(--color-teal); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--color-teal-light); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.28); }
.footer-credits    { font-size: 0.8125rem; color: rgba(255,255,255,0.2); }


/* ============================================================
   17. SCROLL ANIMATIONS
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }


/* ============================================================
   18. UTILITIES
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.text-center { text-align: center; }


/* ============================================================
   19. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .project-detail-card {
    grid-template-columns: 1fr;
  }
  .project-detail-card__content {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .project-detail-card__features {
    background-color: var(--color-bg-alt);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-teaser__visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-lg {
    justify-content: center;
  }
  .about-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.5rem;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
}
