/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Navbar ── */
#site-header {
  background: rgba(255,255,255,0.0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}
#logo-text { transition: color 0.4s ease; }
#site-header:not(.scrolled) #logo-text { color: #1e293b; }
#site-header.scrolled #logo-text { color: #1e293b; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(13, 148, 136, 0.45) 50%,
    rgba(15, 23, 42, 0.65) 100%
  );
}
.hero-tagline { opacity: 0; transform: translateY(16px); animation: fadeUp 0.8s 0.3s ease forwards; }
.hero-headline { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s 0.5s ease forwards; }
.hero-sub { opacity: 0; transform: translateY(16px); animation: fadeUp 0.8s 0.7s ease forwards; }
.hero-cta { opacity: 0; transform: translateY(16px); animation: fadeUp 0.8s 0.9s ease forwards; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d9488;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0d9488;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-cta:hover {
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 0.5rem;
}
.section-title { line-height: 1.15; }
.section-desc { line-height: 1.7; }

/* ── Service Cards ── */
.service-card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
  border-color: #ccfbf1;
}

/* ── Input Fields ── */
.input-field {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.input-field:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.input-field::placeholder { color: #94a3b8; }

/* ── Gallery ── */
.gallery-item { overflow: hidden; border-radius: 1rem; }
.gallery-img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ── Testimonial Cards ── */
.testimonial-card { transition: transform 0.25s ease; }
.testimonial-card:hover { transform: translateY(-3px); }

/* ── Mobile Menu ── */
.mobile-nav-link {
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: #0d9488; }

/* ── Reveal animations (progressive enhancement) ── */
[data-reveal] {
  opacity: 1;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-headline { font-size: 2.75rem; }
  .hero-sub { font-size: 1.05rem; }
  .section-title { font-size: 2.25rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline { font-size: 4rem; }
}
