:root {
  --navy: #0c2340;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --sand: #f5f0e8;
  --gold: #d4a853;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 25px 50px -12px rgba(12, 35, 64, 0.18);
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: rgba(12, 35, 64, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem;
  border-radius: 999px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--teal);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
    background:
    linear-gradient(135deg, rgba(12, 35, 64, 0.82) 0%, rgba(13, 148, 136, 0.55) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.hero p {
  font-size: 1.12rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(212, 168, 83, 0.35);
}

.btn--primary:hover {
  background: #e0b96a;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat__value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--gold);
  white-space: nowrap;
}

.stat__value--tax {
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  letter-spacing: 0.02em;
}

.stat__label {
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  section {
    padding: 3.5rem 0;
  }

  .hero__content {
    padding: 6.5rem 0 3rem;
  }

  .hero__badge {
    font-size: 0.72rem;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  .hero__stats > div {
    min-width: 0;
  }

  .stat__value {
    white-space: normal;
  }

  .terms__box {
    padding: 1.5rem;
    max-height: 420px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* About */
.about {
  background: var(--sand);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

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

.about__text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.legal-card dl {
  display: grid;
  gap: 0.65rem;
}

.legal-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.legal-card dd {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(12, 35, 64, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card__img {
  height: 180px;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card__img img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.35rem;
}

.service-card__body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* License */
.license {
  background: linear-gradient(135deg, var(--navy) 0%, #134e6f 100%);
  color: var(--white);
}

.license__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.license h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.license p {
  opacity: 0.88;
  margin-bottom: 1.5rem;
}

.license__badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.license__badge-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.license__badge-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Contact */
.contact {
  background: var(--sand);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact__info {
  display: grid;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  font-weight: 500;
  color: var(--navy);
}

.contact-item a:hover {
  color: var(--teal);
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background: #e2e8f0;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Terms */
.terms {
  background: var(--white);
}

.terms__box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.terms__box h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.terms__box h3:first-child {
  margin-top: 0;
}

.terms__box p,
.terms__box li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.terms__box ul,
.terms__box ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.terms__updated {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer p,
.footer li {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Gallery strip */
.gallery {
  padding: 0;
  overflow: hidden;
}

.gallery__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery__track img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery__track img:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .gallery__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 201;
    flex-direction: column;
    background: var(--navy);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .about__grid,
  .license__inner,
  .contact__grid,
  .services__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 1.25rem;
  }
}
