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

:root {
  --teal:       #0d9488;
  --teal-lt:    #14b8a8;
  --teal-pale:  #f0fdfa;
  --teal-mid:   #ccfbf1;
  --teal-dark:  #134e4a;
  --teal-deeper:#0a2e2c;
  --dark:       #0d1f1e;
  --text:       #1a2e2d;
  --text-lt:    #5b7c79;
  --border:     #d4f0ec;
  --white:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

em { font-style: italic; color: inherit; }

a { text-decoration: none; color: inherit; }

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes heroTextIn {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes heroPhotoIn {
  from { opacity:0; transform:scale(.95) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform:translateY(0); }
  50%       { transform:translateY(6px); }
}
@keyframes ringRotate {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}
@keyframes marqueeScroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
@keyframes dotFloat {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-12px); }
}
@keyframes revealUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes lineGrow {
  from { transform:scaleX(0); }
  to   { transform:scaleX(1); }
}
@keyframes navItemIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes overlayItemIn {
  from { opacity:0; transform:translateX(-30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes countUp {
  from { opacity:0; }
  to   { opacity:1; }
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(13,148,136,.08);
}

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

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; color: var(--text);
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-logo-img { height: 34px; width: auto; }

.nav-links {
  display: flex; gap: 2px; list-style: none;
}
.nav-links li {
  opacity: 0;
  animation: navItemIn .4s cubic-bezier(.22,.68,0,1.3) both;
}
.nav-links li:nth-child(1) { animation-delay:.1s; }
.nav-links li:nth-child(2) { animation-delay:.18s; }
.nav-links li:nth-child(3) { animation-delay:.26s; }
.nav-links li:nth-child(4) { animation-delay:.34s; }

.nav-links a {
  display: block; padding: 6px 16px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-lt);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 16px; right: 16px;
  height: 2px; border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s cubic-bezier(.22,.68,0,1.2);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .2s, background .2s;
}

/* =============================================
   MOBILE OVERLAY NAV
   ============================================= */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--teal-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .35s cubic-bezier(.4,0,.2,1);
}
.nav-overlay.open {
  opacity: 1; pointer-events: auto;
}

.overlay-close {
  position: absolute; top: 22px; right: 28px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.overlay-close span {
  position: absolute; width: 18px; height: 2px;
  background: var(--white); border-radius: 2px;
}
.overlay-close span:nth-child(1) { transform: rotate(45deg); }
.overlay-close span:nth-child(2) { transform: rotate(-45deg); }

.overlay-links {
  list-style: none; text-align: center;
}
.overlay-links li {
  opacity: 0;
}
.nav-overlay.open .overlay-links li {
  animation: overlayItemIn .4s cubic-bezier(.22,.68,0,1.2) both;
}
.nav-overlay.open .overlay-links li:nth-child(1) { animation-delay:.08s; }
.nav-overlay.open .overlay-links li:nth-child(2) { animation-delay:.15s; }
.nav-overlay.open .overlay-links li:nth-child(3) { animation-delay:.22s; }
.nav-overlay.open .overlay-links li:nth-child(4) { animation-delay:.29s; }

.overlay-links a {
  display: block; padding: 16px 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600; color: rgba(255,255,255,.85);
  letter-spacing: .02em;
  transition: color .2s;
}
.overlay-links a:hover { color: var(--teal-lt); }

.overlay-phones {
  margin-top: 32px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; opacity: 0;
}
.nav-overlay.open .overlay-phones {
  animation: overlayItemIn .4s .36s cubic-bezier(.22,.68,0,1.2) both;
}
.overlay-phones a {
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.overlay-phones a:hover { color: var(--teal-lt); }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100svh;
  padding-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* Left: text */
.hero-text {
  grid-column: 1;
  grid-row: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: heroTextIn .7s .1s cubic-bezier(.22,.68,0,1.1) both;
}
.eyebrow-line {
  display: block; width: 32px; height: 2px;
  background: var(--teal); flex-shrink: 0;
}

#hero h1 {
  margin-bottom: 32px;
  opacity: 0;
  animation: heroTextIn .8s .22s cubic-bezier(.22,.68,0,1.1) both;
}

.hero-phones {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 36px;
  opacity: 0;
  animation: heroTextIn .7s .38s cubic-bezier(.22,.68,0,1.1) both;
}
.hero-phones a {
  font-size: 1rem; font-weight: 500; color: var(--text-lt);
  transition: color .2s;
}
.hero-phones a:hover { color: var(--teal); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .04em;
  width: fit-content;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(13,148,136,.3);
  opacity: 0;
  animation: heroTextIn .7s .5s cubic-bezier(.22,.68,0,1.1) both;
}
.btn-primary:hover {
  background: var(--teal-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,.4);
}
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(4px); }

/* Right: photo + decorations */
.hero-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--white);
}

/* Large soft teal circle — photo sits on this */
.hero-circle-bg {
  position: absolute;
  width: 72%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-pale);
  border: 2px solid var(--teal-mid);
  pointer-events: none;
  z-index: 0;
}

/* Dashed rotating ring — slightly bigger than circle-bg */
.hero-ring {
  position: absolute;
  width: 82%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(13,148,136,.3);
  animation: ringRotate 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Floating dots */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  pointer-events: none;
  z-index: 3;
}
.hd1 { width:12px; height:12px; top:18%; right:12%; opacity:.6; animation: dotFloat 3.5s ease-in-out infinite; }
.hd2 { width:7px;  height:7px;  top:68%; right:8%;  opacity:.4; animation: dotFloat 4.2s .8s ease-in-out infinite; }
.hd3 { width:16px; height:16px; top:14%; left:14%;  opacity:.25; animation: dotFloat 5s 1.5s ease-in-out infinite; }

/* Circular photo */
.hero-img {
  position: relative; z-index: 2;
  width: 68%; aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.1) brightness(1.03);
  opacity: 0;
  animation: heroPhotoIn .9s .3s cubic-bezier(.22,.68,0,1.1) both;
}

/* Scroll hint */
.hero-scroll-hint {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 20px clamp(24px, 5vw, 72px);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-lt);
  opacity: 0;
  animation: heroTextIn .6s .7s ease both;
}
.scroll-arrow {
  color: var(--teal);
  animation: scrollBounce 2s 1.5s ease-in-out infinite;
}

/* =============================================
   MARQUEE BAND
   ============================================= */
.marquee-band {
  background: var(--teal);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: 24px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.marquee-track .mdot {
  color: rgba(255,255,255,.35);
  font-size: .9rem; letter-spacing: 0;
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  background: var(--white);
  padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 72px);
}

.about-container {
  max-width: 1200px; margin: 0 auto;
}

.about-header {
  margin-bottom: 64px;
}

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

.about-statement p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
}

.cert-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cert-tags span {
  padding: 6px 14px;
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .05em;
  color: var(--teal);
  transition: background .2s, color .2s;
}
.cert-tags span:hover {
  background: var(--teal);
  color: var(--white);
}

/* Timeline */
.timeline {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1.5px solid var(--teal-mid);
  padding-left: 28px;
}

.tl-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}
.tl-item.revealed { opacity: 1; transform: translateY(0); }
.tl-item:last-child { padding-bottom: 0; }

/* dot on the line */
.tl-item::before {
  content: '';
  position: absolute;
  left: -35px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.tl-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
}
.tl-icon svg {
  width: 16px; height: 16px;
  stroke: var(--teal);
}

.tl-body .tl-tag {
  display: block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 3px;
}
.tl-body h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Section tags */
.section-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
  padding: 5px 12px;
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  margin-bottom: 18px;
}
.section-tag.light {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.35);
}

/* Reveal utility */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,.68,0,1.1), transform .6s cubic-bezier(.22,.68,0,1.1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.about-statement { opacity:0; transform:translateY(24px); transition: opacity .6s .1s, transform .6s .1s; }
.about-statement.revealed { opacity:1; transform:translateY(0); }

/* =============================================
   SERVICES: Card Grid
   ============================================= */
#services {
  background: var(--teal-pale);
  padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 72px);
}

.services-container {
  max-width: 1200px; margin: 0 auto;
}

.services-header {
  margin-bottom: 56px;
}
.services-header h2 { color: var(--dark); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Last row: 2 cards centered */
.svc-card:nth-child(4),
.svc-card:nth-child(5) {
  /* will be in a 2-col subset */
}

.svc-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .3s cubic-bezier(.22,.68,0,1.3), box-shadow .3s;
  transition-delay: 0s;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,148,136,.15);
}

/* teal top bar */
.svc-card-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
.svc-card:hover .svc-card-line { transform: scaleX(1); }

.svc-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}

.svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 600;
  color: var(--teal-mid);
  line-height: 1;
}

.svc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.svc-icon svg {
  width: 20px; height: 20px;
  stroke: var(--teal);
}
.svc-card:hover .svc-icon {
  background: var(--teal);
}
.svc-card:hover .svc-icon svg { stroke: var(--white); }

.svc-card h3 {
  font-size: 1.15rem; font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.svc-card p {
  font-size: .85rem; line-height: 1.65;
  color: var(--text-lt);
}

/* stagger reveal delays */
.cards-grid .svc-card:nth-child(1) { transition-property: opacity, transform, box-shadow; }
.cards-grid .reveal:nth-child(1)  { transition-delay: .05s; }
.cards-grid .reveal:nth-child(2)  { transition-delay: .12s; }
.cards-grid .reveal:nth-child(3)  { transition-delay: .19s; }
.cards-grid .reveal:nth-child(4)  { transition-delay: .26s; }
.cards-grid .reveal:nth-child(5)  { transition-delay: .33s; }

/* =============================================
   CONTACT — dark teal
   ============================================= */
#contact {
  background: var(--teal-dark);
  padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 72px);
}

.contact-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.contact-left { display: flex; flex-direction: column; }

.contact-phone {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600; color: var(--white);
  line-height: 1.3;
  transition: color .2s;
}
.contact-phone:first-of-type { margin-top: 16px; }
.contact-phone:hover { color: var(--teal-lt); }

.contact-mail {
  display: block; margin-top: 20px;
  font-size: .95rem; color: rgba(255,255,255,.55);
  transition: color .2s;
}
.contact-mail:hover { color: var(--teal-lt); }

.contact-addr {
  margin-top: 20px;
  font-size: .85rem; line-height: 1.8;
  color: rgba(255,255,255,.4);
}

.btn-outline {
  display: inline-flex; align-items: center;
  margin-top: 32px; padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .05em;
  color: var(--white);
  width: fit-content;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.contact-map {
  height: 420px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.contact-map iframe { display: block; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--teal-deeper);
  padding: 28px clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.footer-logo { height: 30px; width: auto; opacity: .7; }
footer p {
  font-size: .78rem; color: rgba(255,255,255,.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid .svc-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Show hamburger */
  .nav-toggle { display: flex; }
  .nav-links   { display: none; }
  .nav-logo-text { display: none; }

  /* Hero stacks */
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-text {
    grid-column: 1; grid-row: 1;
    padding: 40px 24px 32px;
  }
  .hero-visual {
    grid-column: 1; grid-row: 2;
    min-height: 52vw;
    max-height: 68vw;
  }
  .hero-img { width: 72%; aspect-ratio: 1; }
  .hero-scroll-hint { grid-row: 3; padding: 16px 24px 24px; }

  /* Marquee band — no change needed on mobile */

  /* About */
  .about-body { grid-template-columns: 1fr; gap: 40px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid .svc-card:nth-child(5) {
    grid-column: auto; max-width: 100%;
  }

  /* Contact */
  .contact-container { grid-template-columns: 1fr; gap: 36px; }
  .contact-map { height: 280px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}

