/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a2744;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --midnight: #0a2540;
  --midnight-light: #143a5c;
  --mint: #5eead4;
  --mint-dark: #2dd4bf;
  --mint-pale: #e0f7f3;
  --slate: #334155;
  --slate-light: #64748b;
  --snow: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(10,37,64,.08);
  --shadow: 0 4px 24px rgba(10,37,64,.10);
  --shadow-lg: 0 12px 48px rgba(10,37,64,.14);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--slate-light); }

/* ── Utility ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--midnight);
  background: var(--mint-pale);
  border: 1px solid var(--mint);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.section-title { margin-bottom: 16px; color: var(--midnight); }
.section-subtitle { max-width: 560px; margin-bottom: 48px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--midnight);
  border-color: var(--mint);
}
.btn-primary:hover { background: var(--mint-dark); border-color: var(--mint-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-secondary:hover { border-color: var(--mint); color: var(--mint); }
.btn-outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}
.btn-outline:hover { background: var(--midnight); color: var(--white); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,37,64,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94,234,212,.12);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo span { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--mint);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--mint) !important;
}
.nav-phone::after { display: none !important; }
.nav-phone:hover { color: var(--mint-dark) !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--midnight);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; color: rgba(255,255,255,.85); }
  .nav-phone { font-size: 1rem; }
}

/* ── Hero (Split) ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--midnight);
  overflow: hidden;
  position: relative;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(94,234,212,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(94,234,212,.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { padding: 40px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(94,234,212,.12);
  border: 1px solid rgba(94,234,212,.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.hero-badge svg { flex-shrink: 0; }
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint);
  position: relative;
}
.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-accent {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 120px; height: 120px;
  background: var(--mint);
  border-radius: var(--radius);
  z-index: -1;
  opacity: .3;
}
.hero-float-card {
  position: absolute;
  bottom: 24px; left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-float-icon {
  width: 44px; height: 44px;
  background: var(--mint-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-icon svg { color: var(--midnight); }
.hero-float-text { font-size: .85rem; font-weight: 600; color: var(--midnight); }
.hero-float-sub { font-size: .75rem; color: var(--slate-light); margin-top: 2px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; padding: 40px 0 0; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: 1; max-width: 500px; margin: 0 auto; }
  .hero-float-card { left: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Services ─────────────────────────────────────────────── */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--snow);
  border: 1px solid rgba(10,37,64,.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--mint-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--mint); }
.service-icon svg { color: var(--midnight); transition: var(--transition); }
.service-card:hover .service-icon svg { color: var(--midnight); }
.service-card h3 { margin-bottom: 12px; color: var(--midnight); }
.service-card p { font-size: .925rem; color: var(--slate-light); line-height: 1.7; }

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

/* ── About ────────────────────────────────────────────────── */
.about { background: var(--snow); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
}
.about-img:nth-child(2) { margin-top: 32px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content .section-label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--slate-light); margin-bottom: 16px; line-height: 1.8; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 36px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--midnight);
}
.about-feature svg { color: var(--mint-dark); flex-shrink: 0; }

@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-images { max-width: 480px; }
}

/* ── Why Choose ───────────────────────────────────────────── */
.why {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 50%, rgba(94,234,212,.07) 0%, transparent 70%);
  pointer-events: none;
}
.why .section-label { background: rgba(94,234,212,.12); border-color: rgba(94,234,212,.3); color: var(--mint); }
.why .section-title { color: var(--white); }
.why .section-subtitle { color: rgba(255,255,255,.6); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.why-card-icon {
  width: 64px; height: 64px;
  background: rgba(94,234,212,.12);
  border: 1px solid rgba(94,234,212,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.why-card-icon svg { color: var(--mint); }
.why-card h3 { color: var(--white); margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; }
.why-card p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.7; }

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

/* ── Projects ─────────────────────────────────────────────── */
.projects { background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay h3 { color: var(--white); margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.project-overlay p { font-size: .85rem; color: rgba(255,255,255,.7); }

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

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(94,234,212,.1) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.65); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-top: 28px;
  justify-content: center;
}
.cta-phone:hover { color: var(--mint-dark); }

/* ── Contact ──────────────────────────────────────────────── */
.contact { background: var(--snow); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--slate-light); margin-bottom: 32px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--mint-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { color: var(--midnight); }
.contact-item-text strong { display: block; font-size: .9rem; color: var(--midnight); margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { font-size: .9rem; color: var(--slate-light); }
.contact-item-text a:hover { color: var(--mint-dark); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
  background: #e2e8f0;
  position: relative;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,37,64,.06);
}
.contact-form-wrap h3 { margin-bottom: 6px; }
.contact-form-wrap > p { font-size: .9rem; color: var(--slate-light); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--midnight);
  background: var(--snow);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(94,234,212,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { margin-top: 4px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--mint-pale);
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--midnight);
  margin-top: 16px;
}
.form-success.show { display: flex; }

@media (max-width: 960px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { order: -1; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--midnight);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; margin-top: 16px; line-height: 1.7; max-width: 300px; }
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mint);
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer ul a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .825rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--mint); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Scroll Reveal (progressive enhancement) ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
  .reveal-delay-4 { transition-delay: .4s; }
}

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--midnight);
  border: 2px solid var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 50;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mint); }
.back-to-top svg { color: var(--mint); transition: var(--transition); }
.back-to-top:hover svg { color: var(--midnight); }
