/* ─── Custom Properties ─────────────────────────────── */
:root {
  --navy:     #1A3D6D;
  --slate:    #586770;
  --silver:   #D6D9DD;
  --white:    #FFFFFF;
  --offwhite: #F7F8FA;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  line-height: 1.2;
}

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

/* ─── Navigation ─────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { max-height: 48px; width: auto; }

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

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: color 200ms ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: all 200ms ease;
}

/* Mobile backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile slide-in panel */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 85vw;
  height: 100%;
  background: var(--navy);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.nav-overlay.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-overlay a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver);
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 200ms ease;
}

.nav-overlay a:last-of-type { border-bottom: none; }

.nav-overlay a:hover,
.nav-overlay a.active { color: var(--white); }

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.375rem;
  color: var(--silver);
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 200ms ease;
}

.nav-close:hover { color: var(--white); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── Language Switch ────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--silver);
}

.lang-switch .lang-active,
.lang-switch .lang-sep {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-switch .lang-active { color: var(--navy); }

.lang-switch .lang-sep {
  color: var(--silver);
  user-select: none;
}

.lang-switch-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch-mobile .lang-active,
.lang-switch-mobile .lang-sep {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lang-switch-mobile .lang-active { color: var(--white); }

.lang-switch-mobile .lang-sep {
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.nav-overlay .lang-switch-mobile a {
  color: var(--silver);
  min-height: unset;
  display: inline;
  border-bottom: none;
}

.nav-overlay .lang-switch-mobile a:hover { color: var(--white); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-image.active { opacity: 1; }

.hero-image:first-child  { object-position: right center; }
.hero-image:nth-child(2) { object-position: center center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.52);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.hero-text {
  max-width: 640px;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
  margin-bottom: 0.625rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 1.125rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
}

.hero-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-link:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

@media (min-width: 768px) {
  .hero-headline { font-size: 3.75rem; }
}

/* ─── Section shared ─────────────────────────────────── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  display: block;
}

/* ─── Services Teaser ────────────────────────────────── */
.services-teaser {
  background: var(--offwhite);
  padding: 2rem 2rem;
}

@media (min-width: 768px) {
  .services-teaser { padding: 2.5rem 2rem; }
}

.services-teaser-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-teaser-heading {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.875rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.services-teaser-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Center last two items when 5 cards in 3-col grid */
@media (min-width: 1024px) {
  .services-grid .card:nth-child(4),
  .services-grid .card:nth-child(5) {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .services-grid .card:nth-child(1) { grid-column: 1 / 3; }
  .services-grid .card:nth-child(2) { grid-column: 3 / 5; }
  .services-grid .card:nth-child(3) { grid-column: 5 / 7; }
  .services-grid .card:nth-child(4) { grid-column: 2 / 4; }
  .services-grid .card:nth-child(5) { grid-column: 4 / 6; }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card-img-wrap img { transform: scale(1.03); }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
  position: relative;
  padding-bottom: 0.5rem;
  transition: color 200ms ease;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
}

.card:hover .card-title { color: #0f2545; }

.card-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 0.375rem;
}

/* ─── Trust Band ──────────────────────────────────────── */
.trust {
  background: var(--navy);
  padding: 1.75rem 2rem;
}

.trust-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.trust-statement {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 0.625rem;
}

.trust-statement:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .trust-statement { font-size: 1.625rem; }
}

/* ─── Contact Nudge ───────────────────────────────────── */
.contact-nudge {
  background: var(--white);
  padding: 2rem 2rem;
  text-align: center;
}

.contact-nudge h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.875rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-nudge p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--slate);
  margin-bottom: 0.875rem;
}

.nudge-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nudge-link:hover { border-bottom-color: var(--navy); }

/* ─── Servicios Page Header ───────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 1.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 3rem; }
}

.page-header p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--silver);
}

/* ─── Service Sections ────────────────────────────────── */
.service-section {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--silver);
  scroll-margin-top: 64px;
}

.service-section:last-child { border-bottom: none; }

.service-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .service-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .service-inner.reverse .service-img { order: 2; }
  .service-inner.reverse .service-body { order: 1; }
}

.service-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.service-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.875rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-body p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.625rem;
}

.service-body p:first-of-type {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.service-body p:last-child { margin-bottom: 0; }

/* ─── Contact Page ────────────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.5rem 2rem;
}

.contact-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.contact-bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  z-index: -1;
}

.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.25rem;
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem 1.25rem;
}

@media (min-width: 768px) {
  .contact-heading { font-size: 3rem; }
}

.contact-columns {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.contact-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.contact-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.contact-card p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.wa-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: opacity 200ms ease;
}

.wa-link:hover { opacity: 0.7; }

/* Form */
.contact-form label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--silver);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--slate);
  outline: none;
  transition: border-color 200ms ease;
  appearance: none;
  border-radius: 0;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23586770' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--navy); }

.contact-form textarea { resize: vertical; }

.form-group { margin-bottom: 0.875rem; }

.field-error {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.375rem;
}

.field-error.visible { display: block; }

.form-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background 200ms ease;
}

.form-submit:hover { background: #0f2545; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }
  .footer-nav, .footer-social { justify-content: center; }
}

.footer-logo img { max-width: 120px; height: auto; }

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver);
  transition: color 200ms ease;
}

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

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: var(--silver);
  transition: color 200ms ease;
  display: flex;
  align-items: center;
}

.footer-social a {
  padding: 12px;
  margin: -12px;
}

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

.footer-social svg { width: 20px; height: 20px; }

.footer-bar {
  background: var(--offwhite);
  border-top: 1px solid var(--silver);
  padding: 0.625rem 2rem;
  text-align: center;
}

.footer-zone {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.footer-bar p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
}

.footer-bar a {
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.footer-bar a:hover { border-bottom-color: var(--navy); }

.footer-privacy {
  font-size: 0.6875rem;
  color: var(--silver);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.contact-meta {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.contact-meta a {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.contact-meta a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover { background: #0f2545; }

.form-email-ref {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.form-email-ref a {
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.form-email-ref a:hover { border-bottom-color: var(--navy); }

/* ─── 404 ────────────────────────────────────────────── */
.not-found {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--offwhite);
}

.not-found-inner {
  text-align: center;
  max-width: 480px;
}

.not-found-code {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 6rem;
  color: var(--silver);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.not-found-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.not-found-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.not-found-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease;
}

.not-found-links a:hover { border-bottom-color: var(--navy); }

/* ─── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image,
  .card-img-wrap img,
  .nav-overlay,
  .nav-backdrop,
  .nav-links a,
  .nav-overlay a,
  .nav-close,
  .hero-link,
  .nudge-link,
  .wa-link,
  .footer-bar a,
  .form-email-ref a,
  .form-submit,
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .scroll-top,
  .contact-meta a { transition: none; }
}
