/* =========================================================
   MarketingPro — Homepage styles
   Plain CSS, mobile-first. Typography kept (Poppins).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --green:        #8cc540;
  --green-dark:   #77b02f;
  --sky:          #86d1f2;
  --sky-soft:     #b9e6f9;
  --ink:          #1d1e20;
  --body:         #545c66;
  --muted:        #7a828c;
  --line:         #e7eaee;
  --bg:           #ffffff;
  --bg-alt:       #f6f8fa;

  --container:    1200px;
  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 6px 18px rgba(20, 30, 45, .06);
  --shadow-md:    0 14px 40px rgba(20, 30, 45, .10);
  --shadow-lg:    0 26px 60px rgba(20, 30, 45, .16);

  --font:         "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --dur:          .6s;

  --header-h:     78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.txt-green { color: var(--green); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }

.btn--green      { --btn-bg: var(--green); }
.btn--green:hover{ background: var(--green-dark); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--whatsapp { background: var(--green); padding-inline: 3rem; }
.btn--whatsapp:hover { background: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand__logo { height: 42px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  padding: 0;
}
.nav__link {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  padding: .4rem 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  padding: .4rem .2rem;
  cursor: pointer;
}
.lang svg { margin-top: 1px; transition: transform .25s var(--ease); }
.lang[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Language switcher dropdown ---------- */
.nav__lang { position: relative; }
.lang__menu {
  list-style: none;
  margin: 0;
  padding: .35rem;
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 120;
}
.nav__lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__item {
  display: block;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang__item:hover { background: var(--sky-soft); }
.lang__item.is-active { color: var(--green-dark); font-weight: 700; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 3rem;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 30, .55) 0%, rgba(10, 22, 30, .35) 40%, rgba(10, 22, 30, .68) 100%),
    radial-gradient(120% 80% at 50% 30%, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
}
.hero__content { max-width: 820px; margin-inline: auto; text-align: center; }

.hero__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__line { display: block; }
.hero__brand { margin-top: .1em; }

.hero__lead {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.hero__lead em { font-style: italic; }

.hero__text {
  margin-top: 1rem;
  max-width: 640px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.hero__cta { margin-top: 1.8rem; }

.hero__features {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  text-align: left;
}
.feature-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.feature-card__link { display: block; color: inherit; height: 100%; }
.feature-card__title { color: #fff; font-size: 1.06rem; margin-bottom: .35rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.feature-card__text { color: rgba(255, 255, 255, .85); font-size: .92rem; line-height: 1.55; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* ---------- Generic section ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }

.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 700;
}
.section__title--center { text-align: center; }

.section__eyebrow {
  color: var(--ink);
  font-weight: 700;
  margin: 1.3rem 0 1.8rem;
  font-size: 1.15rem;
}
.section__lead {
  margin-top: 1rem;
  color: var(--body);
  font-size: 1.06rem;
  text-wrap: pretty;
}
.section__lead--center { text-align: center; }

.split__text > p { margin-top: 1rem; }
.split__text > p:first-of-type { margin-top: 0; }

/* ---------- Split (two-column) sections ---------- */
.split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__text .btn { margin-top: 1.8rem; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__logo {
  height: 46px;
  width: auto;
  margin-top: 2rem;
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: auto;
}

/* ---------- Do you want new clients ---------- */
.clients__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.client-card {
  display: flex;
  flex-direction: column;
  background: var(--sky-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.client-card__body { padding: 1.8rem 1.9rem 1.4rem; }
.client-card__title { font-size: 1.25rem; margin-bottom: .6rem; }
.client-card__body p { color: #33454f; }
.client-card__media { flex: 1 1 auto; min-height: 240px; overflow: hidden; }
.client-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.client-card:hover .client-card__media img { transform: scale(1.05); }

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  color: #fff;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: url("../img/testimonials-bg.jpg") center/cover fixed no-repeat;
  isolation: isolate;
}
.testimonials__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 40, 66, .72), rgba(9, 40, 66, .82));
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 960px;
}
.testimonial {
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(6px);
}
.testimonial__stars { color: #ffd15c; letter-spacing: 3px; font-size: 1.2rem; }
.testimonial__quote {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 1rem 0 1.2rem;
  line-height: 1.5;
}
.testimonial__author { color: rgba(255, 255, 255, .8); font-weight: 600; letter-spacing: .04em; }

/* ---------- Creative Solutions grid ---------- */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.8rem, 2vw, 1.4rem);
}
.solutions__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.solutions__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.solutions__item:hover img { transform: scale(1.07); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky); color: #0e3450; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo { height: 52px; width: auto; margin-bottom: 1.4rem; }
.footer__heading {
  color: #0e3450;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer__list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer__list a { transition: color .2s var(--ease); }
.footer__list a:hover { color: #08283d; text-decoration: underline; }
.footer__list a[href^="tel:"] { text-decoration: underline; }
.footer__social { display: flex; gap: .9rem; margin-top: 1.1rem; }
.footer__social a {
  display: grid; place-items: center;
  color: #111;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.footer__social a:hover { transform: translateY(-3px); opacity: .75; }

.newsletter { display: grid; gap: .8rem; max-width: 360px; }
.newsletter__label { font-size: .95rem; color: #0e3450; }
.newsletter__input {
  font: inherit;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: #fff;
  color: var(--ink);
}
.newsletter__input::placeholder { color: var(--muted); }
.newsletter__note { font-size: .9rem; font-weight: 600; color: #0e3450; }

.footer__nav {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .35);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
}
.footer__nav a { color: #0e3450; transition: color .2s var(--ease); }
.footer__nav a:hover { color: #08283d; text-decoration: underline; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .35);
  padding-block: 1.4rem;
  font-size: .88rem;
  color: #0e3450;
}

/* ---------- Breadcrumb (interior pages) ---------- */
.breadcrumb {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem clamp(1.1rem, 4vw, 2rem) 0;
  font-size: .88rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: "\203A"; color: var(--muted); }
.breadcrumb a { color: var(--green-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- Content links (in prose) ---------- */
.article__body a,
.split__text a,
.client-card__body a,
.service__text a,
.section__lead a,
.faq__item a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s var(--ease);
}
.article__body a:hover,
.split__text a:hover,
.client-card__body a:hover,
.service__text a:hover,
.section__lead a:hover,
.faq__item a:hover { color: var(--green); }

/* ---------- FAQ (native <details> accordion) ---------- */
.faq__list { max-width: 760px; margin-inline: auto; display: grid; gap: .9rem; }
.faq__item {
  border: 1px solid rgba(14, 52, 80, .14);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 1.2rem;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: .1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green-dark);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 0 1.15rem; margin: 0; color: var(--muted); }

/* ---------- About page ---------- */
.about-main { padding-top: var(--header-h); }
.about-author {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.about-author__avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
}
.about-author__name { font-size: 1.4rem; }
.about-author__role { color: var(--green-dark); font-weight: 600; margin-bottom: 1rem; }
.about-locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 700px) {
  .about-locations { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Scroll-reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   Visual effects: scroll progress bar, card spotlight,
   section-title accent line
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 400;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card,
  .client-card { position: relative; overflow: hidden; }
  .feature-card::after,
  .client-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
                rgba(140, 197, 64, .22), transparent 65%);
  }
  .feature-card:hover::after,
  .client-card:hover::after { opacity: 1; }
}

.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin-top: .6rem;
  background: linear-gradient(90deg, var(--green), var(--sky));
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .5s var(--ease) .25s;
}
.section__title--center::after { margin-inline: auto; transform-origin: center; }
.reveal:not(.in-view) .section__title::after { transform: scaleX(0); }

/* Hero content is STATIC (no entrance animation).
   Reason: on iOS Safari a keyframe animation that passes through opacity:0 can fail to paint and
   stay stuck at that start frame until a repaint (lock/unlock) is forced — leaving the hero text
   invisible on load. With no opacity animation there is nothing to get stuck: the hero is always
   painted at opacity:1. (Also better for LCP.) The video background still provides motion. */

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 620px) {
  .hero__features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .solutions__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  .split__grid { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    padding: .5rem clamp(1.1rem, 5vw, 2rem) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu li { width: 100%; }
  .nav__link {
    display: block;
    width: 100%;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  /* Language switcher: on mobile show both links inline (no dropdown) */
  .nav__lang { padding-top: 1.1rem; width: 100%; }
  .lang { display: none; }
  .lang__menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: flex;
    gap: .6rem;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .lang__item {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.1rem;
  }
  .lang__item.is-active { border-color: var(--green); color: var(--green-dark); }
}

/* ---------- Mobile refinement · M1 foundations & rhythm ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }   /* shorter fixed bar; every offset tracks --header-h automatically */
}
@media (max-width: 600px) {
  .section       { padding-block: clamp(2.5rem, 9vw, 3.4rem); }  /* was min 3.5rem — denser, less sparse */
  .section__head { margin-bottom: clamp(1.5rem, 6vw, 2.3rem); }
  .service       { padding-block: clamp(2.2rem, 8vw, 3.2rem); }
  .testimonials  { background-attachment: scroll; }              /* fixed parallax is janky on mobile */
  .section__lead--center { text-align: left; }                   /* M3: long body copy reads better left-aligned on phones (headings stay centered) */
  .contact-form-card__actions .btn { width: 100%; }              /* M4: full-width, tappable submit */
  .btn--sm { padding: .85rem 1.6rem; }                           /* M4: larger tap target (~42px tall) */
  .split__media img { aspect-ratio: 4 / 3; }                     /* M5: shorter homepage split photos (was 4/5 ~445px tall) */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  [data-hero] > * { opacity: 1; transform: none; animation: none; }
  .testimonials { background-attachment: scroll; }
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.services-main { padding-top: var(--header-h); }

.service { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.service .section__head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }

/* two-image media row */
.service__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: stretch;
}
.service__img {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.service__img:hover img { transform: scale(1.05); }

/* foot row: label + description on the left, button on the right */
.service__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.3rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.service__text { max-width: 640px; }
.service__label { font-size: 1.18rem; margin-bottom: .35rem; }
.service__desc { color: var(--body); }
.service__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.service__list li { position: relative; padding-left: 1.5rem; color: var(--body); }
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.service__foot .btn { flex: none; margin-top: .2rem; }

.btn--sm { padding: .7rem 1.6rem; font-size: .92rem; }

/* Advertising results table */
.service__media--ads { align-items: center; }
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 460px;
}
.ad-table th, .ad-table td {
  padding: .7rem .9rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.ad-table thead th {
  position: sticky; top: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ad-table tbody tr:nth-child(even) { background: #fafbfc; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table .num { font-weight: 600; color: var(--ink); }
.ad-table small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }

/* Articles / blog cards */
.articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
/* Blog index: responsive multi-column grid of post cards */
.blog-main { padding-top: var(--header-h); }
.articles--blog { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card__link { display: block; color: inherit; }
.article-card__media { overflow: hidden; }
.article-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.article-card__title { font-size: 1.15rem; line-height: 1.3; }
.article-card__excerpt { margin-top: .7rem; color: var(--body); font-size: .96rem; }
.article-card__meta { margin-top: 1rem; color: var(--muted); font-size: .84rem; font-weight: 500; }

/* Single pull-quote testimonial */
.testimonial-single { text-align: center; }
.pull-quote { max-width: 760px; margin-inline: auto; }
.pull-quote__stars { color: #ffb300; letter-spacing: 4px; font-size: 1.15rem; }
.pull-quote__text {
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.pull-quote__author {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.pull-quote__avatar {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
}
.pull-quote__name { font-weight: 600; color: var(--ink); }

/* Article pages */
.article-page { padding-top: var(--header-h); }
.article-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.2rem); }
.article-hero__meta { color: var(--muted); font-weight: 500; margin-bottom: .8rem; }
.article-hero__title { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 900px; }
.article-hero__media { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.article-hero__media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.article { max-width: 720px; margin-inline: auto; padding-bottom: clamp(3rem, 7vw, 5rem); }
.article__body > * + * { margin-top: 1.15rem; }
.article__body h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article__body p { color: var(--body); font-size: 1.05rem; }
.article__body strong { color: var(--ink); }
.article__body ul { padding-left: 1.3rem; }
.article__body li { color: var(--body); font-size: 1.05rem; }
.article__body li + li { margin-top: .5rem; }
.article__body li::marker { color: var(--green); }
.article__placeholder {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--green);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .9rem;
  border-radius: 0 8px 8px 0;
}
.article__back {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 2.5rem;
  font-weight: 600; color: var(--ink);
}
.article__back:hover { color: var(--green-dark); }

/* Services responsive */
@media (max-width: 720px) {
  .service__media { grid-template-columns: 1fr; }
  .service__media--ads { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; }
  .service__foot { flex-direction: column; align-items: stretch; }
  .service__foot .btn { align-self: flex-start; }
  .service__img img { aspect-ratio: 2 / 1; }   /* M3: shorter wide band when photos stack (was 16/10) */
}

/* =========================================================
   PORTFOLIO PAGE
   ========================================================= */
.portfolio-main { padding-top: var(--header-h); }

/* Image gallery */
.gallery { display: grid; gap: clamp(1.4rem, 3.5vw, 2.6rem); }
.gallery__row { display: grid; gap: clamp(.7rem, 1.6vw, 1.1rem); }
.gallery__row--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__row--4 { grid-template-columns: repeat(4, 1fr); }

.gallery__item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

/* Creative Solutions feature rows */
.portfolio-solutions .feature-row { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.feature-row__media img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.feature-row__title { font-size: 1.4rem; margin-bottom: .8rem; }
.feature-row .split__text p { color: var(--body); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 20, .92);
  cursor: zoom-out;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  flex: none;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); transform: scale(1.06); }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
}

/* Portfolio responsive */
@media (max-width: 860px) {
  /* M5: flatten all rows into one continuous 2-col grid so odd (3-image) rows leave no empty cell */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: clamp(.7rem, 1.6vw, 1.1rem); }
  .gallery__row { display: contents; }
}
@media (max-width: 720px) {
  .feature-row.split__grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .lightbox__prev, .lightbox__next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
  }
  .lightbox__prev { left: clamp(.6rem, 3vw, 1.2rem); }
  .lightbox__next { right: clamp(.6rem, 3vw, 1.2rem); }
  .lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: url("../img/contact-hero.jpg") center/cover no-repeat;
  color: #fff;
}
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 30, 40, .55) 0%, rgba(9, 30, 40, .38) 45%, rgba(9, 30, 40, .60) 100%);
}
.contact-hero__head { text-align: center; max-width: 640px; margin: 0 auto clamp(1.6rem, 4vw, 2.6rem); }
.contact-hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.contact-hero__subtitle { margin-top: .6rem; color: rgba(255, 255, 255, .92); font-size: 1.08rem; }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--ink);
  display: grid;
  gap: 1.15rem;
}

/* Form fields (shared) */
.field { display: grid; gap: .45rem; }
.field__label { font-size: .95rem; color: var(--ink); font-weight: 500; }
.field__control {
  font: inherit;
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__control::placeholder { color: var(--muted); }
.field__control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(140, 197, 64, .2);
}
.field__control--area { resize: vertical; min-height: 120px; }
.contact-form-card__actions { display: flex; justify-content: center; margin-top: .3rem; }
.contact-form-card .btn--green { padding-inline: 2.4rem; }
.form-note { text-align: center; font-weight: 600; font-size: .95rem; margin-top: -.2rem; }
.form-note.is-error { color: #c0392b; }
.form-note.is-ok { color: var(--green-dark); }

/* Contact Us + map */
.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-block { margin-top: 1.8rem; }
.contact-block__heading {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: .4rem;
}
.contact-block p { color: var(--body); }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .contact-info__grid { grid-template-columns: 1fr 1.15fr; }
  .map-embed { aspect-ratio: 16 / 11; }
}
