/* Legacy variable aliases — mapped to design system tokens in variables.css */
:root {
  --navy: var(--brand-teal);
  --navy-light: var(--brand-teal-light);
  --gold: var(--brand-teal-light);
  --gold-light: var(--brand-accent);
  --gold-pale: #e8f5f3;
  --white: var(--white);
  --off-white: var(--off-white);
  --text-dark: var(--text-primary);
  --text-mid: var(--text-secondary);
  --text-light: var(--text-muted);
  --blue-accent: var(--brand-accent);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

  /* HEADER + NAV */
  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
  }
  .site-header nav,
  nav.nav {
    background: rgba(10, 20, 36, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    height: 76px;
    width: 100%;
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    height: 100%;
  }
  .nav-logo { display: flex; align-items: center; gap: 1rem; }

.nav-logo img{
    height: 56px;
    width: auto;
    filter: brightness(1.3) contrast(1.1) drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.si-text {
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.nav-name {
    color: var(--brand-accent-glow, #1dd5c5);
    background: rgba(29, 213, 197, 0.08);
    border: 1px solid rgba(29, 213, 197, 0.22);
    padding: 6px 18px;
    border-radius: 25px;
    font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-block;
    white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
  .nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none; font-size: 0.95rem; font-weight: 400;
    transition: color 0.2s; position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; right: 0; left: 0;
    height: 1px; background: var(--gold); transform: scaleX(0);
    transition: transform 0.3s;
  }
  .nav-links a:hover { color: var(--gold-light); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta {
    background: linear-gradient(135deg, #0fb9a8, #0b6b63);
    color: #fff;
    padding: 0.58rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: var(--font-body, 'Heebo', sans-serif);
    transition: all 0.22s ease;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(15, 185, 168, 0.25);
  }
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 185, 168, 0.35);
  }
  .nav-logos {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-logos img {
    height: 28px;
    width: auto;
  }

  /* Hamburger Menu */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ── Hero entrance animation ───────────── */
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-name,
    .hero-sub,
    .hero-btns,
    .hero-image-frame {
      animation: none !important;
    }
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, #0e2540 55%, #142a4a 100%);
    display: flex; align-items: center;
    padding: 130px 4rem 5rem;
    position: relative; overflow: hidden;
  }
  /* hero-logos — single clean definition below */
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(37,99,168,0.15) 0%, transparent 50%);
  }
  .hero-grid-pattern {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; z-index: 1;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(180,154,86,0.1); border: 1px solid rgba(180,154,86,0.25);
    color: var(--gold-light); padding: 0.45rem 1.2rem; border-radius: 100px;
    font-size: 0.85rem; font-weight: 500; margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
    animation: heroFadeUp 0.7s ease-out 0.05s both;
  }
  .hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
  h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--white); line-height: var(--leading-tight); margin-bottom: 1.2rem;
    font-weight: 900; letter-spacing: -0.5px;
  }
  h1 span { color: var(--brand-accent); }

  /* Hero heading — split into name + title for independent contrast control */
  .hero-heading {
    margin-bottom: 1.4rem;
  }
  .hero-name {
    display: block;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    background: linear-gradient(160deg, #ffffff 0%, #c8f0ed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeUp 0.7s ease-out 0.25s both;
  }
  .hero-title {
    display: block;
    color: var(--brand-accent, #0fb9a8);
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
    font-weight: 700;
    line-height: 1.4;
    opacity: 0.97;
  }
  .hero-sub {
    margin-bottom: 2rem;
    max-width: 520px;
    animation: heroFadeUp 0.7s ease-out 0.38s both;
  }
  .hero-sub-lead {
    color: rgba(255,255,255,0.92);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.75;
    margin: 0 0 0.65rem;
  }
  .hero-sub-body {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
  }
  .hero-btns {
    display: flex; gap: 1.2rem; flex-wrap: wrap;
    animation: heroFadeUp 0.7s ease-out 0.5s both;
  }
.btn-primary {
  background: linear-gradient(135deg, #13d4c0 0%, #0a5e57 100%);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-body, 'Heebo', sans-serif);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(15, 185, 168, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 52px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(15, 185, 168, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.14);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(15, 185, 168, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}
  .hero-stats {
    display: flex; gap: 2rem; margin-top: 2.25rem;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.75rem;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
    font-size: 2rem; font-weight: 900; color: var(--brand-accent, #0fb9a8);
  }
  .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.3rem; letter-spacing: 0.01em; }

  .hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* Teal atmosphere glow — sits behind the portrait */
  .hero-image-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(14, 154, 141, 0.22) 0%, transparent 68%);
    filter: blur(72px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
  }
  .hero-image-frame {
    position: relative;
    width: 440px;
    height: auto;
    margin-top: -32px;   /* upward lift — margin keeps transform clean for animation */
    z-index: 1;
    animation: heroFadeUp 0.9s ease-out 0.15s both;
  }
  .hero-img {
    width: 420px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s ease, filter 0.4s ease;
  }
  .hero-image-frame:hover .hero-img {
    transform: translateY(-12px);
    filter:
      drop-shadow(0 32px 56px rgba(0, 0, 0, 0.32))
      drop-shadow(0 0 88px rgba(14, 154, 141, 0.32));
  }
  .hero-logos {
    position: absolute;
    bottom: 36px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.hero-logos img {
    height: 56px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
  /* SECTION COMMON */
  section { padding: var(--space-section) 4rem; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-label {
    font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 0.18em;
    color: var(--brand-accent); text-transform: uppercase; margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 900; color: var(--text-primary); line-height: var(--leading-tight);
    margin-bottom: 1.2rem;
  }
  .section-title .accent { color: var(--brand-accent); }
  .calc-title-white { color: #ffffff; }
  .section-desc {
    font-size: var(--text-md); color: var(--text-secondary);
    line-height: var(--leading-loose); max-width: 680px;
  }

/* ABOUT */

.about {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #f7faf9 0%, #eef3f2 100%);
  overflow: hidden;
}

.about .section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: center;
  direction: ltr;
}

.about-visual {
  width: 100%;
}

.about-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.16);
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  direction: rtl;
  max-width: 100%;
}

.about-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(12,92,85,0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-title {
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--brand-navy, #071e36);
  margin-bottom: 20px;
}

.about-title-accent {
  color: var(--gold);
}

.about-lead {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  max-width: 520px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 4px;
}

.about-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(12,92,85,0.10);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.about-cta {
  margin-top: 28px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 16px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  box-shadow: 0 14px 30px rgba(8, 34, 61, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.about-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(8, 34, 61, 0.24);
}

@media (max-width: 900px) {
  .about {
    padding: 64px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    direction: rtl;
  }

  .about-visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-img-wrap {
    height: 300px;
    border-radius: 18px;
  }

  .about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .about-content {
    direction: rtl;
    text-align: right;
  }

  .about-body p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 48px 0;
  }

  .about-visual {
    max-width: 100%;
  }

  .about-img-wrap {
    height: 240px;
    border-radius: 14px;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-cta {
    margin-top: 20px;
  }
}

/* ================================
   SERVICES
================================ */

.services {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(14, 154, 141, 0.18), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(8, 34, 61, 0.22), transparent 30%),
    linear-gradient(90deg, #0f6c65 0%, #0b3d59 45%, #0a2c4c 100%);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.28;
  pointer-events: none;
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04), transparent 42%);
  pointer-events: none;
}

.services-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  pointer-events: none;
}

.services-inner {
  position: relative;
  z-index: 2;
}

.services-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.25rem;
}

.services-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #74e2d5;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.services-title {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #fff;
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  font-weight: 900;
}

.services-title .accent {
  color: #35d6c6;
}

.services-subtitle {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 50px auto 0;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(53, 214, 198, 0.12) 0%,
    rgba(255,255,255,0) 42%,
    rgba(8, 34, 61, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #35d6c6, #7ee6da);
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(53, 214, 198, 0.24);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(53, 214, 198, 0.10);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  border-color: rgba(53, 214, 198, 0.22);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(53, 214, 198, 0.10);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.55rem;
  background: linear-gradient(135deg, #0b2d4c 0%, #0f6c65 100%);
  color: #ffffff;
  box-shadow:
    0 14px 26px rgba(8, 34, 61, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 18px 34px rgba(8, 34, 61, 0.26),
    0 0 0 8px rgba(53, 214, 198, 0.08);
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.26rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--brand-navy, #071e36);
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
}

.service-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-mid);
  flex-grow: 1;
}

.service-link {
  margin-top: 1.35rem;
  padding-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #0f6c65;
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-link {
  gap: 0.7rem;
  color: var(--navy);
}

.services-divider {
  width: 72px;
  height: 2px;
  margin: 3rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 198, 0.9), transparent);
  opacity: 0.95;
}

.services-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.services-cta-text {
  margin-bottom: 1rem;
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
}

.services-cta-text strong {
  color: #ffffff;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 230px;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #20c9b7 0%, #139f92 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(53, 214, 198, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.24),
    0 8px 24px rgba(53, 214, 198, 0.22);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .services {
    padding: 84px 0;
  }

  .services-header {
    margin-bottom: 2.2rem;
  }

  .services-title {
    font-size: 29px;
  }

  .services-subtitle {
    font-size: 0.97rem;
    line-height: 1.8;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .service-card {
    min-height: unset;
    padding: 1.45rem 1.2rem 1.25rem;
    border-radius: 20px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 1.35rem;
  }

  .service-card h3 {
    font-size: 1.08rem;
  }

  .service-card p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .services-cta-btn {
    width: 100%;
  }
}

  /* LECTURES — premium rebuild */
  .lectures {
    background: #f8fafb;
    padding: clamp(64px, 9vw, 100px) 0;
  }

  .lectures-header {
    margin-bottom: 2.5rem;
  }

  .lectures-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2.75rem;
  }

  .lectures-trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #4a5a6a);
  }

  .lectures-trust-icon {
    font-size: 1.1rem;
    line-height: 1;
  }

  .lectures-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .lecture-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.16);
  }

  .lecture-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft-bg, #f4f7f9);
  }

  .lecture-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
  }

  .lecture-card:hover .lecture-card-img img {
    transform: scale(1.05);
  }

  .lectures-cta-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--white, #fff);
    border-radius: 18px;
    border: 1px solid rgba(11, 107, 99, 0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    flex-wrap: wrap;
  }

  .lectures-cta-copy {
    flex: 1;
    color: var(--text-primary, #071e36);
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.6;
    min-width: 200px;
    margin: 0;
  }

  .lectures-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--brand-teal, #0b6b63), var(--brand-accent, #0fb9a8));
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-body, 'Heebo', sans-serif);
    white-space: nowrap;
    transition: all 0.22s ease;
    box-shadow: 0 6px 20px rgba(11, 107, 99, 0.28);
  }

  .lectures-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(11, 107, 99, 0.36);
  }

  /* Legacy alias kept for backward compat */
  .lectures-photos { display: none; }

/* ================================
   CONTACT — PREMIUM REDESIGN
   ================================ */
.contact {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(11, 107, 99, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(15, 185, 168, 0.08) 0%, transparent 40%),
    linear-gradient(170deg, #061a2e 0%, #08293f 40%, #0a3b4a 100%);
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
}

.contact .section-inner {
  position: relative;
  z-index: 1;
}

.contact .section-title {
  color: #fff;
  margin-bottom: 0.6rem;
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
}

.contact .section-label {
  color: var(--brand-accent, #0fb9a8);
}

.contact-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.75rem;
  max-width: 1100px;
  margin-inline: auto;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 460px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-item span,
.contact-item a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--brand-accent, #0fb9a8);
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(15, 185, 168, 0.12), rgba(11, 107, 99, 0.18));
  border: 1px solid rgba(15, 185, 168, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-item:hover .contact-item-icon {
  transform: scale(1.05);
}

/* Form card */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.06);
  padding: 2.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: #fff;
  font-size: 0.96rem;
  font-family: var(--font-body, 'Heebo', sans-serif);
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(15, 185, 168, 0.7);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(15, 185, 168, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-family: var(--font-body, 'Heebo', sans-serif);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-select option {
  background: #0b2535;
  color: #fff;
}

.form-select:focus {
  outline: none;
  border-color: rgba(15, 185, 168, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 185, 168, 0.1);
}

.form-submit {
  background: linear-gradient(135deg, #0fb9a8 0%, #0b6b63 100%);
  color: #fff;
  border: none;
  padding: 1.05rem 1.5rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  font-family: var(--font-body, 'Heebo', sans-serif);
  transition: all 0.25s ease;
  box-shadow: 0 12px 32px rgba(15, 185, 168, 0.25);
  width: 100%;
  letter-spacing: 0.02em;
  min-height: 52px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 185, 168, 0.32);
}

.form-submit:active {
  transform: translateY(0);
}

/* Contact form validation */
.contact-form .input-invalid {
  border-color: #ff7b7b !important;
  box-shadow: 0 0 0 2px rgba(255, 123, 123, 0.2);
}

.contact-form .input-error {
  display: block;
  font-size: 0.78rem;
  color: #ff7b7b;
  margin-top: 0.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Post-submit success state */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
  animation: calcFade 0.4s ease;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.form-success h3 {
  color: var(--white, #fff);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.form-success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full, 999px);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.form-success-btn:hover {
  transform: translateY(-2px);
}

.form-success-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.form-success-btn--email {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-success-btn--reset {
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
}

.form-success-btn--reset:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: none;
}

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-info p {
    max-width: 100%;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 1.25rem;
    border-radius: 18px;
  }
}

/* FOOTER */
.site-footer {
  background: #060e1a;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 4rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-name {
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 1.08rem;
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  letter-spacing: 0.02em;
}

.footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

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

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* SECONDARY BUTTON */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body, 'Heebo', sans-serif);
  transition: all 0.25s ease;
  min-height: 52px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* ── ACCESSIBILITY: Focus States ───────────── */
*:focus-visible {
  outline: 3px solid rgba(15, 185, 168, 0.55);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 185, 168, 0.55);
  outline-offset: 2px;
}

/* Skip to content for accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--brand-accent, #0fb9a8);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================
   REVIEWS / TESTIMONIALS
================================ */

.reviews {
  background: linear-gradient(160deg, #071e36 0%, #0b3940 50%, #0b6b63 100%);
  padding: clamp(72px, 9vw, 112px) 0;
  position: relative;
  overflow: visible;
}
/* clip only the decorative grid pattern, not the widget */
.reviews::before {
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
  pointer-events: none;
}

.reviews .section-inner {
  position: relative;
  z-index: 1;
}

.reviews .section-label {
  color: var(--brand-accent, #0fb9a8);
  text-align: center;
}

.reviews-title {
  color: #ffffff;
  text-align: center;
}

.reviews-sub {
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(15, 185, 168, 0.3);
  transform: translateY(-4px);
}

.review-stars {
  color: #f4c430;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}

.review-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.97rem;
  line-height: 1.85;
  font-style: italic;
  flex: 1;
  margin: 0;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.review-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
}

.review-role {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.reviews-summary__glogo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.reviews-summary__stars {
  color: #f4c430;
  font-size: 1rem;
  letter-spacing: 1px;
}
.reviews-summary__score {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.reviews-summary__divider {
  color: rgba(255,255,255,0.35);
}
.reviews-summary__count {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}

.reviews-cta {
  text-align: center;
}
.reviews-cta-link {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  transition: color 0.18s, border-color 0.18s;
}
.reviews-cta-link:hover {
  color: #fff;
  border-color: var(--brand-accent, #0fb9a8);
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    /* hide scrollbar but keep scroll functionality */
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .reviews-sub {
    font-size: 0.97rem;
    margin-bottom: 2rem;
  }
}

/* ===== MOBILE BUG FIXES ===== */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  section {
    padding: 64px 18px;
  }

  .section-inner {
    max-width: 100%;
  }

  .section-title {
    font-size: 1.9rem;
    line-height: 1.25;
    text-align: center;
  }

  .section-label,
  .section-desc,
  .calculators-intro,
  .calculators-disclaimer {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }

  /* NAV */
  .site-header nav,
  nav.nav {
    height: 64px;
  }
  .header-inner {
    padding: 0 12px;
    gap: 10px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(10, 20, 36, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }

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

  .nav-links a {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-logo {
    gap: 8px;
    min-width: 0;
  }

  .nav-name {
    font-size: 0.82rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .nav-logos {
    gap: 6px;
  }

  .nav-logos img {
    height: 22px;
    width: auto;
  }

  .si-text {
    display: none;
  }

  .nav-cta {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding: 96px 18px 42px;
  }


  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-image-wrap {
    order: 1;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-wrap::before {
    width: 280px; height: 280px;
    filter: blur(48px);
  }

  .hero-image-frame {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto -10px;
    transform: none;
    animation: none;  /* no fade-up on mobile — avoids layout jank */
  }

  .hero-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
    transition: none;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-sub { max-width: 100%; }
  .hero-sub-lead { font-size: 1rem; }
  .hero-sub-body { font-size: 0.9rem; }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-logos {
    display: none;
  }

  /* ABOUT — covered by the dedicated @media (max-width:900px) and (max-width:480px) blocks above */


  /* ARTICLES */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* LECTURES — mobile */
  .lectures-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.75rem;
  }

  .lecture-card-img {
    aspect-ratio: 3 / 2;
  }

  .lectures-trust-row {
    gap: 0.6rem 1rem;
    margin-bottom: 2rem;
  }

  .lectures-trust-item {
    font-size: 0.87rem;
  }

  .lectures-cta-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.25rem;
    gap: 1rem;
  }

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

  /* Mobile lectures gallery — single column on very small screens */
  /* (600px already handled by lectures-gallery 2-col above) */

  /* Hero heading mobile */
  .hero-name {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
    animation: none;  /* no stagger on mobile */
  }
  .hero-badge { animation: none; }
  .hero-sub   { animation: none; }
  .hero-btns  { animation: none; }

  .hero-title {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }

  /* hide broken image placeholders */
  img[src=""],
  img:not([src]) {
    display: none !important;
  }

  /* CALCULATORS */
  .calc-card {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .calc-title,
  .calc-desc {
    text-align: center;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .calc-input-group input,
  .calc-input-group select {
    width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }

  .calc-btn {
    width: 100%;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* REVIEWS */
  .reviews {
    padding: 64px 18px;
  }

/* ================================
   CONTACT
================================ */

.contact {
  position: relative;
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 154, 141, 0.10), transparent 22%),
    radial-gradient(circle at 15% 85%, rgba(8, 34, 61, 0.10), transparent 26%),
    linear-gradient(135deg, #08223d 0%, #0a3148 45%, #0b4e5c 100%);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  pointer-events: none;
}

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

.contact .section-label {
  text-align: center;
  margin-bottom: 0.8rem;
  color: #20d0c2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact .section-title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 900;
}

.contact-intro {
  text-align: center;
  margin: 0 auto 3.2rem;
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 1.05rem;
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: start;
}

.contact-info {
  padding-top: 1.2rem;
}

.contact-info > p {
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,0.90);
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 500;
}

.contact-items {
  display: grid;
  gap: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 38, 62, 0.52), rgba(8, 44, 68, 0.42));
  border: 1px solid rgba(32, 208, 194, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.14);
  color: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 208, 194, 0.28);
  background: linear-gradient(180deg, rgba(7, 38, 62, 0.64), rgba(8, 44, 68, 0.52));
}

.contact-item span,
.contact-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-item a:hover {
  color: #20d0c2;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(14, 154, 141, 0.14);
  border: 1px solid rgba(32, 208, 194, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.contact-form-wrap {
  position: relative;
  padding: 1.9rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 58, 82, 0.86), rgba(20, 53, 75, 0.78));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}

.contact-form-wrap::before {
  content: "השאירו פרטים ונחזור אליכם";
  display: block;
  margin-bottom: 1.1rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.form-select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-radius: 15px;
  padding: 1rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select,
.form-select {
  color: rgba(255,255,255,0.58);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.form-select:focus {
  border-color: rgba(32, 208, 194, 0.6);
  background: rgba(255,255,255,0.11);
  transform: translateY(-1px);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #20d0c2 0%, #138f85 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.03rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 170, 154, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 170, 154, 0.34);
  filter: brightness(1.03);
}

.form-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-success {
  text-align: center;
  color: #ffffff;
  padding: 0.4rem 0 0;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(32, 208, 194, 0.14);
  border: 1px solid rgba(32, 208, 194, 0.30);
  font-size: 1.7rem;
  font-weight: 700;
  color: #20d0c2;
}

.form-success h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.form-success p {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.form-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.22s ease;
}

.form-success-btn--whatsapp,
.form-success-btn--email {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
}

.form-success-btn--whatsapp:hover,
.form-success-btn--email:hover {
  background: rgba(255,255,255,0.12);
}

.form-success-btn--reset {
  border: none;
  background: linear-gradient(135deg, #20d0c2 0%, #138f85 100%);
  color: #ffffff;
  cursor: pointer;
}

.input-invalid {
  border-color: #ff7d7d !important;
  background: rgba(255, 77, 77, 0.08) !important;
}

.input-error {
  display: block;
  margin-top: -0.3rem;
  margin-bottom: 0.15rem;
  color: #ffb3b3;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ================================
   CONTACT — Responsive
================================ */

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

  .contact .section-inner {
    padding: 0 20px;
  }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  max-width: 760px;
  margin: 0 auto;
}
.contact-form-wrap {
  order: 1;
}

.contact-info {
  order: 2;
  padding-top: 0;
  text-align: center;
}

.contact-info > p {
  margin: 0 0 1.2rem;
}

.contact-item {
  justify-content: center;
  text-align: center;
}
  .contact .section-title,
  .contact .section-label,
  .contact-intro {
    text-align: center;
    margin-inline: auto;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
    min-height: 66px;
  }

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

  .contact-form textarea {
    min-height: 120px;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 58px 0;
  }

  .contact .section-inner {
    padding: 0 16px;
  }

  .contact .section-title {
    font-size: 1.95rem;
    margin-bottom: 0.8rem;
  }

  .contact-intro {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 1.8rem;
  }

  .contact-form-wrap {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .contact-form-wrap::before {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  .contact-item {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
  }

  .contact-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .form-select {
    padding: 0.95rem 0.95rem;
    font-size: 16px;
    border-radius: 14px;
  }

  .form-submit {
    min-height: 52px;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .form-success-actions {
    flex-direction: column;
  }

  .form-success-btn {
    width: 100%;
    min-width: 100%;
  }
}
} /* end @media (max-width: 900px) */

/* ── Calculators heading — forced white on dark section bg ─── */
.calculators-heading {
  color: #ffffff !important;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
  /* Lectures gallery — 1 column on very small */
  .lectures-gallery {
    grid-template-columns: 1fr;
  }

  .lecture-card-img {
    aspect-ratio: 16 / 9;
  }
}