/* AutoArchitect — Custom styles */

:root {
  --navy:         #00255F;  /* logo primary */
  --navy-mid:     #39507A;  /* logo secondary */
  --navy-light:   #4D6B8A;  /* hover states */
  --coral:        #FF6B35;  /* warm accent */
  --cream:        #F5F3EE;  /* logo cream — warm section bg */
  --cream-border: #DDD8CE;  /* warm border */
  --dark:         #0A1628;  /* headings */
  --body:         #2E3F59;  /* body text — navy-tinted */
  --muted:        #7A8FA8;  /* labels, captions */
  --border:       #D4D9E3;  /* default border */
  --white:        #FFFFFF;
}

/* ─── Base ──────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography helpers ─────────────────────────────── */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-mid);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* ─── Header ─────────────────────────────────────────── */

#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#header.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 0 0 var(--border);
}

.header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.wordmark img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
}

.wordmark-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  margin-left: 2rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--navy); }

/* ─── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  background: var(--navy);
}

.hero-inner {
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--coral);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
  margin: 1rem 0 1.25rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(245, 243, 238, 0.72);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 0.5rem;
}

.hero-sub-small {
  font-size: 0.9375rem;
  color: rgba(245, 243, 238, 0.42);
  font-style: italic;
  letter-spacing: 0.005em;
}

/* Geometric corner — echoes the logo mark */
.hero-geo {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 0;
}

.hero-geo .geo-block-large {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 175px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0 0 44px;
}

.hero-geo .geo-block-small {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.hero-geo .geo-cream {
  position: absolute;
  top: 52px;
  right: 62px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.75;
  border: none;
}

.hero-geo .geo-rule {
  position: absolute;
  top: 0;
  right: 214px;
  width: 1px;
  height: 110px;
  background: rgba(255, 255, 255, 0.15);
}

/* ─── Sections ───────────────────────────────────────── */

.section {
  padding: 3.75rem 1.5rem;
}

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

.section-navy {
  background: var(--navy);
}

.section-navy .section-label {
  color: rgba(245, 243, 238, 0.4);
}

.section-navy .section-header h2 {
  color: var(--cream);
}

.section-navy .section-header p {
  color: rgba(245, 243, 238, 0.5);
}

.section-inner {
  max-width: 1024px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 0.375rem 0 0.5rem;
  line-height: 1.2;
}

.section-header p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Service Cards ──────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
  border-radius: 6px 0 0 6px;
}

.card:hover { border-color: var(--navy-mid); }

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

/* ─── Work / Case Study Cards ────────────────────────── */

.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: border-color 0.2s ease;
}

.work-card + .work-card { margin-top: 1.25rem; }

.work-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
  z-index: 2;
}

.work-card:hover { border-color: var(--navy-mid); }

.work-card-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 1.5rem 2.25rem;
}

.work-card-thumb {
  display: block;
  width: 200px;
  min-width: 200px;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(0, 37, 95, 0.07);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
}

.work-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.work-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

/* ─── Stack ──────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  background: var(--white);
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stack-item .stack-icon {
  margin-bottom: 0.5rem;
  line-height: 1;
  filter: grayscale(0.3);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.stack-item .stack-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--body);
  text-align: center;
  transition: color 0.2s ease;
}

.stack-item:hover {
  border-color: var(--navy);
  background: rgba(0, 37, 95, 0.03);
}

.stack-item:hover .stack-icon {
  filter: grayscale(0);
  opacity: 1;
}

.stack-item:hover .stack-name {
  color: var(--navy);
}

/* Stack on navy background */
.section-navy .stack-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-navy .stack-item .stack-name {
  color: rgba(245, 243, 238, 0.5);
}

.section-navy .stack-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 243, 238, 0.4);
}

.section-navy .stack-item:hover .stack-name {
  color: var(--cream);
}

/* ─── About ──────────────────────────────────────────── */

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

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-links {
  padding-top: 0.5rem;
}

.about-links-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.875rem;
}

.about-link-platform {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 70px;
}

.about-link-url {
  font-size: 0.9rem;
  color: var(--navy);
  transition: color 0.15s ease;
  word-break: break-all;
}

.about-link:hover .about-link-url {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Contact ────────────────────────────────────────── */

.contact-section {
  padding: 3.75rem 1.5rem;
  background: var(--navy);
}

.contact-inner {
  max-width: 1024px;
  margin: 0 auto;
}

.contact-inner .section-label {
  color: rgba(245, 243, 238, 0.45);
}

.contact-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0.375rem 0 0.75rem;
}

.contact-inner .contact-intro {
  font-size: 0.9375rem;
  color: rgba(245, 243, 238, 0.65);
  margin-bottom: 1.75rem;
}

.contact-email-link {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid rgba(255, 107, 53, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-email-link:hover {
  color: #ff8c5a;
  border-color: rgba(255, 107, 53, 0.75);
}

.contact-note {
  font-size: 0.825rem;
  color: rgba(245, 243, 238, 0.35);
  margin-top: 1rem;
}

/* ─── Footer ─────────────────────────────────────────── */

footer {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.75;
}

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

.footer-brand-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-size: 11.5px;
  color: var(--muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  nav { display: none; }

  .hero { padding: 3.5rem 1.25rem 3rem; }

  .hero-geo {
    width: 170px;
    height: 170px;
    opacity: 0.65;
  }

  .section { padding: 3rem 1.25rem; }

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

  /* Work cards: stack vertically on mobile, thumb on top */
  .work-card {
    flex-direction: column;
  }

  .work-card-thumb {
    width: 100%;
    min-width: unset;
    height: 180px;
    border-left: none;
    border-bottom: 1px solid var(--border);
    order: -1;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-section { padding: 3rem 1.25rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
  }

  .stack-item { padding: 1rem 0.5rem; }

  .hero h1 { letter-spacing: -0.02em; }
}
