/* ============================================================
   Rechtsanwaltskanzlei Huber – Kufstein
   Design System 2025
   ============================================================ */

/* --- Tokens --- */
:root {
  --navy:       #1C2B4A;
  --navy-dark:  #111d33;
  --cyan:       #2EB5A0;
  --cyan-dark:  #1E9C89;
  --cyan-light: rgba(46,181,160,.12);
  --white:      #ffffff;
  --off-white:  #F8F9FB;
  --dark:       #111827;
  --gray:       #6B7280;
  --gray-light: #9CA3AF;
  --border:     #E5E7EB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --radius:     6px;
  --radius-lg:  12px;
  --max-w:      1200px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --transition: .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { color: var(--gray); line-height: 1.8; }
p + p { margin-top: 1rem; }

/* --- Layout --- */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
section { padding: clamp(4rem, 9vw, 8rem) 0; }

.section-label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .75rem;
  display: block;
}
.section-label--light { color: rgba(255,255,255,.5); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-title { margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .875rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .8rem 1.75rem; border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--cyan-light); color: var(--dark); border-color: var(--cyan); }
.btn--primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline-light { background: transparent; color: var(--dark); border-color: rgba(28,43,74,.3); }
.btn--outline-light:hover { background: rgba(28,43,74,.06); border-color: var(--dark); }
.btn--text {
  background: transparent; border-color: transparent;
  color: var(--gray); padding-left: 0; padding-right: 0;
  font-weight: 500; text-transform: none; letter-spacing: 0;
}
.btn--text:hover { color: var(--dark); background: transparent; border-color: transparent; }
.btn--sm { padding: .55rem 1.25rem; font-size: .8rem; }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.site-header.is-sticky { box-shadow: var(--shadow-md); border-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 76px; display: flex; align-items: center; gap: 2rem;
}

.site-logo {
  display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.site-header.logo-visible .site-logo { opacity: 1; pointer-events: auto; }
.site-logo img { height: 52px; width: auto; object-fit: contain; }
.site-logo__text { display: none; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: .25rem; align-items: center; }
.site-nav__list a {
  font-size: .84rem; font-weight: 400; color: var(--gray);
  letter-spacing: .02em;
  padding: .45rem .65rem; border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav__list a:hover { color: var(--dark); background: var(--cyan-light); }

.header-cta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--navy);
  background: var(--cyan-light); border: 1px solid var(--cyan);
  padding: .5rem 1rem; border-radius: var(--radius);
  transition: all var(--transition); flex-shrink: 0;
}
.header-cta:hover { background: var(--cyan); color: var(--navy); }
.header-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all var(--transition);
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 46fr 54fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  background: var(--white);
  position: relative; overflow: hidden;
}

.hero__content {
  min-height: 0;
  padding: calc(76px + 1rem) clamp(2.5rem, 5vw, 5rem) 2rem clamp(2.5rem, 5vw, 5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative; z-index: 2;
}

.hero__logo {
  width: clamp(155px, 16vw, 205px);
  height: auto;
  margin-bottom: 1rem; opacity: .92;
}

.hero__eyebrow {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: .5rem;
}

.hero__title {
  font-family: var(--font-head); font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.15; margin-bottom: .9rem;
}
.hero__title em { font-style: normal; color: var(--cyan-dark); }

.hero__sub {
  font-size: .88rem; color: var(--gray);
  line-height: 1.65; margin-bottom: 1.75rem; max-width: 400px;
}

.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  margin-top: 1.2rem;
  color: var(--gray-light);
  animation: scroll-bob 2.2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
.hero .btn--ghost {
  color: var(--dark); border-color: rgba(0,0,0,.2);
}
.hero .btn--ghost:hover { background: rgba(0,0,0,.06); color: var(--dark); border-color: rgba(0,0,0,.35); }

.hero__image {
  overflow: hidden;
  position: relative;
  min-height: 0;
  aspect-ratio: 887 / 1462;
  max-height: calc(100vh - calc(76px + 1.25rem) - 1.75rem);
  margin: calc(76px + 1.25rem) 1.75rem 1.75rem 1.75rem;
  justify-self: center;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
}
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Large H watermark */
.hero::after {
  content: 'H';
  position: absolute; left: -1%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head); font-size: clamp(16rem, 26vw, 30rem);
  font-weight: 700; color: rgba(28,43,74,.035);
  line-height: 1; pointer-events: none; z-index: 0; user-select: none;
  letter-spacing: -.02em;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--off-white); border-bottom: 1px solid var(--border); }
.trust-bar section { padding: 0; }
.trust-bar__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap;
  divide-x: 1px solid var(--border);
}
.trust-item {
  flex: 1 1 160px;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item__value {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: .35rem;
}
.trust-item__label { font-size: .78rem; color: var(--gray); letter-spacing: .04em; font-weight: 500; }


/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card--more { background: var(--off-white); border-style: dashed; }
.service-card--more:hover { background: var(--white); }

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--cyan-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; flex-shrink: 0;
  transition: background var(--transition);
}
.service-card:hover .service-card__icon { background: var(--cyan); }
.service-card__icon svg { width: 22px; height: 22px; color: var(--navy); stroke: var(--navy); }

.service-card__title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--navy); margin-bottom: .65rem; line-height: 1.35;
}
.service-card__text { font-size: .875rem; color: #4B5563; line-height: 1.7; flex: 1; }
.service-card__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray);
  margin-top: 1.25rem;
  transition: gap var(--transition), color var(--transition);
}
.service-card__link::after { content: '→'; }
.service-card:hover .service-card__link { gap: .55rem; color: var(--navy); }


/* ============================================================
   ATTORNEY
   ============================================================ */
.attorney { background: var(--off-white); }

.attorney__inner {
  display: grid; grid-template-columns: 380px 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}

.attorney__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.attorney__image-wrap img { width: 100%; object-fit: cover; }

.attorney__content h2 { margin-bottom: .35rem; }
.attorney__title-label {
  font-size: .8rem; color: var(--gray); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; display: block;
}
.attorney__content p { margin-bottom: 1rem; }
.attorney__content .btn { margin-top: 1rem; }


/* ============================================================
   TRADITION
   ============================================================ */
.tradition {
  background: var(--off-white);
  position: relative; overflow: hidden;
}
.tradition::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(64,224,230,.12) 0%, transparent 70%);
  pointer-events: none;
}

.tradition__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}

.tradition__content .section-label--light { color: var(--gray); }
.tradition__content h2 {
  color: var(--navy); margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.tradition__content p { color: var(--gray); margin-bottom: 1rem; }
.tradition__content .btn { margin-top: 1.25rem; }

.tradition__stats { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; text-align: center; min-width: 160px;
  box-shadow: var(--shadow-sm);
}
.stat-card__value {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--navy); display: block; line-height: 1;
}
.stat-card__label { font-size: .78rem; color: var(--gray); margin-top: .4rem; display: block; }

/* ============================================================
   BEWERTUNGEN / REVIEWS
   ============================================================ */
.reviews { background: var(--white); }

.reviews__rating {
  display: flex; align-items: center; gap: .75rem;
  justify-content: center; color: var(--gray); font-size: .9375rem;
  margin-top: .75rem;
}
.reviews__stars { color: #F59E0B; font-size: 1.25rem; letter-spacing: 2px; }

.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}

.review-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }

.review-card__stars { color: #F59E0B; font-size: 1.125rem; letter-spacing: 2px; }

.review-card__text {
  color: #4B5563; font-size: .9375rem; line-height: 1.7;
  flex: 1;
}

.review-card__author { display: flex; flex-direction: column; gap: .2rem; margin-top: auto; }
.review-card__name { font-weight: 600; color: var(--navy); font-size: .875rem; }
.review-card__meta { color: var(--gray-light); font-size: .8125rem; }

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

@media (max-width: 768px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTAGRAM meta (shared)
   ============================================================ */
.insta-section__meta {
  display: flex; gap: 2rem; color: var(--gray); font-size: .9rem;
}
.insta-section__meta strong { color: var(--dark); }

.insta-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
.insta-preview--mini {
  grid-template-columns: repeat(2, 1fr);
  max-width: 200px;
}
.insta-preview__tile {
  aspect-ratio: 1; background: var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.insta-preview__tile svg { width: 24px; height: 24px; opacity: .35; }

/* ============================================================
   SOCIAL MEDIA – combined Instagram + Video
   ============================================================ */
.social-media-section {
  background: var(--off-white);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.social-media__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.social-media__title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: .6rem;
}
.social-media__col p { margin-bottom: 0; }

/* ============================================================
   VIDEO
   ============================================================ */
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-lg); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-cta {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
}
.contact-cta .section-header { margin-bottom: 3rem; }
.contact-cta__inner {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-cta__form h3 {
  font-size: 1.25rem; color: var(--navy);
  margin-bottom: 1.25rem; font-family: var(--font-head);
}
.contact-cta__form iframe {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  width: 100%;
}
.contact-cta__map { margin-top: 1.5rem; }


/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--cyan); }

.faq-item__q {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--navy); padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+'; font-family: var(--font-body); font-size: 1.4rem;
  font-weight: 300; color: var(--navy); flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] .faq-item__q { background: var(--cyan-light); }
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:hover { background: var(--off-white); }

.faq-item__a { padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--border); }
.faq-item__a p { padding-top: 1rem; font-size: .95rem; }
.faq-item__a a { color: var(--cyan-dark); text-decoration: underline; }


.contact-cta__details { display: flex; flex-direction: column; gap: 1rem; }

.contact-method {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--dark);
}
.contact-method:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); }
.contact-method svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--navy); margin-top: .15rem; }
.contact-method span { display: flex; flex-direction: column; }
.contact-method strong { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light); margin-bottom: .2rem; }

.contact-cta__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-cta__map iframe { width: 100%; display: block; border: none; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }

.site-footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem;
  max-width: var(--max-w); margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

.site-footer__brand img { margin-bottom: .85rem; filter: brightness(0) invert(1) opacity(.8); }
.site-footer__brand p { font-size: .9rem; color: var(--white); line-height: 1.5; margin-bottom: 1rem; }
.site-footer__brand address { font-size: .85rem; line-height: 1.9; }
.site-footer__brand address a { color: rgba(255,255,255,.6); }
.site-footer__brand address a:hover { color: var(--cyan); }

.site-footer__nav h3 {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1.1rem;
}
.site-footer__nav ul { display: flex; flex-direction: column; gap: .6rem; }
.site-footer__nav a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.site-footer__nav a:hover { color: var(--cyan); }

.site-footer__social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.site-footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--transition);
}
.site-footer__social a:hover { background: var(--cyan); color: var(--navy); }
.site-footer__social svg { width: 16px; height: 16px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
}
.site-footer__bottom .section-inner { display: flex; justify-content: center; }
.site-footer__bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }


/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.whatsapp-fab.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.whatsapp-fab:hover { opacity: .88; }
.whatsapp-fab svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-fab span { display: none; }


/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  opacity: 0; transform: translateY(.5rem);
  pointer-events: none;
  transition: all .25s ease;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.scroll-top svg { width: 18px; height: 18px; }


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 200;
  max-width: 420px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 1.25rem 1.5rem;
  opacity: 0; transform: translateY(1rem);
  pointer-events: none; transition: all .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner__text { font-size: .85rem; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }
.cookie-banner__text a { color: var(--cyan-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .75rem; justify-content: flex-end; }


/* ============================================================
   LOADING SCREEN
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.page-loader__logo {
  width: 200px; height: auto;
  opacity: .9;
}
.page-loader__bar { display: none; }
@keyframes loader-line {
  to { width: 100%; }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal {
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* Stagger for grids — only hidden when JS is active (progressive enhancement) */
.js .service-card { opacity: 0; transform: translateY(24px); }
.service-card {
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
}
.service-card.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   SMOOTH SECTION TRANSITIONS & MICRO-INTERACTIONS
   ============================================================ */

/* Hero title word highlight on load */
.hero__title em {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated underline on nav links */
.site-nav__list a { position: relative; }
.site-nav__list a::after {
  content: '';
  position: absolute; bottom: 2px; left: .75rem; right: .75rem; height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: right;
  transition: transform .25s ease;
}
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Service card shimmer on hover */
.service-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--white) 100%);
  background-size: 200% 100%;
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1),
              border-color .2s, box-shadow .2s, background-position .4s;
}
.service-card:hover { background-position: 100% 0; }

/* Trust bar counter animation placeholder */
.trust-item__value { display: block; }

/* Stat cards stagger in tradition section */
.js .stat-card { opacity: 0; transform: translateY(20px); }
.stat-card {
  transition: opacity .5s ease, transform .5s ease, background .2s;
}
.stat-card.is-visible { opacity: 1; transform: translateY(0); }
.stat-card:hover { box-shadow: var(--shadow-md); }

/* FAQ smooth height transition */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
details[open] .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > * { overflow: hidden; }

/* Contact method lift on hover */
.contact-method { position: relative; }
.contact-method::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--cyan); border-radius: 3px 0 0 3px;
  transform: scaleY(0); transition: transform .2s ease;
}
.contact-method:hover::before { transform: scaleY(1); }

/* Footer link hover underline */
.site-footer__nav a { position: relative; display: inline-block; }
.site-footer__nav a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-footer__nav a:hover::after { transform: scaleX(1); }

/* WhatsApp FAB mobile */
@media (max-width: 768px) {
  .whatsapp-fab { border-radius: 10px; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .attorney__inner { grid-template-columns: 1fr 1fr; }
  .tradition__inner { grid-template-columns: 1fr; }
  .tradition__stats { flex-direction: row; }
  .contact-cta__inner { grid-template-columns: 1fr 1fr; }
  .contact-cta__map { grid-column: 1 / -1; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: 100svh; }
  .hero__image { height: 60vw; min-height: 280px; margin: 1rem; border-radius: 12px; }
  .hero__content { padding: calc(76px + 1.5rem) 1.5rem 2rem; justify-content: flex-start; }
  .hero__image::after { background: linear-gradient(to bottom, var(--white) 0%, transparent 40%); }

  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column;
    position: fixed; inset: 70px 0 0;
    background: var(--white); padding: 2rem 1.5rem;
    overflow-y: auto;
  }
  .site-header.nav-open .site-nav__list { flex-direction: column; gap: .5rem; }
  .site-header.nav-open .site-nav__list a { font-size: 1.1rem; padding: .75rem 1rem; }

  .attorney__inner { grid-template-columns: 1fr; }
  .attorney__image-wrap { max-width: 360px; margin: 0 auto; }

  .social-media__grid { grid-template-columns: 1fr; }
  .insta-preview--mini { max-width: none; grid-template-columns: repeat(4, 1fr); }

  .contact-cta__inner { grid-template-columns: 1fr; }

  .trust-bar__inner { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }

  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .tradition__stats { flex-direction: column; }
  .stat-card { min-width: auto; }

  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: .85rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
}
