/* =============================================
   NEPHRONEST — stylesheet
   ============================================= */

:root {
  --blue-deep: #0A2342;
  --blue-mid: #1A4A8A;
  --blue-bright: #2563EB;
  --accent: #3B82F6;
  --accent-light: #93C5FD;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --white: #FFFFFF;
  --off-white: #F0F6FF;
  --surface: #E8F0FE;
  --border: rgba(59, 130, 246, 0.2);
  --text-dark: #0A1628;
  --text-mid: #1E3A5F;
  --text-muted: #4B6A8F;
  --shadow-sm: 0 2px 12px rgba(10, 35, 66, 0.07);
  --shadow-md: 0 8px 32px rgba(10, 35, 66, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 35, 66, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utilities ─────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.highlight {
  color: var(--accent);
  position: relative;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-deep);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Navigation ────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

/* Light nav on hero, dark when scrolled */
#navbar .logo-text {
  color: var(--white);
  transition: color var(--transition);
}

#navbar .logo-icon svg circle,
#navbar .logo-icon svg path {
  transition: stroke 0.3s, fill 0.3s;
}

#navbar.scrolled .logo-text {
  color: var(--blue-deep);
}

#navbar .hamburger span {
  background: var(--white);
  transition: background 0.3s, transform 0.3s;
}

#navbar.scrolled .hamburger span {
  background: var(--blue-deep);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-svg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  /* Keep SVG crisp on both light and dark backgrounds */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

/* .logo-svg--footer {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
} */

.logo-svg--footer {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  /* Keep SVG crisp on both light and dark backgrounds */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Dark nav links when scrolled */
#navbar.scrolled .nav-link {
  color: var(--text-mid);
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  list-style: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

/* Invisible bridge that fills the gap between the nav link and dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.has-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#navbar.scrolled .dropdown {
  background: var(--white);
}

#navbar:not(.scrolled) .dropdown {
  background: var(--blue-deep);
  border-color: rgba(255, 255, 255, 0.15);
}

#navbar:not(.scrolled) .dropdown a {
  color: rgba(255, 255, 255, 0.75);
}

#navbar:not(.scrolled) .dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.has-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--accent);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: all 0.3s;
  pointer-events: none;
}

.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-deep) 0%, #0F3466 50%, #1A4A8A 100%);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.c1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.c2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 10%;
  animation-delay: 2.5s;
}

.c3 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 25%;
  animation-delay: 5s;
  opacity: 0.04;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.03);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent-light);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-actions .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.hero-phone:hover {
  color: var(--accent-light);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% {
    height: 0;
    opacity: 0;
  }

  50% {
    height: 60px;
    opacity: 1;
  }

  100% {
    height: 60px;
    opacity: 0;
  }
}

/* ── About ─────────────────────────────────── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  position: relative;
}

.about-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-main {
  grid-column: 1 / 3;
  background: var(--blue-deep);
  color: var(--white);
}

.card-secondary {
  background: var(--off-white);
  border: 1px solid var(--border);
}

.card-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue-mid) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.stat-icon {
  margin-bottom: 12px;
}

.card-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-main .card-label {
  color: var(--white);
}

.card-secondary .card-label {
  color: var(--blue-deep);
}

.card-sub {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.75;
}

.big-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.about-text {
  padding-left: 12px;
}

.about-text .btn-primary {
  margin-top: 12px;
}

/* ── Services ──────────────────────────────── */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  color: var(--blue-mid);
  gap: 8px;
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.featured-card {
  border-color: rgba(59, 130, 246, 0.4);
}

.featured-card::before {
  transform: scaleX(1);
}

/* ── Gallery ───────────────────────────────── */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--blue-deep);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.75);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 35, 66, 0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-zoom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gi-large {
  grid-row: span 2;
}

.gi-wide {
  grid-column: span 2;
}

/* ── Lightbox ──────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 15, 35, 0.96);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  animation: lbFadeIn 0.25s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 160px);
  max-height: 90vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: lbSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes lbSlideIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Contact ───────────────────────────────── */
.contact {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 12px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s;
}

a.detail-value:hover {
  color: var(--accent);
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--blue-deep);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-services a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--accent-light);
}

.footer-contact a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Scroll Animations ─────────────────────── */
/* Elements are VISIBLE by default. JS adds body.js-loaded to enable animations. */
body.js-loaded .reveal,
body.js-loaded .reveal-left,
body.js-loaded .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.js-loaded .reveal {
  transform: translateY(36px);
}

body.js-loaded .reveal-left {
  transform: translateX(-48px);
}

body.js-loaded .reveal-right {
  transform: translateX(48px);
}

body.js-loaded .reveal.visible,
body.js-loaded .reveal-left.visible,
body.js-loaded .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered children */
.services-grid .service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(2) {
  transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(3) {
  transition-delay: 0.25s;
}

.services-grid .service-card:nth-child(4) {
  transition-delay: 0.35s;
}

.gallery-grid .gallery-item:nth-child(1) {
  transition-delay: 0.05s;
}

.gallery-grid .gallery-item:nth-child(2) {
  transition-delay: 0.12s;
}

.gallery-grid .gallery-item:nth-child(3) {
  transition-delay: 0.19s;
}

.gallery-grid .gallery-item:nth-child(4) {
  transition-delay: 0.26s;
}

.gallery-grid .gallery-item:nth-child(5) {
  transition-delay: 0.33s;
}

.gallery-grid .gallery-item:nth-child(6) {
  transition-delay: 0.40s;
}

.gallery-grid .gallery-item:nth-child(7) {
  transition-delay: 0.47s;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    max-width: 500px;
  }

  .about-text {
    padding-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    color: var(--text-mid) !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--accent) !important;
    background: var(--accent-glow) !important;
  }

  .dropdown a {
    color: var(--text-mid) !important;
  }

  .dropdown a:hover {
    color: var(--accent) !important;
    background: var(--off-white) !important;
  }

  .dropdown {
    background: var(--white) !important;
    border-color: var(--border) !important;
  }

  .dropdown {
    position: static;
    display: none !important;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .has-dropdown:hover .dropdown {
    display: none !important;
  }

  .has-dropdown.open .dropdown {
    display: block !important;
    opacity: 1;
    transform: none;
    pointer-events: all;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gi-large {
    grid-row: auto;
  }

  .gi-wide {
    grid-column: auto;
  }

  .gallery-overlay {
    opacity: 1;
  }

  .lightbox-img-wrap {
    max-width: calc(100vw - 40px);
  }

  .lightbox-nav {
    position: fixed;
    bottom: 24px;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .card-main {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}
