/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:       #ffffff;
  --color-surface:  #f8f8f6;
  --color-text:     #1a1a1a;
  --color-muted:    #6b7280;
  --color-accent:   #2563eb;
  --color-accent-h: #1d4ed8;
  --font-sans:      'Inter', system-ui, sans-serif;
  --max-width:      1100px;
  --space-xs:       8px;
  --space-sm:       16px;
  --space-md:       32px;
  --space-lg:       64px;
  --space-xl:       96px;
  --radius:         12px;
}

html { scroll-behavior: smooth; }

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

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

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

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

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--color-text); }

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

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

/* ===== HERO ===== */
.hero {
  padding: var(--space-xl) 0;
}

.hero__inner {
  max-width: 680px;
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  max-width: 520px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
}

/* ===== SERVICES ===== */
.services {
  background: var(--color-surface);
  padding: var(--space-lg) 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.card {
  background: var(--color-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

/* ===== ABOUT ===== */
.about {
  padding: var(--space-lg) 0;
}

.about__inner p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: var(--space-sm);
}

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

/* ===== CONTACT ===== */
.contact {
  background: var(--color-surface);
  padding: var(--space-lg) 0;
}

.contact__inner {
  max-width: 560px;
}

.contact__sub {
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row textarea { resize: vertical; }

.contact__or {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact__or a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact__or a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: var(--space-md) 0;
}

.footer__inner {
  display: flex;
  justify-content: center;
}

.footer__inner p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer__inner a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer__inner a:hover { color: var(--color-text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .nav__links.is-open { display: flex; }

  .nav__burger { display: flex; }

  .hero { padding: var(--space-lg) 0; }

  .hero__headline { font-size: 2.25rem; }

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

  .footer__inner p {
    text-align: center;
    line-height: 2;
  }
}
