/* ===== Design Tokens ===== */
:root {
  --bg-primary: #fafaf7;
  --bg-secondary: #f3f2ed;
  --text-primary: #2c2c2c;
  --text-secondary: #7a7a72;
  --accent: #5a7a64;
  --accent-hover: #4a6854;
  --accent-soft: #eef3ef;
  --border: #e4e3dc;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.06);
  --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

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

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text-primary);
}

.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-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, #f2efe6 0%, transparent 60%),
    var(--bg-primary);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 8rem 0 4rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 122, 100, 0.25);
}

/* ===== About ===== */
.about__content {
  max-width: 640px;
}

.about__content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

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

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

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

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
  max-width: 560px;
}

.contact .section__label,
.contact .section__title {
  text-align: center;
}

.contact__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact__email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact__email:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive: Tablet ===== */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section {
    padding: 8rem 0;
  }
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 1024px) {
  .hero__content {
    padding: 0;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    background: var(--bg-primary);
    box-shadow: -4px 0 24px rgba(26, 26, 46, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 1.25rem;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  .nav__overlay.open {
    display: block;
  }

  .nav__link {
    font-size: 1.05rem;
  }

  /* Hamburger animation */
  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__content {
    padding: 7rem 0 3rem;
  }

  .container {
    padding: 0 2rem;
  }

  .section__title br {
    display: none;
  }

  .contact__email {
    font-size: 1rem;
  }

  .btn {
    padding: 0.85rem 2.5rem;
  }
}
