/* =============================================
   EDV AI Solutions — Design System
   ============================================= */

:root {
  --bg: #F5F2EE;
  --surface: #FFFFFF;
  --text: #2C2C2C;
  --muted: #6B6860;
  --green: #4A6741;
  --green-dark: #3A5232;
  --amber: #A67C3D;
  --hero-bg: #2C3B28;
  --border: #E8E3DA;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* =============================================
   Layout
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section--tinted {
  background: #EDE9E3;
  padding: 3rem 2rem;
}

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

.nav {
  height: 68px;
  border-bottom: none;
  background: transparent;
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
  color: var(--green);
  transform: translateY(-1px);
}

.nav-brand img {
  height: 160px;
  width: auto;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  object-fit: contain;
  position: relative;
  z-index: 20;
  margin-bottom: -55px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand img:hover {
  transform: scale(1.12) rotate(-2deg);
}


.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green);
  color: #F5F2EE;
  border-color: var(--green);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s ease;
}

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

.hero {
  background: var(--hero-bg);
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero--home {
  min-height: 520px;
}

.hero--inner {
  min-height: 360px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 59, 40, 0.97) 0%,
    rgba(44, 59, 40, 0.55) 50%,
    rgba(44, 59, 40, 0.18) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(74, 103, 65, 0.35);
  color: #8DB882;
  border: 1px solid rgba(141, 184, 130, 0.3);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0;
  max-width: 680px;
}

.hero h1 .accent {
  color: #8DB882;
}

.hero p.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

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

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
}

.btn-light {
  background: rgba(245, 242, 238, 0.12);
  color: #F5F2EE;
  border: 1px solid rgba(245, 242, 238, 0.28);
  backdrop-filter: blur(4px);
}

.btn-light:hover {
  background: rgba(245, 242, 238, 0.22);
  transform: translateY(-2px);
}

/* =============================================
   Cards
   ============================================= */

.card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 44, 44, 0.09);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(74, 103, 65, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.3;
}

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

/* Image card */
.img-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.img-card:hover img {
  transform: scale(1.04);
}

/* =============================================
   Labels
   ============================================= */

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

/* =============================================
   Grids
   ============================================= */

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-2.stretch {
  align-items: stretch;
}

/* =============================================
   Section headings
   ============================================= */

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading .label {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #4A6741;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 500;
  color: #2C3B28;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.section-heading p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
}

/* =============================================
   Process steps (services page)
   ============================================= */

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

.step-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 44, 44, 0.09);
}

.step-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.step-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   Expandable cards
   ============================================= */

.expand-card {
  position: relative;
  cursor: pointer;
}

.expand-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.expand-card.open .expand-toggle {
  transform: rotate(45deg);
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.expand-card.open .card-detail {
  max-height: 220px;
}

.card-detail-inner {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   CTA block
   ============================================= */

.cta-block {
  background: var(--hero-bg);
  border-radius: 20px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(141, 184, 130, 0.05);
  top: -160px;
  left: -100px;
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(141, 184, 130, 0.05);
  bottom: -100px;
  right: -60px;
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-block .btn {
  position: relative;
  z-index: 1;
}

/* =============================================
   Home — about strip
   ============================================= */

.about-strip-img {
  min-height: 380px;
}

.about-strip-text {
  padding: 2.5rem;
}

.about-strip-text h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-strip-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* =============================================
   Home — process card
   ============================================= */

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

.process-card .label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.process-card-img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* =============================================
   About page
   ============================================= */

.founder-img {
  min-height: 460px;
}

.founder-text {
  padding: 0.5rem 0;
}

.founder-text h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.founder-text p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.mission-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.mission-card .label {
  text-align: left;
}

.mission-card p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  border-left: 3px solid #A67C3D;
  padding-left: 1rem;
}

.mission-card p:last-child {
  margin-bottom: 0;
}

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

.contact-card {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-intro {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid rgba(74, 103, 65, 0.25);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin: 1.75rem 0 0.75rem;
}

.email-link:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.email-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.address-block {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.address-block p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer {
  background: #2C2C2C;
  padding: 2.25rem 2.5rem;
  text-align: center;
  margin-top: 5rem;
}

.footer p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

/* =============================================
   Fade-in animation
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-2.stretch {
    grid-template-columns: 1fr;
  }

  .about-strip-img {
    min-height: 260px;
  }

  .founder-img {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.07);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-brand img {
    height: 80px;
    margin-bottom: -20px;
  }

  .nav-toggle {
    display: flex;
  }

  .container,
  .nav-inner {
    padding: 0 1.25rem;
  }

  .hero-inner {
    padding: 80px 1.25rem 2.5rem;
  }

  .hero--home {
    min-height: 440px;
  }

  .hero--inner {
    min-height: 280px;
  }

  .cta-block {
    padding: 3.5rem 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2rem 0;
  }

  .footer {
    padding: 2rem 1.25rem;
    margin-top: 3rem;
  }

  .about-strip-text {
    padding: 1.75rem;
  }
}
