/* ============================================
   Andoni Arberas - Asesor Fiscal
   Design System: Minimal Personal + Trust
   ============================================ */

/* --- Design Tokens --- */
:root {
  --c-navy: #1B2A4A;
  --c-navy-light: #2A3D5E;
  --c-amber: #C5963A;
  --c-amber-light: #D4A94E;
  --c-amber-dark: #A67B2E;
  --c-bg: #FAFAF8;
  --c-bg-alt: #F3F1EE;
  --c-surface: #FFFFFF;
  --c-text: #333333;
  --c-text-light: #666666;
  --c-text-muted: #999999;
  --c-border: #E5E2DC;

  --ff-heading: 'Lora', Georgia, serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  --max-w: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;

  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06);
  --shadow-md: 0 4px 20px rgba(27,42,74,0.08);
  --shadow-lg: 0 8px 40px rgba(27,42,74,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-amber);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--c-amber-dark); }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--c-navy);
  line-height: 1.2;
  font-weight: 700;
}

::selection { background: var(--c-amber); color: #fff; }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  width: 120px;
  height: 120px;
  position: relative;
}

.preloader__logo svg {
  width: 100%;
  height: 100%;
}

.preloader__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logoReveal 1.6s ease both;
}

@keyframes logoReveal {
  0% { opacity: 0; transform: scale(0.6); filter: blur(8px); }
  50% { opacity: 1; transform: scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.preloader__logo .letter-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLetter 1.8s ease forwards;
  stroke: var(--c-amber);
  fill: none;
  stroke-width: 2;
}

.preloader__logo .letter-path:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes drawLetter {
  to { stroke-dashoffset: 0; }
}

.preloader__text {
  color: rgba(255,255,255,0.5);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: var(--space-md);
  animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.preloader__bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: var(--space-sm);
  border-radius: 1px;
  overflow: hidden;
}

.preloader__bar::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: var(--c-amber);
  animation: loadBar 2s ease-in-out forwards;
}

@keyframes loadBar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo svg { height: 36px; width: auto; }
.logo__mark { color: var(--c-amber); }

.nav { display: flex; align-items: center; gap: var(--space-xs); }

.nav__link {
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.nav__link:hover, .nav__link.active {
  color: var(--c-amber);
  background: rgba(197,150,58,0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 24px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--c-amber);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-amber-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(197,150,58,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--c-navy);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-amber);
  color: var(--c-amber);
}

.btn svg { width: 16px; height: 16px; }

/* Nav toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.hero__overline .line {
  width: 32px;
  height: 1.5px;
  background: var(--c-amber);
}

.hero__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--c-amber);
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--c-text-light);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  line-height: 1.8;
}

.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--c-border);
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
}

.hero__trust-number {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1;
}

.hero__trust-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 0.25rem;
}

.hero__image {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-lg);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--c-amber);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  z-index: -1;
}

/* --- Sections --- */
.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--navy { background: var(--c-navy); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.section__overline {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.section__desc {
  color: var(--c-text-light);
  font-size: var(--fs-base);
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  border-color: rgba(197,150,58,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Card mouse-follow glow */
.service-card::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle 180px at var(--glow-x, 50%) var(--glow-y, 50%), rgba(197,150,58,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

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

.service-card > *,
.testimonial-card > * { position: relative; z-index: 1; }

.service-card, .testimonial-card { position: relative; overflow: hidden; }

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,150,58,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--c-amber);
}

.service-card__icon svg { width: 24px; height: 24px; }

.service-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
  font-family: var(--ff-heading);
  color: var(--c-navy);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.7;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-bg-alt);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content h2 { margin-bottom: var(--space-md); }

.about__content p {
  color: var(--c-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: rgba(197,150,58,0.06);
  border: 1px solid rgba(197,150,58,0.15);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-navy);
}

.credential svg { width: 14px; height: 14px; color: var(--c-amber); }

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.process-step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: rgba(197,150,58,0.15);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.process-step__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  color: var(--c-navy);
  margin-bottom: var(--space-xs);
}

.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
  color: var(--c-amber);
}

.testimonial-card__stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-card__author {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--c-navy);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary { background: var(--c-amber); }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.2); }
.cta-banner .btn-outline:hover { border-color: var(--c-amber); color: var(--c-amber); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,150,58,0.08);
  border-radius: var(--radius-sm);
  color: var(--c-amber);
}

.contact-info__icon svg { width: 20px; height: 20px; }

.contact-info__label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25em;
}

.contact-info__value {
  color: var(--c-navy);
  font-weight: 500;
}

.contact-info__value a { color: var(--c-navy); }
.contact-info__value a:hover { color: var(--c-amber); }

.form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(197,150,58,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}

.form-check input[type="checkbox"] { accent-color: var(--c-amber); margin-top: 3px; }

/* --- Footer --- */
.footer {
  background: var(--c-navy);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-sm);
  line-height: 1.7;
}

.footer .logo { color: #fff; }

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__links a:hover { color: var(--c-amber); }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.footer__contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--c-amber);
  flex-shrink: 0;
}

.footer__contact-item a { color: rgba(255,255,255,0.7); }
.footer__contact-item a:hover { color: var(--c-amber); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--c-amber); }

/* --- Kit Digital Banner --- */
.kit-digital {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--space-sm) 0;
  text-align: center;
}

.kit-digital img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.kit-digital img:hover { opacity: 1; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children animation */
.stagger-children.visible > * {
  animation: staggerIn 0.5s var(--ease-out) both;
}
.stagger-children.visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 320ms; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 400ms; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hover Effects --- */

/* Card 3D tilt */
.tilt-card {
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Magnetic button effect */
.btn-magnetic {
  transition: transform 0.15s ease-out;
}

/* Floating animation for hero accent */
.float-anim {
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-0.5deg); }
}

/* Underline slide on hover */
.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-amber);
  transition: width 0.3s var(--ease-out);
}

.hover-underline:hover::after { width: 100%; }

/* Icon spin on card hover */
.service-card:hover .service-card__icon svg {
  animation: iconPop 0.4s var(--ease-out);
}

@keyframes iconPop {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.15) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Testimonial card lift */
.testimonial-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197,150,58,0.2);
}

/* Process step number glow on hover */
.process-step:hover::before {
  color: rgba(197,150,58,0.4);
  transition: color 0.3s ease;
}

/* Cursor glow (desktop only) */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,150,58,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

/* Hero overline line animation */
.hero__overline .line {
  animation: lineGrow 0.8s var(--ease-out) 0.5s both;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 32px; }
}

/* Parallax layer (subtle) */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-amber);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 999;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(197,150,58,0.3); }
.scroll-top svg { width: 20px; height: 20px; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  flex: 1;
}

.cookie-banner__text a { text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: var(--space-xs); flex-shrink: 0; }

.cookie-btn {
  padding: 8px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-family: var(--ff-body);
  transition: all var(--duration-fast) var(--ease-out);
}

.cookie-btn--accept { background: var(--c-amber); color: #fff; }
.cookie-btn--accept:hover { background: var(--c-amber-dark); }
.cookie-btn--reject { background: var(--c-bg-alt); color: var(--c-text); }
.cookie-btn--reject:hover { background: var(--c-border); }
.cookie-btn--config { background: transparent; color: var(--c-text-light); text-decoration: underline; }

/* --- Map --- */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-top: var(--space-lg);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Page Hero (subpages) --- */
.page-hero { padding: var(--space-2xl) 0 var(--space-xl); background: var(--c-navy); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 0.5em; font-size: var(--fs-xs); color: rgba(255,255,255,0.5); margin-bottom: var(--space-md); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--c-amber); }
.breadcrumb .sep { opacity: 0.4; }
.page-hero__title { font-size: var(--fs-2xl); margin-bottom: var(--space-sm); color: #fff; }
.page-hero__title em { font-style: italic; color: var(--c-amber); }
.page-hero__desc { font-size: var(--fs-base); color: rgba(255,255,255,0.6); max-width: 600px; }

/* --- Service Detail (subpage) --- */
.service-detail { max-width: 800px; margin: 0 auto; }

.service-detail__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,150,58,0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--c-amber);
}

.service-detail__icon svg { width: 32px; height: 32px; }

.service-detail__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
  color: var(--c-navy);
}

.service-detail p {
  color: var(--c-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.service-detail__includes {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.service-detail__list {
  list-style: none;
  padding: 0;
}

.service-detail__list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75rem;
  color: var(--c-text-light);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-amber);
  opacity: 0.6;
}

/* --- Legal Pages --- */
.legal-content { max-width: 800px; margin: 0 auto; }

.legal-content h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-lg); }
.legal-content h2 { font-size: var(--fs-xl); margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.legal-content h3 { font-size: var(--fs-lg); margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.legal-content p { margin-bottom: var(--space-sm); color: var(--c-text-light); }
.legal-content ul { margin-bottom: var(--space-sm); padding-left: var(--space-lg); color: var(--c-text-light); }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--c-text); }

/* --- Blog Cards --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-lg); }
.blog-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--space-xl); transition: all 0.3s ease; display: block; text-decoration: none; }
.blog-card:hover { border-color: rgba(197,150,58,0.3); transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card__badge { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--c-amber); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.blog-card__date { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: 0.75rem; }
.blog-card__title { font-family: var(--ff-heading); font-size: var(--fs-lg); color: var(--c-navy); margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--c-text-light); line-height: 1.7; margin-bottom: 1rem; }
.blog-card__link { font-size: var(--fs-sm); font-weight: 600; color: var(--c-amber); display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; }
.blog-card__link:hover { color: var(--c-amber-dark); }

/* --- Contact Page --- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-aside__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.contact-aside__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197,150,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-aside__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-amber);
}
.contact-aside__label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-aside__value {
  font-size: var(--fs-base);
  color: var(--c-text);
}
.contact-aside__value a {
  color: var(--c-text);
  text-decoration: none;
}
.contact-aside__value a:hover {
  color: var(--c-amber);
}
.alt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.alt-contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
}
.alt-contact-card:hover {
  border-color: rgba(197,150,58,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.alt-contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
}
.alt-contact-card__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--c-amber);
}
.alt-contact-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  color: var(--c-navy);
  margin-bottom: 0.5rem;
}
.alt-contact-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* --- WP Pagination --- */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-links a:hover {
  border-color: var(--c-amber);
  color: var(--c-amber);
}
.nav-links .current {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__image { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about__image { max-width: 400px; margin: 0 auto; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-bg);
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    overflow-y: auto;
  }

  .nav.open { transform: translateX(0); }

  .nav__link {
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 20px;
    width: 100%;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }

  .nav .btn {
    margin: 16px 20px;
    width: calc(100% - 40px);
    justify-content: center;
  }

  .nav-toggle { display: flex; position: relative; z-index: 10000; }

  .section { padding: var(--space-2xl) 0; }
  .section__header { margin-bottom: var(--space-lg); }

  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .alt-contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

  .cookie-banner .container { flex-direction: column; text-align: center; }
  .cookie-banner__actions { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero__trust { flex-direction: column; gap: var(--space-sm); }
  .process-grid { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .preloader { display: none; }
}
