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

:root {
  --teal: #01919C;
  --teal-dark: #017A82;
  --teal-light: #E0F4F5;
  --purple: #7955AC;
  --purple-light: #F0EAF7;
  --coral: #FD846F;
  --coral-light: #FFF0EC;
  --yellow: #FED058;
  --yellow-light: #FFF8E0;
  --cream: #FDF8F0;
  --cream-dark: #F5EDDE;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --white: #FFFFFF;

  /* Shadows tinted toward the brand teal instead of flat black */
  --shadow: 0 2px 14px rgba(1,45,50,0.08);
  --shadow-hover: 0 14px 34px rgba(1,45,50,0.14);
  --shadow-lift: 0 22px 48px rgba(1,45,50,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --font-display: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --topbar-h: 42px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--teal); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--purple); }

.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Fixed grain texture, adds a touch of physical warmth without being a perf cost */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== Top utility bar ========== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--topbar-h);
  background: var(--teal-dark);
  color: rgba(255,255,255,0.92);
}
.topbar-inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
}
.topbar-contact {
  display: flex; align-items: center; gap: 20px;
  font-size: 0.82rem; font-weight: 500;
}
.topbar-contact a, .topbar-contact span {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; white-space: nowrap;
}
.topbar-contact a { transition: opacity 0.2s var(--ease); }
.topbar-contact a:hover { opacity: 0.75; color: inherit; }
.topbar-social {
  display: flex; align-items: center; gap: 8px;
  padding-left: 18px; border-left: 1px solid rgba(255,255,255,0.25);
}
.topbar-social a {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15); color: var(--white);
  font-size: 0.72rem; font-weight: 700; text-decoration: none;
  transition: background 0.2s var(--ease);
}
.topbar-social a:hover { background: rgba(255,255,255,0.32); color: var(--white); }

/* ========== Header & Nav ========== */
header {
  background: transparent;
  box-shadow: none;
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(1,45,50,0.06), 0 12px 30px rgba(1,45,50,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px; max-width: 1440px; margin: 0 auto; height: 130px;
  transition: height 0.4s var(--ease);
}
header.scrolled .header-inner { height: 92px; }
.logo-link { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.logo-link:hover { color: var(--teal); }
.logo-icon { position: relative; display: inline-block; }
.logo-icon { margin-top: 8px; }
.logo-icon img { width: 280px; height: auto; display: block; transition: width 0.4s var(--ease); }
header.scrolled .logo-icon img { width: 180px; }

@keyframes logoWobble {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(12px) rotate(4deg); }
  75% { transform: translateX(-12px) rotate(-4deg); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(1,145,156,0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(1,145,156,0.5)) drop-shadow(0 0 20px rgba(121,85,172,0.2)); }
}
.logo-animated .logo-icon {
  animation:
    logoPulse 1.8s ease-in-out 3,
    logoWobble 1.5s ease-in-out 3;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  position: relative;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
nav a::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
nav a:hover::after { transform: scaleX(1); }
nav a:hover { background: var(--teal-light); color: var(--teal); }
nav a.active { background: var(--teal); color: var(--white); }
nav a.active::after { display: none; }
nav a.active:hover { background: var(--teal-dark); color: var(--white); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; padding: 4px; }

/* ========== Nav services dropdown ========== */
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
.nav-caret {
  background: none; border: none; cursor: pointer; color: inherit;
  padding: 8px 8px 8px 0; margin-left: -8px; font-size: 0.7rem;
  color: var(--text); opacity: 0.6; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-dropdown-wrap:hover .nav-caret,
.nav-dropdown-wrap.open .nav-caret { opacity: 1; }
.nav-dropdown-wrap.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 16px 10px 10px; min-width: 280px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 200;
}
.nav-dropdown a {
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  line-height: 1.3; white-space: normal;
}
.nav-dropdown a:hover { background: var(--teal-light); color: var(--teal); }

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ========== Sections ========== */
.section { padding: 84px 0; }
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800;
  margin-bottom: 12px; color: var(--teal);
}
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 56px; font-size: 1.05rem; }
.section-alt { background: var(--cream-dark); }

/* ========== Services — Minimal & Playful ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  justify-items: center;
}
.service-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 22px 14px 16px; width: 100%;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease);
  cursor: pointer;
  text-decoration: none;
  min-height: 150px;
  justify-content: center;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: inherit;
}
.service-icon {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
  border: 3px solid transparent;
  background: var(--white);
}
.service-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.service-card:hover .service-icon {
  transform: rotate(-8deg) scale(1.1);
}
.service-card h3 {
  font-size: 0.85rem; color: var(--text); font-weight: 700;
  text-align: center; line-height: 1.35;
  transition: color 0.25s var(--ease);
  max-width: 100%;
  word-break: break-word;
}
.service-card:hover h3 { color: inherit; }
.service-tagline {
  display: none;
  font-size: 0.7rem; color: var(--text-light);
  text-align: center; line-height: 1.3;
}

/* Service icon border colors cycle */
.s-col-0 .service-icon { border-color: var(--teal); }
.s-col-1 .service-icon { border-color: var(--purple); }
.s-col-2 .service-icon { border-color: var(--coral); }
.s-col-3 .service-icon { border-color: var(--yellow); }
.s-col-0:hover h3 { color: var(--teal); }
.s-col-1:hover h3 { color: var(--purple); }
.s-col-2:hover h3 { color: var(--coral); }
.s-col-3:hover h3 { color: #B89400; }

/* ========== Article Cards ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card .article-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: var(--teal); font-size: 2.5rem;
}
.article-card-body { padding: 20px; }
.article-card-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.article-card-body h3 a { color: var(--text); transition: color 0.25s var(--ease); }
.article-card-body h3 a:hover { color: var(--teal); }
.article-card-body .article-excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.article-card-body .article-date { font-size: 0.78rem; color: var(--text-light); margin-top: 8px; }

/* ========== Page Elements ========== */
.page-header {
  padding: calc(176px + var(--topbar-h)) 0 40px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 50%, var(--purple-light) 100%);
}
.page-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--teal); font-weight: 800; }
.page-header p { color: var(--text-light); margin-top: 10px; font-size: 1.05rem; max-width: 62ch; }

.breadcrumbs { margin-bottom: 18px; font-size: 0.88rem; }
.breadcrumbs a {
  color: var(--purple); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.breadcrumbs a:hover { color: var(--teal); gap: 10px; }

.article-content { max-width: 90ch; margin: 0 auto; }
.article-content p { margin-bottom: 18px; line-height: 1.85; font-size: 1.02rem; text-align: justify; }
.article-content ul, .content-list { margin: 0 0 22px 2px; list-style: none; }
.article-content ul li, .content-list li {
  margin-bottom: 10px; padding-left: 26px; position: relative; line-height: 1.7;
}
.article-content ul li::before, .content-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}

/* Reading meta strip (reading time, topic) under the article title */
.article-meta-strip {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 0.86rem; font-weight: 600; color: var(--purple);
}
.article-meta-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--purple); opacity: 0.5; }

/* Opening paragraph, set larger to draw the reader in */
.article-content .article-lede {
  font-size: 1.22rem; line-height: 1.75; color: var(--text);
  font-weight: 500; margin-bottom: 26px;
}

/* Section headings inside the article body */
.article-content h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--teal);
  margin: 44px 0 18px; line-height: 1.3;
}
.article-content h2:first-child { margin-top: 0; }

/* Numbered strategy / step sub-headings */
.article-content h3.step-heading {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  margin: 34px 0 14px;
}
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple); color: var(--white);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800;
}
.article-content .step-block:nth-of-type(4n+2) .step-num { background: var(--teal); }
.article-content .step-block:nth-of-type(4n+3) .step-num { background: var(--coral); }
.article-content .step-block:nth-of-type(4n+4) .step-num { background: #DDA82B; }

/* Small caps label preceding an example or activity list */
.article-content .eyebrow-label {
  display: inline-block; font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple);
  margin: 22px 0 10px;
}

/* Genuine quoted example, pulled out as a highlighted callout */
.article-content blockquote.pull-quote {
  margin: 18px 0 24px; padding: 20px 26px;
  background: var(--teal-light); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem; font-style: italic; color: var(--text);
  line-height: 1.7;
}

/* Closing paragraph that names the center, styled as a soft outro */
.article-content .article-closing {
  margin-top: 36px; padding: 24px 28px;
  background: var(--cream-dark); border-radius: var(--radius);
  text-align: left !important; font-size: 1rem;
}

/* Sub-headers inside service / article detail sections (e.g. "Σε ποιους απευθύνεται") */
.section > .container > h3 {
  font-size: 1.45rem; font-weight: 800; color: var(--text);
  margin-bottom: 18px; padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.service-detail-img img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); display: block;
  transition: transform 0.5s var(--ease);
}
.service-detail-img img:hover { transform: scale(1.015); }
.service-detail-text p { font-size: 1.08rem; line-height: 1.85; text-align: justify; max-width: 62ch; }

.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.benefit-item {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.benefit-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.benefit-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.85rem; font-weight: bold;
}

.cta-section { text-align: center; padding: 88px 0; }
.cta-section h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--teal); margin-bottom: 14px; }
.cta-section p { color: var(--text-light); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 13px 38px; border-radius: 50px;
  background: var(--coral); color: var(--white); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(253,132,111,0.28);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(253,132,111,0.4); color: var(--white); }

.articles-list { display: flex; flex-direction: column; gap: 20px; max-width: 1100px; margin: 0 auto; }
.articles-list > * { opacity: 1 !important; transform: none !important; }
.article-card-full {
  display: flex; gap: 24px; background: var(--white);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.article-card-full:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
  font-family: var(--font-display);
}
.article-card-full .article-card-body { padding: 0; }
.article-card-full h3 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 700; letter-spacing: 0; }
.article-card-full h3 a { color: var(--text); transition: color 0.25s var(--ease); }
.article-card-full h3 a:hover { color: var(--teal); }
.article-card-full p { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; }
.article-meta { font-size: 0.8rem; color: var(--purple); margin-top: 10px; font-weight: 600; }

/* ========== Topic Badges ========== */
.topic-badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase; margin-right: 6px;
}
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-coral { background: var(--coral-light); color: var(--coral); }
.badge-yellow { background: var(--yellow-light); color: #9B7B00; }

/* Topic-colored number circles */
.article-card-full .article-num { transition: background 0.3s var(--ease); }
.topic-teal .article-num { background: var(--teal); }
.topic-purple .article-num { background: var(--purple); }
.topic-coral .article-num { background: var(--coral); }
.topic-yellow .article-num { background: #DAA520; }

/* Topic-colored left accent border */
.article-card-full {
  border-left: 4px solid transparent;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.topic-teal { border-left-color: var(--teal); }
.topic-purple { border-left-color: var(--purple); }
.topic-coral { border-left-color: var(--coral); }
.topic-yellow { border-left-color: #DAA520; }
.article-card-full:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ========== Related Articles ========== */
.related-articles { padding: 84px 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.related-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-left: 4px solid transparent;
}
.related-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover);
  text-decoration: none; color: inherit;
}
.related-card.topic-teal { border-left-color: var(--teal); }
.related-card.topic-purple { border-left-color: var(--purple); }
.related-card.topic-coral { border-left-color: var(--coral); }
.related-card.topic-yellow { border-left-color: #DAA520; }
.related-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: var(--white);
  font-family: var(--font-display);
}
.topic-teal .related-num { background: var(--teal); }
.topic-purple .related-num { background: var(--purple); }
.topic-coral .related-num { background: var(--coral); }
.topic-yellow .related-num { background: #DAA520; }
.related-card h3 {
  font-size: 0.85rem; font-weight: 700; line-height: 1.4;
  margin-top: 6px; color: var(--text);
}
.related-card .topic-badge { margin-bottom: 4px; }

/* ========== Reading Progress Bar ========== */
#reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ========== Footer ========== */
footer {
  background: var(--text); color: rgba(255,255,255,0.8);
  padding: 56px 0 24px; margin-top: 64px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; margin-bottom: 36px;
}
footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; font-family: var(--font-display); }
footer p, footer a { font-size: 0.88rem; }
footer a { color: rgba(255,255,255,0.7); transition: color 0.25s var(--ease); }
footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.82rem; }
.footer-insurance {
  text-align: center; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0;
}
.footer-insurance p {
  font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 12px;
}
.footer-insurance img {
  height: 40px; width: auto; display: inline-block; opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.footer-insurance img:hover { opacity: 1; }

/* ========== Scroll-triggered Animations ========== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: 0.05s;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0.05s;
}
.reveal-left.visible {
  opacity: 1; transform: translateX(0);
}
.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0.05s;
}
.reveal-right.visible {
  opacity: 1; transform: translateX(0);
}
.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0.05s;
}
.reveal-scale.visible {
  opacity: 1; transform: scale(1);
}
.reveal-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.visible > * {
  opacity: 1; transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(13) { transition-delay: 0.6s; }

/* Parallax hero background */
.hero.parallax-bg::before {
  transform: translateY(var(--parallax-y, 0));
}

/* ========== Hero Split Layout ========== */
.hero-split {
  padding: calc(216px + var(--topbar-h)) 0 90px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 40%, var(--yellow-light) 100%);
}
.hero-split::before,
.hero-split::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.35; pointer-events: none; z-index: 0;
}
.hero-split::before {
  width: 380px; height: 380px; background: var(--purple-light);
  top: -140px; right: -100px;
}
.hero-split::after {
  width: 300px; height: 300px; background: var(--coral-light);
  bottom: -120px; left: -80px;
}
#confetti-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-split-inner {
  display: flex; justify-content: center;
}
.hero-split-content {
  position: relative; z-index: 1;
  max-width: 880px; width: 100%;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px 7px 14px; border-radius: 50px;
  background: var(--teal); color: var(--white); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 22px; letter-spacing: 0.2px;
  animation: badgeIn 0.7s var(--ease-spring) 0.1s both;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); animation: badgeDot 2.4s ease-in-out infinite;
}
@keyframes badgeDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes badgeIn { 0% { opacity: 0; transform: translateY(-10px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.hero-split-title {
  font-size: clamp(2.5rem, 5.4vw, 3.6rem); font-weight: 900;
  background: linear-gradient(100deg, var(--teal) 15%, var(--purple) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.12; margin-bottom: 22px; letter-spacing: -0.02em;
  animation: heroTitleIn 0.8s var(--ease) 0.15s both;
}
.hero-split-tagline {
  font-size: 1.32rem; color: var(--purple); font-weight: 700;
  margin-bottom: 10px; line-height: 1.4;
  animation: heroLineIn 0.7s var(--ease) 0.3s both;
}
.hero-split-services {
  font-size: 0.96rem; color: var(--teal); font-weight: 600;
  margin-bottom: 22px; letter-spacing: 0.2px;
  animation: heroLineIn 0.7s var(--ease) 0.4s both;
}
.hero-split-desc {
  font-size: 1.06rem; color: var(--text-light); line-height: 1.85;
  margin: 0 auto 30px; max-width: 680px; text-align: justify;
  animation: heroLineIn 0.7s var(--ease) 0.5s both;
}
.hero-split-btn {
  padding: 15px 42px; font-size: 1.05rem;
  box-shadow: 0 10px 26px rgba(1,145,156,0.32);
  animation: heroLineIn 0.7s var(--ease) 0.6s both;
}
.hero-split-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(1,145,156,0.42);
}
@keyframes heroTitleIn { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes heroLineIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }

/* ========== Service Image Cards ========== */
.service-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card-img {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none; color: inherit;
}
.service-card-img:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lift);
  text-decoration: none; color: inherit;
}
.sci-img {
  height: 200px; overflow: hidden; background: var(--teal-light);
}
.sci-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.service-card-img:hover .sci-img img { transform: scale(1.08); }
.sci-body { padding: 22px 24px 26px; }
.sci-body h3 { font-size: 1.15rem; color: var(--teal); margin-bottom: 8px; font-weight: 800; }
.sci-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.sci-link {
  font-size: 0.86rem; font-weight: 700; color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.25s var(--ease);
}
.sci-link::after { content: '→'; transition: transform 0.25s var(--ease); }
.service-card-img:hover .sci-link { gap: 8px; }
.service-card-img:hover .sci-link::after { transform: translateX(2px); }

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  padding: 84px 0; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255,255,255,0.07); top: -220px; right: -120px; pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.06); bottom: -180px; left: -80px; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btn { background: var(--yellow); color: var(--text); font-size: 1.1rem; padding: 15px 46px; box-shadow: 0 10px 26px rgba(0,0,0,0.16); }
.cta-btn:hover { background: var(--white); color: var(--teal); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.2); }

/* ========== Blog Layout ========== */
.blog-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start;
}
.blog-featured {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.blog-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.bf-img {
  height: 260px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-light), var(--purple-light)); color: var(--teal); font-size: 3.5rem;
}
.bf-body { padding: 30px 34px; }
.bf-date { font-size: 0.8rem; color: var(--purple); font-weight: 700; display: block; margin-bottom: 10px; }
.bf-body h3 { font-size: 1.32rem; margin-bottom: 14px; line-height: 1.4; font-weight: 800; }
.bf-body h3 a { color: var(--text); transition: color 0.25s var(--ease); }
.bf-body h3 a:hover { color: var(--teal); }
.bf-body p { font-size: 0.94rem; color: var(--text-light); line-height: 1.75; margin-bottom: 18px; }
.bf-link { font-weight: 700; color: var(--purple); font-size: 0.9rem; transition: color 0.25s var(--ease); }
.bf-link:hover { color: var(--teal); }

.blog-sidebar { }
.blog-sidebar h4 { font-size: 1.1rem; color: var(--teal); margin-bottom: 18px; font-weight: 800; }
.bs-item {
  display: flex; gap: 14px; align-items: center;
  padding: 15px 18px; background: var(--white); border-radius: var(--radius-sm);
  margin-bottom: 10px; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); text-decoration: none; color: inherit;
}
.bs-item:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); text-decoration: none; color: inherit; }
.bs-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light); font-size: 1.1rem;
}
.bs-title { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.bs-date { display: block; font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }
.bs-all {
  display: block; text-align: center; padding: 12px; font-weight: 700;
  color: var(--purple); font-size: 0.9rem; margin-top: 4px;
  transition: color 0.25s var(--ease);
}
.bs-all:hover { color: var(--teal); }

/* ========== Chatbot ========== */
#chat-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 22px rgba(1,145,156,0.35);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease); user-select: none;
}
#chat-fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(1,145,156,0.45); }
#chat-fab.open { transform: scale(0); opacity: 0; pointer-events: none; }

#chat-widget {
  position: fixed; bottom: 24px; left: 24px; z-index: 998;
  width: 340px; height: 460px; border-radius: 20px;
  background: var(--white); box-shadow: 0 20px 56px rgba(1,45,50,0.22);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.9) translateY(20px); opacity: 0;
  pointer-events: none; transition: all 0.35s var(--ease-spring);
  transform-origin: bottom left;
}
#chat-widget.open {
  transform: scale(1) translateY(0); opacity: 1;
  pointer-events: auto;
}

#chat-hdr {
  background: var(--teal); color: var(--white); padding: 14px 18px;
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem;
}
#chat-hdr-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4ADE80; display: inline-block; animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
#chat-hdr-close {
  margin-left: auto; cursor: pointer; font-size: 1.3rem;
  opacity: 0.8; transition: opacity 0.25s var(--ease); line-height: 1;
}
#chat-hdr-close:hover { opacity: 1; }

#chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream);
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.5; animation: msgIn 0.35s var(--ease-spring);
}
@keyframes msgIn { 0% { opacity: 0; transform: translateY(8px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.bot-msg {
  align-self: flex-start; background: var(--white);
  border-bottom-left-radius: 4px; box-shadow: var(--shadow);
}
.user-msg {
  align-self: flex-end; background: var(--teal); color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-tags {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0;
  align-self: flex-start; max-width: 100%;
}
.chat-tag {
  padding: 6px 14px; border-radius: 50px; font-size: 0.78rem;
  background: var(--white); color: var(--text); cursor: pointer;
  border: 2px solid var(--teal-light); transition: all 0.25s var(--ease); user-select: none;
}
.chat-tag:hover { border-color: var(--teal); }
.chat-tag.selected {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}
.chat-tag-done {
  width: 100%; padding: 9px; margin-top: 6px; border: none;
  border-radius: 50px; background: var(--purple); color: var(--white);
  font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: background 0.25s var(--ease);
}
.chat-tag-done:hover { background: var(--teal); }

#chat-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  background: var(--white); border-top: 1px solid var(--cream-dark);
}
#chat-input {
  flex: 1; border: none; outline: none; font-size: 0.88rem;
  padding: 8px 4px; font-family: inherit; color: var(--text);
}
#chat-input::placeholder { color: var(--text-light); }
#chat-send {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--teal); color: var(--white); font-size: 1.1rem;
  cursor: pointer; transition: transform 0.25s var(--ease-spring); flex-shrink: 0;
}
#chat-send:hover { transform: scale(1.1); }
#chat-send:active { transform: scale(0.94); }

/* ========== WebGL Stripe Scene (contact -> footer) ========== */
.stripe-scene {
  position: relative;
  isolation: isolate;
}
#stripe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ========== Contact Section ========== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.contact-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.contact-map iframe {
  width: 100%; height: 340px; border: 0; display: block;
}
.map-dir-btn {
  display: block; padding: 15px; text-align: center;
  background: var(--teal); color: var(--white); font-weight: 700;
  font-size: 0.95rem; transition: background 0.25s var(--ease); text-decoration: none;
}
.map-dir-btn:hover { background: var(--teal-dark); color: var(--white); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-block {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 19px 20px; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ci-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ci-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: var(--teal); font-size: 1.2rem;
}
.ci-block h4 { font-size: 0.96rem; color: var(--teal); margin-bottom: 5px; font-weight: 800; }
.ci-block p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.ci-block a { color: var(--text-light); }
.ci-block a:hover { color: var(--purple); }

/* ========== Space Photo Gallery ========== */
.space-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.space-gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  line-height: 0;
}
.space-gallery-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.space-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ========== Team Member Layout ========== */
.team-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-bottom: 44px;
  align-items: start;
}
.team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.team-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ========== Footer extras ========== */
.footer-logo { margin-bottom: 16px; }
.footer-logo img { width: 180px; height: auto; display: block; filter: brightness(0) invert(1); }
.footer-contact-list { margin-top: 14px; }
.footer-contact-list p { font-size: 0.86rem; margin-bottom: 6px; color: rgba(255,255,255,0.75); }
.footer-contact-list a { color: rgba(255,255,255,0.75); }
.footer-contact-list a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 0.85rem; font-weight: 700; transition: background 0.25s var(--ease), transform 0.25s var(--ease-spring);
  text-decoration: none;
}
.footer-social a:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ========== Accessibility: respect reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important;
  }
  /* The brief brand-intro logo animation and confetti rain are an intentional
     signature touch the client wants regardless of the OS motion preference. */
  .logo-animated .logo-icon {
    animation: logoPulse 1.8s ease-in-out 3, logoWobble 1.5s ease-in-out 3 !important;
  }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  :root { --topbar-h: 34px; }
  .topbar-inner { padding: 0 16px; gap: 12px; }
  .topbar-contact { gap: 12px; font-size: 0.74rem; }
  .topbar-contact .topbar-email, .topbar-contact .topbar-address { display: none; }
  .topbar-social { padding-left: 10px; gap: 6px; }
  .topbar-social a { width: 21px; height: 21px; font-size: 0.62rem; }

  .menu-toggle { display: block; }
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow); gap: 4px; }
  nav.open { display: flex; }
  nav a { width: 100%; }

  .nav-dropdown-wrap { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-dropdown-wrap > a { width: 100%; }
  .nav-caret { position: absolute; right: 4px; top: 4px; padding: 8px; margin: 0; }
  .nav-dropdown {
    position: static; transform: none; box-shadow: none;
    grid-template-columns: 1fr; min-width: auto; width: 100%; box-sizing: border-box;
    max-height: 0; overflow: hidden; padding: 0 16px; margin-top: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  }
  .nav-dropdown-wrap.open .nav-dropdown { max-height: 600px; padding: 6px 16px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .service-card { padding: 14px 8px 12px; min-height: 130px; }
  .service-icon { width: 64px; height: 64px; }
  .service-card h3 { font-size: 0.75rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header { padding: calc(148px + var(--topbar-h)) 0 32px; }
  .page-header h1 { font-size: 1.5rem; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-card-full { flex-direction: column; align-items: flex-start; padding: 20px; }
  .article-card-full .article-num { width: 36px; height: 36px; font-size: 1rem; }
  .header-inner { position: relative; height: 96px; }
  .logo-icon img { width: 190px; }
  header.scrolled .header-inner { height: 76px; }
  header.scrolled .logo-icon img { width: 140px; }

  .hero-split { padding: calc(130px + var(--topbar-h)) 0 56px; }
  .hero-split-title { font-size: 2.1rem; }
  .hero-split-desc { max-width: 100%; }
  .hero-split-tagline { font-size: 1.1rem; }

  .service-cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .sci-img { height: 180px; }

  .blog-layout { grid-template-columns: 1fr; gap: 24px; }
  .blog-layout .reveal,
  .blog-layout .reveal-left,
  .blog-layout .reveal-right { opacity: 1 !important; transform: none !important; }
  .bf-img { height: 180px; }
  .bf-body { padding: 20px; }
  .bf-body h3 { font-size: 1.1rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-map iframe { height: 240px; }

  .related-grid { grid-template-columns: 1fr; }
  .related-articles { padding: 48px 0; }

  .team-member { grid-template-columns: 1fr; gap: 16px; }
  .team-photo img { height: auto; max-height: 320px; }

  .articles-list { max-width: 100%; }
  .service-card.reveal,
  .services-grid.reveal-stagger > *,
  .blog-layout .blog-featured,
  .blog-layout .blog-sidebar,
  .articles-list .reveal-stagger > * { opacity: 1 !important; transform: none !important; }

  .cta-banner { padding: 56px 0; }
}
