/* ========================================
   SEALTEC PRIME — Main Stylesheet
   ======================================== */

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

:root {
  --ink: #07344E;
  --ink-soft: #0C496A;
  --teal: #0B7FC3;
  --teal-light: #1597E5;
  --teal-pale: #E7F5FF;
  --amber: #066CA8;
  --concrete: #F5F2EE;
  --concrete-dark: #E8E3DC;
  --white: #FFFFFF;
  --gray-mid: #8A9BB0;
  --gray-light: #C8D2DE;
  --body-font: 'Inter', sans-serif;
  --display-font: 'Syne', sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  animation: pageFade 0.7s ease both;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--display-font); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { font-size: 1rem; color: #3D5068; margin-bottom: 1rem; }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: var(--gray-light); }
.section-dark h2 { color: var(--white); }
.section-concrete { background: var(--concrete); }
.section-teal { background: var(--teal); color: var(--white); }
.section-teal p { color: rgba(255,255,255,0.8); }
.section-teal h2 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--teal-light); }

.link-arrow {
  font-family: var(--display-font);
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -45% auto -45% -75%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 125%; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(11,127,195,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #36AEF0, var(--teal));
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 24px 54px rgba(11,127,195,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-4px);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--teal-light);
  transform: translateY(-4px);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200,210,222,0.8);
  transition: background 0.3s, box-shadow 0.3s;
  animation: navDrop 0.7s ease both;
}
.nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 32px rgba(7,52,78,0.1);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: 0 8px 22px rgba(7,52,78,0.12);
}
.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--teal);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--ink);
}
.logo-text strong { color: var(--teal-light); }
.logo-tagline {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(7,52,78,0.72);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--teal);
  background: rgba(21,151,229,0.1);
  transform: translateY(-2px);
}
.nav-cta {
  background: linear-gradient(135deg, var(--teal-light), var(--teal)) !important;
  color: white !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #36AEF0, var(--teal)) !important;
  box-shadow: 0 14px 30px rgba(11,127,195,0.35);
}

.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(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    linear-gradient(90deg, rgba(7,52,78,0.9) 0%, rgba(7,52,78,0.74) 48%, rgba(7,52,78,0.3) 100%),
    url("https://sealtechprime.com/images/1408/22952863/sealtechhero-gClwU7B6ssSLKwZcQSeJ0g.jpeg") center / cover no-repeat;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#waterCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--teal);
  border-radius: 20px;
}
.hero-eyebrow { animation: liftIn 0.75s ease 0.1s both; }
.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title { animation: liftIn 0.8s ease 0.22s both; }
.hero-accent { color: var(--teal-light); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-sub { animation: liftIn 0.8s ease 0.34s both; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-actions { animation: liftIn 0.8s ease 0.46s both; }
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats { animation: liftIn 0.8s ease 0.58s both; }
.stat-num {
  display: block;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}
.hero-scroll span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: white; writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 60px; background: white; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--ink-soft);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.trust-items span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.trust-items .dot { color: var(--teal); }

/* ========== PROBLEM SECTION ========== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.problem-left h2 { margin-bottom: 1.5rem; }
.problem-left p:last-of-type { margin-bottom: 1.5rem; }

.damage-card {
  background: var(--concrete);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  border-left: 3px solid var(--teal);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.damage-card:hover {
  transform: translateX(10px) scale(1.02);
  background: var(--teal-pale);
  box-shadow: 0 18px 44px rgba(7,52,78,0.12);
}
.damage-icon { font-size: 1.5rem; line-height: 1; }
.damage-card h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.damage-card p { font-size: 0.85rem; margin: 0; }

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: rgba(255,255,255,0.04);
  padding: 2.5rem 2rem;
  display: block;
  position: relative;
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(21,151,229,0.35), transparent 36%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.service-card:hover {
  background: rgba(11,127,195,0.22);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
  z-index: 1;
}
.service-card:hover::before { opacity: 1; transform: scale(1); }
.service-num {
  font-family: var(--display-font);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.service-card h3 { color: white; margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin: 0; }
.card-arrow {
  position: absolute;
  top: 2rem; right: 2rem;
  color: var(--teal-light);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
}
.service-card:hover .card-arrow { opacity: 1; transform: translateX(0) scale(1.25); }
.services-cta { text-align: center; margin-top: 3rem; }

/* ========== PROCESS TIMELINE ========== */
.process-timeline {
  max-width: 720px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2rem;
  margin-bottom: 0;
}
.process-step:hover .step-dot {
  transform: scale(1.28);
  box-shadow: 0 0 0 10px rgba(21,151,229,0.12);
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--concrete);
  outline: 2px solid var(--teal);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-line {
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--teal), var(--concrete-dark));
  margin: 4px 0;
}
.step-content { padding-bottom: 3rem; }
.step-tag {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.step-content h3 { margin-bottom: 0.5rem; }

/* ========== PROJECTS PREVIEW ========== */
.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}
.project-card-stack { display: flex; flex-direction: column; gap: 1rem; }
.project-card, .project-card-stack .project-card { border-radius: var(--radius-lg); overflow: hidden; }
.project-card-large { height: 420px; }
.project-card-stack .project-card { height: 205px; }
.project-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s;
}
.project-card:hover .project-img { transform: scale(1.1) rotate(0.6deg); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 40%, transparent 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; background: linear-gradient(to top, rgba(7,52,78,0.95) 34%, rgba(11,127,195,0.2) 100%); }
.project-tag {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.project-overlay h3 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 0.75rem; }
.project-link { color: var(--teal-light); font-size: 0.85rem; font-weight: 600; }
.project-card-stack .project-overlay h3 { font-size: 0.95rem; }

/* ========== WHY US ========== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.why-left h2 { margin-bottom: 1.5rem; }
.why-feature {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.75rem;
}
.why-icon {
  width: 32px; height: 32px;
  background: var(--teal-pale);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-feature h4 { margin-bottom: 0.25rem; }
.why-feature p { margin: 0; font-size: 0.9rem; }

/* ========== AREAS ========== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.area-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: white;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.area-item:hover { background: rgba(21,151,229,0.28); transform: translateY(-4px); }
.areas-note { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }

/* ========== CTA SECTION ========== */
.cta-section { padding: 5rem 0; background: var(--ink); }
.cta-box {
  background: var(--ink-soft);
  border-radius: 16px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(21,151,229,0.26) 0%, transparent 70%);
  pointer-events: none;
}
.cta-left h2 { color: white; margin-bottom: 1rem; }
.cta-left p { color: rgba(255,255,255,0.6); margin: 0; }
.cta-right { display: flex; flex-direction: column; gap: 1rem; }
.cta-phone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cta-phone span { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; }
.cta-phone strong { font-family: var(--display-font); font-size: 1.25rem; color: white; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 38px rgba(11,127,195,0.35);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: var(--white);
  box-shadow: 0 18px 40px rgba(11,127,195,0.38);
  animation: floatPulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 26px 58px rgba(11,127,195,0.5);
  animation-play-state: paused;
}
.whatsapp-float svg {
  width: 31px;
  height: 31px;
}

/* ========== FOOTER ========== */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--display-font);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.footer-logo .brand-logo-img {
  width: 44px;
  height: 44px;
}
.footer-logo strong { color: var(--teal-light); }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-address { font-size: 0.8rem !important; }
.footer-col h4 {
  font-family: var(--display-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); margin: 0; }

/* ========== SERVICE PAGE ========== */
.page-hero {
  background: var(--ink);
  padding: 10rem 0 5rem;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

.service-detail { padding: 5rem 0; border-bottom: 1px solid var(--concrete-dark); }
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail img { width: 100%; border-radius: var(--radius-lg); }
.service-detail-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(7,52,78,0.12);
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}
.service-detail-img-placeholder:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 34px 80px rgba(7,52,78,0.2);
  filter: saturate(1.12) contrast(1.05);
}
.service-detail h2 { margin-bottom: 1rem; }
.service-detail ul {
  margin: 1.5rem 0;
  list-style: none;
}
.service-detail ul li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #3D5068;
}
.service-detail ul li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== PROJECTS PAGE ========== */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.project-item img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.4s; }
.project-item:hover img { transform: scale(1.11) rotate(0.5deg); }
.project-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92), transparent);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(8px);
  transition: transform 0.3s;
}
.project-item:hover .project-item-info { transform: translateY(0); }
.project-item-info h3 { color: white; font-size: 1rem; margin-bottom: 0.25rem; }
.project-item-info span { color: var(--teal-light); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ========== ABOUT PAGE ========== */
.about-hero-content { max-width: 680px; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { background: var(--concrete); border-radius: var(--radius-lg); padding: 2rem; }
.value-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.value-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 24px 56px rgba(7,52,78,0.12);
}
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: 0.75rem; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.contact-form { background: white; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 4px 40px rgba(0,0,0,0.08); }
.contact-form {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(7,52,78,0.12);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; font-family: var(--display-font); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--concrete-dark);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--concrete);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: white; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 { margin-bottom: 0.2rem; font-size: 0.85rem; color: var(--teal); }
.contact-detail p { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.contact-detail a { color: var(--ink); }
.contact-detail a:hover { color: var(--teal); }

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes liftIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 18px 40px rgba(11,127,195,0.38); }
  50% { transform: translateY(-5px) scale(1.06); box-shadow: 0 28px 62px rgba(11,127,195,0.52); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--concrete-dark);
  padding: 1.5rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}
.faq-question h4 { font-size: 1rem; font-weight: 600; flex: 1; }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  color: var(--teal);
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--teal); color: white; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-answer p { padding-top: 1rem; margin: 0; font-size: 0.95rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-large { height: 300px; }
  .project-card-stack { flex-direction: row; }
  .project-card-stack .project-card { height: 200px; flex: 1; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-box { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
  .service-detail-grid.reverse { direction: ltr; }
  .about-story-grid, .about-service-grid { grid-template-columns: 1fr; gap: 3rem; }
  .values-grid { grid-template-columns: 1fr; }
  .projects-masonry { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-top: 1px solid var(--concrete-dark);
    box-shadow: 0 18px 40px rgba(7,52,78,0.12);
    align-items: flex-start;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 0.85rem 1rem; border-radius: var(--radius); }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .projects-masonry { grid-template-columns: 1fr; }
  .project-card-stack { flex-direction: column; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .hero-content { padding-top: 3rem; padding-bottom: 4rem; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
