/* LUXORA — shared styles (EN / ES) */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #19233c;
  --gold: #b7a16d;
  --ivory: #f2f0e7;
  --warm-white: #f8f7f2;

  --display: "Cormorant Garamond", "Baskerville", "Palatino Linotype", "Times New Roman", serif;
  --body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --frame: clamp(1rem, 2.2vw, 2.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--navy);
  background: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Tap targets respond immediately on iPhone; zoom remains enabled. */
a {
  touch-action: manipulation;
}

/* Full-window two-column composition */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Left: identity ---------- */
.identity {
  display: grid;
  place-items: center;
  position: relative;
  padding: var(--frame);
  background: var(--navy);
  color: var(--ivory);
  container-type: inline-size;
}

.frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: min(70vh, 44rem);
  padding: clamp(2rem, 8vw, 7rem) clamp(1rem, 3vw, 4rem);
  border: 1px solid var(--gold);
}

.wordmark {
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(2rem, 13vw, 9rem); /* fallback for browsers without container units */
  font-size: clamp(2rem, 15cqw, 9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-align: center;
  /* optical centering: letter-spacing adds trailing space */
  text-indent: 0.14em;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

/* ---------- Right: contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  padding: var(--gutter);
  min-width: 0;
}

.lang {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: 1.2;
}

.lang a:hover {
  border-bottom-color: var(--gold);
}

.lang a[aria-current="page"] {
  color: #6b5b39; /* darkened gold tone: 5.78:1 on ivory */
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.lang .sep {
  color: var(--gold);
}

.contact__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  padding-block: clamp(3rem, 8vh, 6rem);
}

h1 {
  margin: 0 0 clamp(0.75rem, 2vh, 1.5rem);
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  scroll-margin-top: 1.5rem;
  /* long headings must wrap instead of overflowing when text is enlarged */
  overflow-wrap: anywhere;
}

.lede {
  margin: 0 0 clamp(2rem, 5vh, 3.25rem);
  max-width: 28ch;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3.25rem;
  max-width: 100%;
  padding: 0.875rem clamp(0.75em, 4vw, 2.5em);
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--warm-white);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.cta:hover {
  background: var(--warm-white);
  color: var(--navy);
}

.cta:active {
  background: #0f1627;
  color: var(--warm-white);
}

.email {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.email a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.8rem;
  color: var(--navy);
  /* darkened gold tone: 5.78:1 on ivory, keeps the link affordance visible */
  text-decoration-color: #6b5b39;
  text-underline-offset: 0.3em;
  /* long address must not force horizontal scroll when text is enlarged */
  overflow-wrap: anywhere;
}

.email a:hover {
  text-decoration-color: var(--navy);
}

/* ---------- Focus visibility (WCAG 2.4.7 / 2.4.11) ---------- */
a:focus-visible {
  /* Darkened gold: 5.78:1 on ivory, clears the 3:1 non-text minimum. */
  outline: 2px solid #6b5b39;
  outline-offset: 4px;
}

/* ---------- Mobile: stacked composition ---------- */
@media (max-width: 767px) {
  .page {
    grid-template-columns: 1fr;
  }

  .identity {
    order: 1;
    padding: clamp(1.25rem, 5vw, 2.5rem);
  }

  .frame {
    min-height: clamp(13rem, 48vw, 20rem);
    padding: clamp(1.5rem, 7vw, 4rem) clamp(0.75rem, 4vw, 2rem);
  }

  .wordmark {
    font-size: clamp(2.75rem, 13vw, 6rem);
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    /* allow the wordmark to wrap when text is enlarged (WCAG 1.4.4 / 1.4.10) */
    white-space: normal;
  }

  .contact {
    order: 2;
    padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) clamp(1.75rem, 6vw, 3rem);
  }

  .lang {
    justify-content: flex-end;
  }

  .contact__body {
    padding-block: clamp(2.5rem, 9vw, 4rem);
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 5rem);
  }

  .lede {
    max-width: 32ch;
  }

  .cta {
    width: 100%;
  }

  .email {
    margin-top: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 360px) {
  .wordmark {
    font-size: 2.5rem;
  }
}

/* Short viewports: content-driven compaction, both portrait and landscape */
@media (max-height: 700px) {
  .frame {
    min-height: 0;
    padding-block: clamp(1rem, 4vh, 2rem);
  }

  .contact__body {
    padding-block: clamp(0.75rem, 3vh, 1.5rem);
  }

  h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }

  .lede {
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
  }

  .email {
    margin-top: clamp(0.75rem, 3vh, 1.5rem);
  }

  .email a {
    padding-block: 0.4rem;
  }
}

@media (max-width: 767px) and (max-height: 600px) {
  .identity {
    padding-block: 0.75rem;
  }

  .frame {
    padding-block: 1rem;
  }

  .contact {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .wordmark {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}

/* Very wide viewports: keep the identity legible and avoid empty space */
@media (min-width: 2200px) {
  :root {
    --gutter: clamp(5.5rem, 7vw, 12rem);
  }

  .contact__body {
    max-width: 60rem;
  }

  h1 {
    font-size: clamp(6.5rem, 5vw, 11rem);
  }

  .lede {
    max-width: 42ch;
    font-size: clamp(1.1875rem, 1vw, 1.625rem);
  }

  .cta {
    min-height: 4rem;
    padding-inline: 3rem;
  }

  .lang {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
