/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #ffffff;
  --bg-alt:  #f6f8fb;
  --border:  #e2e8f0;
  --blue:    #2563EB;
  --blue-2:  #1d4ed8;
  --text:    #0f172a;
  --text-2:  #475569;
  --radius:  14px;
  --shadow:  0 6px 24px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 38px); }
p  { color: var(--text-2); }

.accent { color: var(--blue); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-full { width: 100%; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  padding: 160px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 22px 0 32px;
  font-size: 18px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual .drawing {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.draw-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: #64748b;
}
.det-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #fff;
}
.det { opacity: 0; animation: det-pop 0.5s ease forwards; }
.det-1 { animation-delay: 0.6s; }
.det-2 { animation-delay: 1.2s; }
.det-3 { animation-delay: 1.8s; }
@keyframes det-pop {
  from { opacity: 0; transform: scale(0.96); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}
.scan-line { animation: scan 4s linear infinite; }
@keyframes scan {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(340px); }
  100% { transform: translateY(0); }
}

/* ─── SECTIONS ─── */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header p { margin-top: 12px; font-size: 17px; }

/* ─── SERVICE CARDS ─── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; }

/* ─── EXPERTISE ─── */
.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.expertise-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.expertise-item h4 { font-size: 17px; margin-bottom: 8px; }
.expertise-item p { font-size: 15px; }

/* ─── ABOUT ─── */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 18px; font-size: 16px; }
.about-text .btn { margin-top: 8px; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fact {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.fact strong { display: block; font-size: 24px; color: var(--blue); }
.fact span { font-size: 14px; color: var(--text-2); }

/* ─── CONTACT ─── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-text h2 { margin-bottom: 16px; }
.contact-email { margin-top: 20px; }
.contact-email a {
  color: var(--blue);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.contact-email a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-success {
  display: none;
  color: #059669;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.form-success.show { display: block; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .logo { font-size: 17px; }
.footer p { font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--blue); }

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .cards-3 { grid-template-columns: 1fr; }
  .expertise-list { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
