/* ===== CSS VARIABLES ===== */
:root {
  --primary:    hsl(153, 40%, 24%);   /* dark teal-green */
  --primary-fg: hsl(60, 33%, 96%);    /* off-white */
  --accent:     hsl(43, 80%, 46%);    /* gold */
  --accent-fg:  hsl(150, 30%, 12%);   /* dark green */
  --secondary:  hsl(147, 30%, 90%);   /* light mint */
  --secondary-fg: hsl(153, 40%, 18%); /* deep green */
  --background: hsl(60, 33%, 96%);    /* off-white */
  --foreground: hsl(150, 30%, 12%);   /* dark green */
  --card:       hsl(0, 0%, 100%);     /* white */
  --muted-fg:   hsl(150, 10%, 40%);   /* grey-green */
  --border:     hsl(150, 15%, 85%);
  --radius:     0.75rem;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.14);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;              /* always fill available width (matches Tailwind container) */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;          /* px-4 on mobile */
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }   /* px-8 on md+ */
}

/* ===== GRADIENTS ===== */
.section-gradient {
  background: linear-gradient(180deg, hsl(60,33%,96%) 0%, hsl(147,30%,95%) 100%);
}
.text-gradient {
  background-image: linear-gradient(135deg, hsl(153,40%,30%), hsl(43,80%,46%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
#navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo img { height: 60px; width: auto; }

/* Center nav links — flex: 1 + justify-content: center */
.navbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex: 1;           /* take remaining space so links sit between logo and button */
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(31,61,50,0.70);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

/* Right slot: button + hamburger */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navbar CTA — dark green */
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.90; }

/* Hide desktop links on mobile */
@media (max-width: 767px) {
  .navbar-links { display: none; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 2rem 1.25rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  gap: 0.15rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 0.6rem 0; font-size: 0.95rem; }
.mobile-menu .btn-nav { margin-top: 0.75rem; align-self: flex-start; }

/* ===== HERO ===== */
#home {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#home > img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    hsla(153,40%,14%,0.92) 0%,
    hsla(153,40%,24%,0.80) 50%,
    hsla(43,80%,46%,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: 8rem 0;   /* container already supplies horizontal padding */
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.25rem;       /* text-4xl */
  font-weight: 700;
  line-height: 1.25;        /* leading-tight */
  color: #ffffff;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }   /* text-6xl */
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }    /* text-7xl */
}
.hero-title .accent { color: var(--accent); }
.hero-desc {
  font-size: 1.125rem;      /* text-lg */
  color: rgba(255,255,255,0.80);
  max-width: 32rem;         /* max-w-lg */
  margin-bottom: 2rem;
  line-height: 1.625;       /* leading-relaxed */
}
@media (min-width: 768px) {
  .hero-desc { font-size: 1.25rem; }    /* text-xl */
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Gold CTA button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-gold:hover { opacity: 0.90; }

/* Outline white button */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.30);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.10); }

/* ===== METRICS SECTION ===== */
#metrics {
  position: relative;
  z-index: 20;
  margin-top: -4rem;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}
.metric-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.metric-card:hover { box-shadow: var(--shadow-xl); }

/* Icon — no background box, just icon */
.metric-icon {
  margin-bottom: 1rem;
}
.metric-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 40px hsla(43,80%,46%,0.30);
  line-height: 1;
}
.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.25rem;
}
.metric-detail {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.2rem;
}

/* ===== TECHNOLOGY SECTION ===== */
#technology {
  padding: 6rem 0;
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tech-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.tech-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.20;
  margin-bottom: 1.5rem;
}
.tech-desc {
  font-size: 0.97rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.product-cards { display: flex; flex-direction: column; gap: 1rem; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.product-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.product-card-desc {
  font-size: 0.83rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* Tech image + float */
.tech-img-wrap { position: relative; }
.tech-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  display: block;
}
.stat-float {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  min-width: 190px;
}
.stat-float-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.stat-float-label {
  font-size: 0.83rem;
  opacity: 0.80;
  margin-top: 0.15rem;
}
.stat-float-sub {
  font-size: 0.72rem;
  opacity: 0.60;
  margin-top: 0.2rem;
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 6rem 0;
  background: var(--primary);
}
.about-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}
.about-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-fg);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.about-subtitle {
  font-size: 0.97rem;
  color: rgba(244,243,240,0.70);
  line-height: 1.7;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.about-card {
  background: rgba(244,243,240,0.10);
  border: 1px solid rgba(244,243,240,0.10);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: background 0.25s;
}
.about-card:hover { background: rgba(244,243,240,0.15); }
.about-icon {
  width: 48px; height: 48px;
  background: rgba(212,169,71,0.20);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.about-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-fg);
  margin-bottom: 0.75rem;
}
.about-card p {
  font-size: 0.875rem;
  color: rgba(244,243,240,0.70);
  line-height: 1.7;
}

/* ===== TEAM SECTION ===== */
#team {
  padding: 6rem 0;
}
.team-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}
.team-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.team-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.team-subtitle {
  font-size: 0.97rem;
  color: var(--muted-fg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: box-shadow 0.25s;
}
.team-card:hover { box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-fg);
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
}
.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.2rem 0 0.6rem;
}
.team-bio {
  font-size: 0.78rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
#contact { padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.contact-desc {
  font-size: 0.97rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--secondary);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.contact-item-icon svg {
  width: 20px; height: 20px;
  stroke: var(--secondary-fg);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-item-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.contact-item-value {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.contact-item-value:hover { color: var(--primary); }

/* Form */
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.1rem; }
.form-group:last-of-type { margin-bottom: 1.25rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(153,40%,24%,0.12);
}
.form-group textarea { resize: none; min-height: 100px; }

/* Submit — dark green (primary) */
.btn-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.90; }

.form-success {
  display: none;
  background: #d4edda; border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.form-success.show { display: block; }

/* ===== FOOTER ===== */
#footer {
  background: var(--primary);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img {
  height: 32px; width: auto;
  filter: brightness(2);   /* matches React's brightness-200 */
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-fg);
}
.footer-copy {
  font-size: 0.83rem;
  color: rgba(244,243,240,0.60);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(244,243,240,0.60);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .tech-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat-float { position: static; margin-top: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-content { padding: 6rem 0 4rem; }
}
@media (max-width: 540px) {
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; }
  .btn-gold, .btn-outline-white { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #metrics { margin-top: 0; padding-top: 2rem; }
}
