/* ============================================================
   MAXCOL® — Identidade Visual aplicada sobre estrutura Sonne
   Fontes: Cormorant Garamond (headings) + Inter (body/UI)
   Paleta: Olive #272b00, Brown #5d2417, Red #b7321c, Cream #d8d8d8
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Maxcol Brand Colors — Paleta Oficial */
  --heading: #272b00;
  --subtitle: #54582f;
  --text: #4a4a3e;
  --text-light: #7a7a6e;
  --brand-main: #5d2417;         /* Brown — marrom principal */
  --brand-darker: #272b00;       /* Olive escuro */
  --brand-lighter: #8d4925;      /* Terra cotta — marrom claro */
  --brand-subtle: #d8d8d8;       /* Cinza/cream */
  --brand-red: #b7321c;
  --border: #d8d9c8;
  --bg-accent: #f2f3ec;
  --white: #FFFFFF;
  --transparent: transparent;

  /* Olive & Sage — da paleta oficial */
  --olive-medium: #54582f;       /* Olive médio */
  --sage: #86895d;               /* Sage/verde mudo */

  /* Layout */
  --container: 1280px;
  --container-pad: 30px;
  --section-pad: 80px;
  --gap: 24px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-pill: 100px;
  --r-btn: 32px;

  /* Transitions */
  --ease: 0.3s ease;
  --ease-slow: 0.6s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-accent);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2em;
}

h1 {
  font-size: 76px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 52px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 38px;
  letter-spacing: -0.3px;
}
h4 {
  font-size: 30px;
  letter-spacing: -0.3px;
}
h5 {
  font-size: 24px;
  letter-spacing: -0.2px;
}
h6 {
  font-size: 18px;
  letter-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-accent { color: var(--brand-main); }

/* ===== SUBTITLE LABEL ===== */
.subtitle-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-darker);
  margin-bottom: 12px;
}

.subtitle-label--light {
  color: var(--sage);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header__desc {
  max-width: 56%;
  margin: 16px auto 0;
  color: var(--text);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-btn);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--ease);
}

.btn--primary {
  background: var(--brand-main);
  color: var(--white);
  border-color: var(--brand-main);
}
.btn--primary:hover {
  background: var(--brand-lighter);
  border-color: var(--brand-lighter);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93,36,23,0.3);
}

.btn--dark {
  background: var(--brand-darker);
  color: var(--white);
  border-color: var(--brand-darker);
}
.btn--dark:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--header {
  background: var(--brand-main);
  color: var(--white);
  border-color: var(--brand-main);
  padding: 10px 24px;
  font-size: 14px;
}
.btn--header:hover {
  background: var(--brand-lighter);
  border-color: var(--brand-lighter);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(93,36,23,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--brand-darker);
  color: var(--brand-darker);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.btn--lg { padding: 16px 40px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header.scrolled {
  background: var(--brand-darker);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 80px;
  position: relative;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__logo { display: flex; align-items: center; }

.logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-img--footer {
  height: 45px;
  filter: brightness(0) invert(1);
}

.nav__link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: var(--white);
  opacity: 0.85;
  position: relative;
}
.nav__link:hover,
.nav__link.active {
  opacity: 1;
  color: var(--brand-subtle);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--ease);
}

/* ===== LANGUAGE FLAGS ===== */
.lang-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 12px;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--ease);
  line-height: 0;
}

.lang-flag:hover {
  opacity: 0.85;
}

.lang-flag.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.5);
}

.lang-flag svg {
  border-radius: 2px;
  display: block;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: -80px;
  padding: 110px 0 100px;
  z-index: 1;
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  background-color: var(--brand-darker);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(39,43,0,0.88) 0%,
    rgba(39,43,0,0.65) 50%,
    rgba(39,43,0,0.1) 110%
  );
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 64%;
}

.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1em;
}

.hero__text {
  font-size: 16px;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 88%;
  line-height: 1.6;
}

/* Hero cards — extend below hero */
.hero__cards {
  position: relative;
  z-index: 3;
  margin-top: 40px;
}

.hero__cards-row {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.hero__card {
  width: 32%;
  min-height: 229px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: -200px;
  position: relative;
}

.hero__card img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-accent);
  padding: 180px 0 var(--section-pad);
  overflow: hidden;
}

.about__row {
  display: flex;
  gap: 80px;
}

.about__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__image-mosaic {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about__image-main {
  height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: #1a1a18;
}

.about__image-main img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about__vm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__vm-card {
  padding: 24px;
  border-radius: var(--r-md);
}

.about__vm-card h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about__vm-card p {
  font-size: 14px;
  line-height: 1.6;
}

.about__vm-card--green {
  background: var(--sage);
  color: var(--white);
}
.about__vm-card--green h4 { color: var(--white); }

.about__vm-card--dark {
  background: var(--olive-medium);
  color: var(--white);
}
.about__vm-card--dark h4 { color: var(--white); }

.about__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about__right h2 {
  margin-bottom: 20px;
}

.about__text {
  width: 88%;
  margin-bottom: 28px;
  line-height: 1.6;
}

.about__right .btn {
  align-self: flex-start;
  margin-bottom: 32px;
}

/* Stats row */
.about__stats {
  display: flex;
  gap: 16px;
}

.stat-counter {
  background: var(--bg-accent);
  border-radius: var(--r-md);
  padding: 24px;
  flex: 1;
}

.stat-counter__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--brand-main);
  line-height: 1.2;
  display: inline;
}

.stat-counter__suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-main);
}

.stat-counter__label {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.4;
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-accent);
  padding: var(--section-pad) 0;
}

.services__header {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
}

.services__header-text {
  flex: 1;
  padding-right: 56px;
}

.services__featured {
  flex: 1;
}

/* Featured service card (dark overlay, reveals image on hover) */
.service-featured {
  position: relative;
  min-height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.service-featured__overlay {
  position: absolute;
  inset: 0;
  background: var(--brand-darker);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.service-featured:hover .service-featured__overlay {
  opacity: 0.6;
}

.service-featured__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: var(--white);
}

.service-featured__content h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.service-featured__content p {
  color: var(--white);
  width: 88%;
  line-height: 1.6;
}

/* Service cards grid */
.services__grid {
  display: flex;
  gap: 24px;
}

.service-card {
  position: relative;
  flex: 1;
  min-height: 240px;
  border-radius: var(--r-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: var(--ease);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-card__overlay {
  opacity: 0.7;
}

.service-card__overlay--white { background: var(--brand-lighter); }
.service-card__overlay--accent { background: var(--olive-medium); }
.service-card__overlay--dark { background: var(--brand-main); }

.service-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.service-card__overlay--white + .service-card__content h4 { color: var(--white); }
.service-card__overlay--white + .service-card__content p { color: var(--white); }
.service-card__overlay--accent + .service-card__content h4 { color: var(--white); }
.service-card__overlay--accent + .service-card__content p { color: var(--white); }
.service-card__overlay--dark + .service-card__content h4 { color: var(--white); }
.service-card__overlay--dark + .service-card__content p { color: var(--white); }

.service-card__content h4 { margin-bottom: 8px; }
.service-card__content p { font-size: 14px; line-height: 1.6; }

/* ===== PROJECTS ===== */
.projects {
  background: var(--bg-accent);
  padding: var(--section-pad) 0;
}

.projects__grid {
  display: flex;
  gap: 24px;
}

.project-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: var(--ease);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(39,43,0,0.1);
}

.project-card__img {
  height: 220px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.project-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--brand-darker));
  opacity: 0.4;
}

.project-card__img img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px;
}

.project-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-lighter);
}

.project-card__body h4 {
  font-size: 24px;
}

.project-card__body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.project-card__body .btn {
  margin-top: 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--bg-accent);
  padding: var(--section-pad) 0;
}

.hiw__row {
  display: flex;
  gap: 60px;
}

.hiw__left {
  flex: 0 0 35%;
}

.hiw__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Step cards — image bg with colored overlay, reveal on hover */
.hiw__step {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  transition: var(--ease);
}

.hiw__step-overlay {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.hiw__step:hover .hiw__step-overlay {
  opacity: 0.7;
}

.hiw__step-overlay--white { background: var(--white); }
.hiw__step-overlay--accent { background: var(--brand-lighter); }
.hiw__step-overlay--dark { background: var(--brand-main); }

.hiw__step-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hiw__step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hiw__step-overlay--white + .hiw__step-content { color: var(--heading); }
.hiw__step-overlay--white + .hiw__step-content h4 { color: var(--heading); }
.hiw__step-overlay--accent + .hiw__step-content { color: var(--white); }
.hiw__step-overlay--accent + .hiw__step-content h4 { color: var(--white); }
.hiw__step-overlay--dark + .hiw__step-content { color: var(--white); }
.hiw__step-overlay--dark + .hiw__step-content h4 { color: var(--white); }

.hiw__step-content h4 {
  font-size: 24px;
}

.hiw__step-content p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg-accent);
  padding: var(--section-pad) 0;
}

.faq__list {
  max-width: 72%;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 8px;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg-accent);
  border: 2px solid var(--white);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--heading);
  text-align: left;
  letter-spacing: -0.6px;
  transition: var(--ease);
}

.faq-item__question:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.faq-item.active .faq-item__question {
  background: var(--brand-main);
  border-color: var(--brand-main);
  color: var(--white);
  border-radius: var(--r-pill) var(--r-pill) 0 0;
}

.faq-item__icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--brand-main);
  flex-shrink: 0;
  margin-left: 16px;
  transition: var(--ease);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  color: var(--white);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--bg-accent);
  border: 2px solid var(--white);
  border-top: none;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
  padding: 24px 32px;
}

.faq-item__answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 20px 0 var(--section-pad);
  background: var(--bg-accent);
}

.cta__bg {
  position: absolute;
  inset: 20px var(--container-pad) var(--section-pad);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
}

.cta__overlay {
  position: absolute;
  inset: 20px var(--container-pad) var(--section-pad);
  background: var(--brand-darker);
  border-radius: var(--r-lg);
  opacity: 0.92;
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 72px 0;
  max-width: 700px;
  margin: 0 auto;
}

.cta__inner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta__inner p {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-accent);
  padding: 60px 0;
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact__text h3 {
  margin-bottom: 6px;
}

.contact__text p {
  color: var(--text-light);
}

.contact__buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brand-darker);
  color: var(--white);
  padding: 70px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer__social { display: flex; gap: 4px; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--ease);
}
.social-link:hover { color: var(--brand-lighter); }

.footer__col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--white);
  opacity: 0.7;
}
.footer__col a:hover { opacity: 1; color: var(--brand-lighter); }

.footer__address {
  font-size: 14px;
  color: var(--white);
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer__bottom p {
  font-size: 14px;
  opacity: 0.7;
}

.footer__bottom-social {
  display: flex;
  gap: 4px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 100px; right: 30px;
  width: 48px; height: 48px;
  background: var(--brand-darker);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 24px rgba(39,43,0,0.12);
  opacity: 0; visibility: hidden;
  transition: var(--ease);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--brand-main);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional entrance animations */
.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Subtitle label slide-in (only standalone, not inside animated containers) */
.section-header .subtitle-label,
.cta__inner .subtitle-label {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header .subtitle-label.visible,
.cta__inner .subtitle-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image zoom on hover */
.project-card__img img,
.about__image-main img,
.hero__card img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__img img {
  transform: scale(1.06);
}
.hero__card:hover img {
  transform: translate(-50%, -50%) scale(1.06);
}

.about__image-mosaic:hover .about__image-main img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Enhanced card hover shadows */
.service-card {
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(39,43,0,0.15);
}

.service-featured {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.4s ease;
}
.service-featured:hover {
  box-shadow: 0 16px 48px rgba(39,43,0,0.2);
}

.hiw__step {
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.hiw__step:hover {
  box-shadow: 0 12px 40px rgba(39,43,0,0.12);
}

.stat-counter {
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(39,43,0,0.1);
}


/* Hero content entrance */
.hero__content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroEntrance 1s ease 0.3s forwards;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__cards-row {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 0.8s ease 0.7s forwards;
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 30px; }
  h4 { font-size: 26px; }
  h5 { font-size: 22px; }
  h6 { font-size: 16px; }

  .container { padding: 0 32px; }

  .hero__content { max-width: 96%; }

  .hero__cards-row { gap: 16px; }
  .hero__card { width: 40%; }

  .about__row { flex-direction: column-reverse; gap: 40px; }

  .services__header { flex-direction: column; }
  .services__header-text { padding-right: 0; }
  .services__grid { flex-wrap: wrap; }
  .services__grid .service-card { flex: 1 1 calc(50% - 12px); }

  .projects__grid { flex-wrap: wrap; }
  .projects__grid .project-card { flex: 1 1 calc(50% - 12px); }

  .hiw__row { flex-direction: column; gap: 40px; }

  .faq__list { max-width: 100%; }

  .section-header__desc { max-width: 80%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 22px; }
  h5 { font-size: 18px; }

  :root {
    --section-pad: 50px;
    --gap: 16px;
  }

  .container { padding: 0 20px; }

  .hamburger { display: none; }

  .header__inner { height: 64px; }

  .header__nav { display: none; }

  .btn--header { display: none; }

  .lang-flags {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    margin: 0;
    gap: 6px;
  }
  .lang-flag { width: 24px; height: 18px; }

  .fade-in-left,
  .fade-in-right {
    transform: translateY(30px) translateX(0);
  }
  .fade-in-left.visible,
  .fade-in-right.visible {
    transform: translateY(0) translateX(0);
  }

  .hero {
    min-height: auto;
    margin-top: -64px;
    padding: 150px 0 24px;
  }
  .hero__content { max-width: 100%; text-align: center; }
  .hero__text { max-width: 100%; }

  .hero__cards-row { flex-direction: column; align-items: center; gap: 12px; }
  .hero__card { width: 100%; margin-bottom: 0; }

  .about { padding: 32px 0 50px; }
  .about__row { gap: 32px; }
  .about__vm-row { grid-template-columns: 1fr; gap: 12px; }
  .about__text { width: 100%; }

  .about__stats { flex-direction: row; gap: 8px; }
  .stat-counter { padding: 14px 10px; text-align: center; }
  .stat-counter__number { font-size: 24px; }
  .stat-counter__label { font-size: 12px; }

  .services__grid { flex-direction: column; gap: 12px; }
  .services__grid .service-card { flex: 1 1 100%; }
  .service-featured { min-height: 200px; }

  .projects__grid { flex-direction: column; gap: 16px; }
  .projects__grid .project-card { flex: 1 1 100%; }

  .project-card__img {
    height: 200px;
  }

  .hiw__left { flex: none; }
  .hiw__row { gap: 20px; }
  .hiw__steps { gap: 12px; }
  .hiw__step { min-height: 120px; }
  .how-it-works { padding: 40px 0; }

  .cta { padding: 10px 0 50px; }
  .cta__bg, .cta__overlay {
    inset: 10px 20px 50px;
  }
  .cta__inner { padding: 36px 20px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .section-header { margin-bottom: 32px; }
  .section-header__desc { max-width: 100%; }

  .btn--full { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .hero__card { margin-bottom: 0; }
  html { scroll-padding-top: 70px; }
}
