/* ========================================
   Credigios – Style Sheet
   ======================================== */

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

:root {
  --green-deep: hsl(155, 60%, 12%);
  --green-dark: hsl(155, 55%, 18%);
  --green-medium: hsl(158, 45%, 28%);
  --green-light: hsl(155, 35%, 40%);
  --green-pale: hsl(150, 25%, 95%);
  --gold: hsl(43, 85%, 62%);
  --gold-light: hsl(43, 80%, 75%);
  --gold-dark: hsl(40, 70%, 42%);
  --bg: hsl(140, 10%, 97%);
  --fg: hsl(150, 20%, 10%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(140, 15%, 88%);
  --muted: hsl(150, 10%, 40%);
  --secondary-bg: hsl(155, 30%, 94%);
  --radius: 0.75rem;
  --shadow-card: 0 8px 32px -8px hsla(155, 30%, 20%, 0.12);
  --shadow-card-hover: 0 16px 48px -12px hsla(155, 30%, 20%, 0.2);
  --shadow-hero: 0 25px 60px -15px hsla(0, 0%, 0%, 0.35);
  --gradient-hero: linear-gradient(135deg, var(--green-deep), var(--green-medium));
  --gradient-gold: linear-gradient(135deg, var(--gold), hsl(40, 90%, 55%));
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* -- Utilities -- */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }

/* -- Buttons -- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient-gold);
  color: var(--green-deep);
  font-weight: 700; font-family: 'DM Sans', sans-serif;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px -6px hsla(40, 70%, 42%, 0.3);
  transition: transform 0.2s;
}
.btn-gold:hover { transform: scale(1.02); }
.btn-gold:active { transform: scale(0.98); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* -- Header -- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: hsla(155, 60%, 12%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(158, 45%, 28%, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.header-logo { height: 5rem; object-fit: contain; }
.btn-header {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--green-deep);
  font-weight: 600; font-size: 0.875rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  transition: opacity 0.2s;
}
.btn-header:hover { opacity: 0.9; }
@media (min-width: 640px) { .btn-header { display: inline-flex; } }

/* -- Hero -- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  color: var(--gold-light);
  padding: 5rem 0;
}
@media (min-width: 1024px) { .hero { padding: 7rem 0; } }

.hero-bg-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.blob-1 { top: -10rem; right: -10rem; width: 24rem; height: 24rem; background: hsla(43, 85%, 62%, 0.05); }
.blob-2 { bottom: -5rem; left: -5rem; width: 18rem; height: 18rem; background: hsla(43, 85%, 62%, 0.05); }
.hero-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50rem; height: 50rem; border-radius: 50%;
  border: 1px solid hsla(158, 45%, 28%, 0.1);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero-badge {
  display: inline-block;
  background: hsla(43, 85%, 62%, 0.15);
  color: var(--gold-light);
  padding: 0.375rem 1rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem; color: hsla(43, 80%, 75%, 0.8);
  max-width: 32rem; margin-bottom: 2rem; line-height: 1.7;
}

.hero-benefits { list-style: none; margin-bottom: 2.5rem; }
.hero-benefits li {
  display: flex; align-items: center; gap: 0.75rem;
  color: hsla(43, 80%, 75%, 0.9);
  margin-bottom: 0.75rem;
}
.check-icon {
  display: flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: hsla(43, 85%, 62%, 0.2);
  color: var(--gold); font-size: 0.7rem; flex-shrink: 0;
}

.hero-image { display: flex; justify-content: center; position: relative; }
@media (min-width: 1024px) { .hero-image { justify-content: flex-end; } }
.hero-img-glow {
  position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: hsla(43, 85%, 62%, 0.1); filter: blur(24px);
}
.hero-image img {
  position: relative; width: 100%; max-width: 28rem;
  border-radius: 1.5rem; object-fit: cover;
  box-shadow: var(--shadow-hero);
}

.hero-floating-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--card); border-radius: 1rem;
  padding: 1rem; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.75rem;
}
.badge-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsla(43, 85%, 62%, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.badge-title { font-size: 0.875rem; font-weight: 700; color: var(--fg); }
.badge-sub { font-size: 0.75rem; color: var(--muted); }

/* Floating animation */
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* -- Sections -- */
.section { padding: 6rem 0; }
.bg-light { background: var(--bg); }
.bg-secondary-section { background: var(--secondary-bg); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
}
.section-tag.light { color: var(--gold-light); }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--fg); margin-top: 0.75rem; }
.section-line { width: 4rem; height: 0.25rem; background: var(--gradient-gold); border-radius: 9999px; margin: 1rem auto 0; }

/* -- Services -- */
.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--card); border-radius: 1rem; padding: 2rem;
  box-shadow: var(--shadow-card); border: 1px solid hsla(140, 15%, 88%, 0.5);
  transition: all 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background: hsla(43, 85%, 62%, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* -- Steps -- */
.steps-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step { text-align: center; }
.step-number { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.step h3 { font-size: 1.125rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* -- Advantages -- */
.advantages-section {
  background: var(--gradient-hero); color: var(--gold-light);
  position: relative; overflow: hidden;
}
.advantages-bg { position: absolute; inset: 0; pointer-events: none; }

.advantages-grid { display: grid; gap: 4rem; align-items: center; position: relative; }
@media (min-width: 1024px) { .advantages-grid { grid-template-columns: 1fr 1fr; } }

.advantages-text h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 0.75rem 0 2rem; }

.advantages-list { margin-bottom: 2.5rem; }
.advantage-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.advantage-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: hsla(43, 85%, 62%, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.advantage-item span { font-size: 1.125rem; color: hsla(43, 80%, 75%, 0.9); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat-card {
  background: hsla(158, 45%, 28%, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
  border: 1px solid hsla(158, 45%, 28%, 0.2);
}
.stat-number { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 0.25rem; font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.8rem; color: hsla(43, 80%, 75%, 0.7); }

/* -- Location -- */
.location-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1fr 1fr; } }

.location-intro { font-size: 1.125rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }

.location-details { margin-bottom: 1.5rem; }
.location-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.location-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: hsla(43, 85%, 62%, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0; margin-top: 0.125rem;
}
.location-label { font-weight: 600; color: var(--fg); margin-bottom: 0.125rem; }
.location-value { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

.carousel {
  position: relative; border-radius: 1rem; overflow: hidden;
  aspect-ratio: 16/10;
}
.carousel-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.5s;
}
.carousel-img.active { opacity: 1; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsla(155, 60%, 12%, 0.8);
  backdrop-filter: blur(4px);
  border: none; cursor: pointer;
  color: var(--gold-light); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--green-deep); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: hsla(43, 80%, 75%, 0.5);
  border: none; cursor: pointer; transition: all 0.3s;
}
.dot.active { background: var(--gold); width: 1.5rem; }

.map-wrapper { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); margin-top: 1.25rem; }
.map-wrapper iframe { width: 100%; height: 14rem; border: none; }

/* -- CTA -- */
.cta-section {
  background: var(--gradient-hero); position: relative; overflow: hidden;
  padding: 5rem 0;
}
.cta-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 37rem; height: 37rem; border-radius: 50%;
  border: 1px solid hsla(158, 45%, 28%, 0.1); pointer-events: none;
}
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--gold-light); margin-bottom: 1rem; }
.cta-inner p { font-size: 1.125rem; color: hsla(43, 80%, 75%, 0.8); max-width: 36rem; margin: 0 auto 2rem; }

/* -- Footer -- */
.footer { background: var(--green-deep); color: hsla(43, 80%, 75%, 0.7); padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-logo { height: 5rem; object-fit: contain; }
.footer-text { text-align: center; font-size: 0.875rem; }
.footer-text p + p { margin-top: 0.25rem; }
.footer-meta { display: flex; gap: 1.5rem; font-size: 0.75rem; color: hsla(43, 80%, 75%, 0.5); }

/* -- Animations -- */
.animate-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-fade-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.animate-fade-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.animate-up.visible, .animate-fade-left.visible, .animate-fade-right.visible {
  opacity: 1; transform: translate(0);
}


/* -- Icon system -- */
.icon-sm, .icon-md { flex-shrink: 0; }
.service-icon svg,
.advantage-icon svg,
.location-icon svg { width: 1.5rem; height: 1.5rem; }
.icon-gold { color: var(--gold); }
.icon-green { color: var(--green-medium); }
.icon-white { color: hsl(0, 0%, 100%); }

/* -- Header adjustments -- */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 5rem;
}
.header-spacer { min-width: 0; }
.header-actions {
  display: flex;
  justify-content: flex-end;
}
.header-logo {
  height: 5rem;
  object-fit: contain;
  justify-self: center;
}
@media (max-width: 639px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .header-spacer {
    display: none;
  }
  .header-actions {
    display: none;
  }
}

/* -- Section icon refinements -- */
.service-icon,
.advantage-icon,
.location-icon {
  box-shadow: inset 0 0 0 1px hsla(43, 85%, 62%, 0.08);
}

.advantage-icon.icon-white,
.location-icon.icon-white,
.service-icon.icon-white {
  color: var(--gold-light);
}

/* -- Social buttons -- */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-social:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}
.btn-social-facebook {
  background: hsl(155, 42%, 16%);
  color: var(--gold-light);
  border-color: hsla(43, 85%, 62%, 0.24);
  box-shadow: 0 10px 24px -12px hsla(155, 60%, 12%, 0.45);
}
.btn-social-instagram {
  background: linear-gradient(135deg, hsl(43, 85%, 62%), hsl(155, 45%, 28%));
  color: white;
  box-shadow: 0 10px 24px -12px hsla(43, 85%, 62%, 0.45);
}
