/* =============================================
   ETNA TECHNOLOGY — Global Styles
   Mobile-first, fully responsive
   ============================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ----- CSS Variables ----- */
:root {
  --dark:        #2e2e36;
  --green:       #00ca69;
  --green-semi:  rgba(0, 202, 105, 0.70);
  --green-nav:   #17b268;
  --gray-light:  #f8f8f8;
  --gray-mid:    #b5b5b5;
  --gray-soft:   #c7c7c7;
  --gray-text:   #e8e6e6;
  --border:      #e2e2e2;

  --font-inter:   'Inter', sans-serif;
  --font-raleway: 'Raleway', sans-serif;

  --max-w: 1180px;
  --pad-x: 40px;
  --radius: 10px;

  --transition: 0.22s ease;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 170px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover   { opacity: 0.84; }
.btn:active  { transform: scale(0.97); }

.btn--green      { background: var(--green); }
.btn--green-semi { background: var(--green-semi); }
.btn--outline    {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn--outline:hover { background: var(--green); color: #fff; }


/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--dark);
}

/* Nav wrapper: full-width, just horizontal padding — no max-width cap */
.nav-wrap {
  position: relative;
  max-width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.nav {
  display: flex;
  align-items: center;
  height: 90px;
  /* three-column layout: logo | links (centered) | right */
  justify-content: space-between;
}

/* Logo — left column, flex:1 so it mirrors the right side width */
.nav__logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.nav__logo svg {
  display: block;
}

/* Nav links — center column, truly centered between equal-width sides */
.nav__links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nav__link {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-inter);
  font-size: 15px;
  letter-spacing: 0.6px;
  color: var(--gray-soft);
  border-radius: 6px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__link:hover        { color: #fff; }
.nav__link--active      { color: var(--green-nav); }

/* Right side — right column, flex:1 mirrors the left side */
.nav__right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav__contact {
  font-family: var(--font-inter);
  font-size: 15px;
  letter-spacing: 1.4px;
  color: var(--gray-soft);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav__contact:hover { color: #fff; }

/* Language selector */
.lang {
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
}
.lang__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: transparent;
  border: none;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}
.lang__btn img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.lang__btn:last-child {
  border-left: 1.5px solid rgba(255,255,255,0.25);
}
.lang__btn--active { color: #fff; }
.lang__btn:hover   { color: rgba(255,255,255,0.85); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav .nav__link {
  padding: 13px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
}
.mobile-nav .nav__contact {
  padding: 13px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.mobile-nav__lang {
  display: flex;
  margin-top: 18px;
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  background: var(--gray-light);
  overflow: hidden;
  min-height: 580px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 580px;
  padding-top: 70px;
  padding-bottom: 50px;
}
.hero__text {
  flex: 0 0 46%;
  max-width: 540px;
}
.hero__text h1 {
  font-family: var(--font-inter);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.32;
  color: #fff;
  margin-bottom: 46px;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero__image {
  flex: 1 1 auto;
  min-height: 480px;
  max-width: 560px;
  overflow: visible;            /* allow dots to bleed outside */
  display: flex;
  align-items: center;
  position: relative;
}
/* Dot grid — top-left of hero image */
.hero__image::before {
  content: '';
  position: absolute;
  top: -22px;
  left: -22px;
  width: 112px;
  height: 140px;
  background-image: radial-gradient(circle, rgba(160,160,160,0.55) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
/* Dot grid — bottom-right of hero image */
.hero__image::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 112px;
  height: 140px;
  background-image: radial-gradient(circle, rgba(160,160,160,0.55) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-height: 680px;
  position: relative;
  z-index: 1;
}


/* =============================================
   ABOUT SECTION (on homepage)
   ============================================= */
.about-home {
  background: #fff;
  padding: 110px 0;
}
.about-home__inner {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}
.about-home__image {
  flex: 0 0 calc(50% - 35px);
  max-width: 540px;
  min-height: 460px;
  overflow: visible;
  position: relative;
}
/* Dot grid — bottom-right of about image */
.about-home__image::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 112px;
  height: 112px;
  background-image: radial-gradient(circle, rgba(0,202,105,0.45) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.about-home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}
.about-home__text {
  flex: 0 0 calc(50% - 35px);
  max-width: 540px;
  padding-top: 30px;
}
.about-home__text h2 {
  font-family: var(--font-inter);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  color: #000;
  margin-bottom: 22px;
}
.about-home__text p {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.42;
  color: #000;
  margin-bottom: 20px;
}
.about-home__text .btn { margin-top: 10px; }


/* =============================================
   BENEFITS SECTION
   ============================================= */
.benefits {
  position: relative;
  background: var(--gray-light);
  overflow: hidden;
  padding: 110px 0;
}
.benefits__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.benefits .container { position: relative; z-index: 1; }

.benefits__title {
  font-family: var(--font-inter);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 56px;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 54px;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefit-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.benefit-card__icon svg { width: 40px; height: 40px; }
.benefit-card__title {
  font-family: var(--font-inter);
  font-size: 19px;
  font-weight: 400;
  color: var(--gray-text);
  line-height: 1.35;
}
.benefit-card__text {
  font-family: var(--font-raleway);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-mid);
}


/* =============================================
   SERVICES SECTION (on homepage)
   ============================================= */
.services-home {
  background: #fff;
  padding: 110px 0;
}
.services-home__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.services-home__text {
  flex: 0 0 calc(50% - 40px);
  max-width: 540px;
}
.services-home__text h2 {
  font-family: var(--font-inter);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  color: #000;
  margin-bottom: 38px;
}
.service-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row__body h3 {
  font-family: var(--font-inter);
  font-size: 19px;
  font-weight: 400;
  color: #000;
  margin-bottom: 12px;
}
.service-row__body p {
  font-family: var(--font-raleway);
  font-size: 15.5px;
  line-height: 1.42;
  color: #000;
  max-width: 440px;
}
.service-row__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background var(--transition);
}
.service-row__arrow:hover { background: rgba(0,0,0,0.07); }
.service-row__arrow svg { display: block; }

.services-home__image {
  flex: 0 0 calc(50% - 40px);
  max-width: 540px;
  align-self: stretch;
  min-height: 480px;
  overflow: visible;
  position: relative;
}
/* Dot grid — top-left of services image */
.services-home__image::before {
  content: '';
  position: absolute;
  top: -22px;
  left: -22px;
  width: 112px;
  height: 112px;
  background-image: radial-gradient(circle, rgba(0,202,105,0.45) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.services-home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}


/* =============================================
   CONTACT MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  padding: 40px 40px 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.28s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  color: #555;
}
.modal__close:hover { background: #f0f0f0; }
.modal__close svg { display: block; }

.modal h3 {
  font-family: var(--font-inter);
  font-size: 24px;
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
}
.modal__sub {
  font-family: var(--font-raleway);
  font-size: 15px;
  color: #555;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #333;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-raleway);
  font-size: 15px;
  color: #000;
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); outline: none; }
.form-group textarea { resize: vertical; min-height: 110px; }

/* Field error state */
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e05252;
  background: rgba(224, 82, 82, 0.04);
}
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #e05252;
  font-family: var(--font-inter);
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal__submit {
  width: 100%;
  margin-top: 6px;
  height: 48px;
  min-width: unset;
  font-size: 15px;
  letter-spacing: 1.2px;
}
.modal__success {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--green);
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.footer__copy {
  font-family: var(--font-inter);
  font-size: 14.5px;
  color: var(--gray-soft);
  display: flex;
  gap: 12px;
}
.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__nav a {
  font-family: var(--font-inter);
  font-size: 14.5px;
  letter-spacing: 1.3px;
  color: var(--gray-soft);
  transition: color var(--transition);
}
.footer__nav a:hover { color: #fff; }


/* =============================================
   ABOUT US PAGE
   ============================================= */
.about-page {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  min-height: calc(100vh - var(--header-h, 70px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dark variant */
.about-page--dark {
  background: var(--dark);
}
.about-page__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.about-page > .container,
.about-page--dark > .container {
  position: relative;
  z-index: 1;
}

.about-page__inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Text — LEFT */
.about-page__text {
  flex: 1 1 auto;
}
.about-page__text h2 {
  font-family: var(--font-inter);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 28px;
}
.about-page__text p {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.6;
  color: #d8d8d8;
  margin-bottom: 18px;
}

/* Image — RIGHT */
.about-page__image {
  flex: 0 0 calc(45% - 40px);
  max-width: 500px;
  overflow: visible;
  border-radius: 4px;
  position: relative;
}
.about-page__image::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 112px;
  height: 112px;
  background-image: radial-gradient(circle, rgba(0,202,105,0.45) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.about-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 440px;
  position: relative;
  z-index: 1;
  border-radius: 4px;
}


/* =============================================
   WHAT WE DO PAGE
   ============================================= */
.wwd-page {
  padding: 80px 0;
}
.wwd-page--no-top-pad {
  padding-top: 0;
}
.wwd-section {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.wwd-section:first-child { padding-top: 0; }
.wwd-section:last-child  { border-bottom: none; }

/* Inside dark containers, remove light border */
.wwd-dark .wwd-section { border-bottom-color: rgba(255,255,255,0.08); }

.wwd-section--reverse { flex-direction: row-reverse; }

.wwd-section__image {
  flex: 0 0 42%;
  max-width: 460px;
  overflow: visible;
  border-radius: 4px;
  position: relative;
}
/* Dots on the outside-right of image when image is on the right (--reverse sections) */
.wwd-section--reverse .wwd-section__image::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 100px;
  height: 130px;
  background-image: radial-gradient(circle, rgba(0,202,105,0.4) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
/* Dots on the outside-left of image when image is on the left (default sections) */
.wwd-section:not(.wwd-section--reverse) .wwd-section__image::before {
  content: '';
  position: absolute;
  bottom: -22px;
  left: -22px;
  width: 100px;
  height: 130px;
  background-image: radial-gradient(circle, rgba(0,202,105,0.4) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.wwd-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  position: relative;
  z-index: 1;
}
.wwd-section__text {
  flex: 1 1 auto;
}
.wwd-section__text h2 {
  font-family: var(--font-inter);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
}
.wwd-section__text p {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.55;
  color: #111;
  margin-bottom: 16px;
}
.wwd-section__text ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
}
.wwd-section__text ul li {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.55;
  color: #111;
  margin-bottom: 8px;
}

/* Technology logos row */
.tech-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.tech-logos img {
  display: block;
  height: 44px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.tech-logos img:hover { opacity: 1; }

/* ===== Dark sections on What We Do page ===== */
.wwd-dark {
  position: relative;
  overflow: hidden;
}
.wwd-dark__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.wwd-dark > .container {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}

/* Text colors inside dark sections */
.wwd-dark .wwd-section h2,
.wwd-section--on-dark h2 { color: #fff; }
.wwd-dark .wwd-section p,
.wwd-section--on-dark p  { color: #d8d8d8; }
.wwd-section--on-dark    { border-bottom-color: rgba(255,255,255,0.1); }
.wwd-section--on-dark:last-child { border-bottom: none; }

/* Green bullet list — default (on dark bg) */
.wwd-list,
.wwd-section__text .wwd-list {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}
.wwd-list li {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.6;
  color: #d8d8d8;
  padding: 8px 0 8px 28px;
  position: relative;
}
.wwd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* Green bullet list — on white bg */
.wwd-list--dark li {
  color: #111;
}

.wwd-contact {
  background: var(--gray-light);
  padding: 80px 0;
  text-align: center;
}
.wwd-contact h2 {
  font-family: var(--font-inter);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  color: #000;
  margin-bottom: 14px;
}
.wwd-contact p {
  font-family: var(--font-raleway);
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
}


/* =============================================
   LEGAL PAGES (Privacy / Terms)
   ============================================= */
.legal-page {
  padding: 80px 0 100px;
}
.legal-page h1 {
  font-family: var(--font-inter);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: #000;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 500;
  color: #000;
  margin-top: 36px;
  margin-bottom: 14px;
}
.legal-page p {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  margin-bottom: 16px;
}
.legal-page a {
  color: var(--green);
  text-decoration: underline;
}
.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-page ul li {
  font-family: var(--font-raleway);
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  margin-bottom: 8px;
}


/* =============================================
   RESPONSIVE — Tablet (≤ 960px)
   ============================================= */
@media (max-width: 960px) {
  :root { --pad-x: 28px; }

  /* Nav */
  .nav__links, .nav__right { display: none; }
  .hamburger { display: flex; }
  .nav { height: 76px; }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    min-height: unset;
    padding-top: 50px;
    padding-bottom: 0;
    gap: 36px;
  }
  .hero__text { flex: unset; max-width: 100%; }
  .hero__image {
    flex: unset;
    max-width: 100%;
    width: 100%;
    min-height: unset;
    max-height: 380px;
    overflow: hidden;           /* hide dot overflow on mobile */
  }
  .hero__image::before,
  .hero__image::after { display: none; }
  .hero__image img { max-height: 380px; object-position: center 20%; }

  /* About home */
  .about-home { padding: 70px 0; }
  .about-home__inner { flex-direction: column; gap: 36px; }
  .about-home__image, .about-home__text {
    flex: unset; max-width: 100%; width: 100%; min-height: unset;
  }
  .about-home__image {
    height: 320px;
    overflow: hidden;           /* hide dot overflow on mobile */
  }
  .about-home__image::after { display: none; }
  .about-home__text  { padding-top: 0; }

  /* Benefits */
  .benefits { padding: 70px 0; }
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 44px;
  }

  /* Services home */
  .services-home { padding: 70px 0; }
  .services-home__inner { flex-direction: column; gap: 44px; }
  .services-home__text, .services-home__image {
    flex: unset; max-width: 100%; width: 100%; min-height: unset;
  }
  .services-home__image {
    height: 320px;
    overflow: hidden;
  }
  .services-home__image::before { display: none; }

  /* About page */
  .about-page { padding: 60px 0; }
  .about-page__inner { flex-direction: column; gap: 36px; }
  .about-page__image {
    flex: unset; max-width: 100%; width: 100%;
    overflow: hidden; order: -1;
  }
  .about-page__image::after { display: none; }
  .about-page__image img { min-height: 260px; max-height: 340px; }

  /* WwD page */
  .wwd-page { padding: 60px 0; }
  .wwd-section { flex-direction: column !important; gap: 36px; padding: 50px 0; }
  .wwd-section__image {
    flex: unset; max-width: 100%; width: 100%;
    overflow: hidden;
  }
  .wwd-section__image::before,
  .wwd-section__image::after { display: none; }
  .wwd-section__image img { min-height: 260px; max-height: 340px; }

  /* Footer */
  .footer__inner {
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0;
  }

  /* Modal */
  .modal { padding: 32px 24px 28px; }
  .form-row { grid-template-columns: 1fr; }
}


/* =============================================
   RESPONSIVE — Mobile (≤ 580px)
   ============================================= */
@media (max-width: 580px) {
  :root { --pad-x: 18px; }

  /* Hero */
  .hero { min-height: unset; }
  .hero__text h1 { font-size: 24px; margin-bottom: 32px; }
  .hero__buttons { gap: 12px; }
  .hero__image { max-height: 260px; }
  .hero__image img { max-height: 260px; }

  /* Buttons */
  .btn { height: 46px; font-size: 14px; min-width: 140px; }

  /* Benefits */
  .benefits__grid { grid-template-columns: 1fr; row-gap: 38px; }

  /* Services */
  .service-row__body p { font-size: 14.5px; }

  /* Footer */
  .footer__nav { gap: 16px; }
  .footer__copy, .footer__nav a { font-size: 13px; }

  /* Legal */
  .legal-page h2 { font-size: 18px; }
  .legal-page p, .legal-page ul li { font-size: 15px; }
}


/* =============================================
   RESPONSIVE — Very small (≤ 380px)
   ============================================= */
@media (max-width: 380px) {
  .hero__text h1 { font-size: 21px; }
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; min-width: unset; }
}


/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

/* Base hidden state — only applies when JS has loaded */
.js-animate {
  opacity: 0;
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

/* Directional offsets */
.js-animate-up    { transform: translateY(40px); }
.js-animate-left  { transform: translateX(-50px); }
.js-animate-right { transform: translateX(50px); }
.js-animate-scale { transform: scale(0.92); }

/* Visible (animated in) */
.js-animate.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for grid children */
.js-stagger > *:nth-child(1) { transition-delay: 0s;    }
.js-stagger > *:nth-child(2) { transition-delay: 0.1s;  }
.js-stagger > *:nth-child(3) { transition-delay: 0.2s;  }
.js-stagger > *:nth-child(4) { transition-delay: 0.3s;  }
.js-stagger > *:nth-child(5) { transition-delay: 0.4s;  }
.js-stagger > *:nth-child(6) { transition-delay: 0.5s;  }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .js-animate,
  .js-animate.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
