/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --clr-bg:          #F5EFE3;
  --clr-bg-alt:      #FDF9F2;
  --clr-dark:        #18100A;
  --clr-primary:     #8B2635;
  --clr-gold:        #C08B2A;
  --clr-gold-light:  #D4A843;
  --clr-text:        #2C1810;
  --clr-text-muted:  #7A6558;
  --clr-border:      #DDD0BC;
  --clr-white:       #FFFFFF;
  --moura-blue:      #0b366d;
  --moura-blue-light:#16549f;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;

  --max-w:  1200px;
  --nav-h:  80px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  300ms;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-dark);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--clr-gold);
  color: var(--clr-dark);
  border-color: var(--clr-gold);
}
.btn--primary:hover {
  background: var(--clr-gold-light);
  border-color: var(--clr-gold-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--moura-blue-light);
  border-color: var(--moura-blue-light);
}
.btn--outline:hover {
  background: var(--moura-blue);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover {
  background: var(--clr-white);
  color: var(--clr-dark);
  transform: translateY(-2px);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav.scrolled {
  background: rgba(24, 16, 10, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.nav__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.2;
}
.nav__logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
}
.nav__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
  transform-origin: left;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--clr-white);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.hero.loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(18, 8, 4, 0.78) 0%,
    rgba(18, 8, 4, 0.48) 55%,
    rgba(18, 8, 4, 0.18) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-inline: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--clr-white);
  max-width: 14ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero__sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-family: var(--font-serif);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   SIGNATURE SECTION
   ============================================= */
.signature {
  padding-block: var(--space-2xl);
  background: var(--clr-bg-alt);
}

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

.signature__image {
  position: relative;
}
.signature__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}
.signature__image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--clr-gold);
  border-radius: 2px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.signature__text h2 {
  margin-bottom: var(--space-md);
}
.signature__text p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}
.signature__divider {
  width: 48px;
  height: 1px;
  background: var(--clr-gold);
  margin-block: var(--space-lg);
}
.signature__quote {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--moura-blue) !important;
  line-height: 1.6;
}

/* =============================================
   CRAFT SECTION
   ============================================= */
.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.craft__image-wrap {
  position: relative;
  overflow: hidden;
}
.craft__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.26s var(--ease);
}
.craft__image-wrap:hover img {
  transform: scale(1.04);
}

.craft--switching .craft__image-wrap img {
  opacity: 0;
}

.craft--switching .craft__content .label,
.craft--switching .craft__content h2,
.craft--switching .craft__content p,
.craft--switching .craft__content [data-craft-break] {
  opacity: 0;
}

.craft__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  background: rgba(24, 16, 10, 0.55);
  color: var(--clr-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.craft__arrow--left { left: 1rem; }
.craft__arrow--right { right: 1rem; }
.craft__arrow:hover {
  background: rgba(24, 16, 10, 0.8);
  border-color: var(--clr-gold);
  transform: translateY(-50%) scale(1.04);
}
.craft__arrow:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 2px;
}

.craft__content {
  background: var(--clr-dark);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.craft__content .label { color: var(--clr-gold); }
.craft__content h2 {
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}
.craft__content p {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  line-height: 1.85;
  transition: opacity 0.26s var(--ease);
}
.craft__content .label,
.craft__content h2,
.craft__content [data-craft-break] {
  transition: opacity 0.26s var(--ease);
}

/* =============================================
   NUMBERS SECTION
   ============================================= */
.numbers {
  padding-block: var(--space-xl);
  background: var(--moura-blue);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: var(--space-lg);
  border-left: 1px solid rgba(255,255,255,0.12);
}
.numbers__item:first-child { border-left: none; }

.numbers__value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}
.numbers__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* =============================================
   HERITAGE TEASER
   ============================================= */
.heritage-teaser {
  padding-block: var(--space-2xl);
  background: var(--clr-bg);
}
.heritage-teaser__inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}
.heritage-teaser__inner h2 { margin-bottom: var(--space-md); }
.heritage-teaser__inner p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  line-height: 1.85;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--clr-dark);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 0.75rem;
}
.footer__brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.9rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}
.footer__nav a:hover { color: var(--clr-gold); }

.footer__legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__legal a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}
.footer__legal a:hover { color: var(--clr-gold); }

.footer__social-intro {
  max-width: 260px;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer__social .social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all var(--dur) var(--ease);
}
.social-link:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}
.social-link--tripadvisor {
  font-size: 0;
}
.social-link--tripadvisor img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer__bottom {
  text-align: center;
}
.footer__bottom p {
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  height: 42vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  padding-top: var(--nav-h);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24,16,10,0.6) 0%, rgba(24,16,10,0.85) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.page-hero__title {
  color: var(--clr-white);
}

/* =============================================
   HISTORY PAGE
   ============================================= */
.history-intro {
  padding-block: var(--space-2xl);
  background: var(--clr-bg-alt);
}
.history-intro__inner {
  max-width: 1080px;
  margin-inline: auto;
}
.history-intro__heading {
  margin-bottom: var(--space-xl);
  text-align: center;
}
.history-intro__heading h2 { margin-bottom: var(--space-md); }
.history-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}
.history-intro__column--first {
  display: flex;
  flex-direction: column;
}
.history-intro__inner p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--space-md);
}
.history-intro__image {
  max-width: none;
  margin: var(--space-sm) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.history-intro__image img {
  width: 100%;
  aspect-ratio: 618 / 431;
  object-fit: cover;
  border-radius: 2px;
}
.history-intro__image figcaption {
  margin-top: var(--space-xs);
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-style: italic;
}
.history-intro__closing {
  max-width: 780px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  color: var(--moura-blue) !important;
  font-family: var(--font-serif);
  font-size: 1.2rem !important;
  font-style: italic;
  line-height: 1.7 !important;
  text-align: center;
}

@media (max-width: 768px) {
  .history-intro__inner {
    text-align: center;
  }

  .history-intro__heading {
    margin-bottom: var(--space-lg);
  }

  .history-intro__grid {
    grid-template-columns: 1fr;
  }

  .history-intro__image {
    margin-inline: auto;
  }

  .history-intro__closing {
    margin-top: var(--space-lg);
  }
}

/* TIMELINE */
.timeline {
  padding-block: var(--space-2xl);
  background: var(--clr-bg);
}
.timeline__heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.timeline__inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}
.timeline__inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--clr-border);
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: var(--space-xl);
}

/* Odd items: text on left */
.timeline__item:nth-child(odd) .timeline__text  { grid-column: 1; text-align: right; }
.timeline__item:nth-child(odd) .timeline__dot-wrap { grid-column: 2; }
.timeline__item:nth-child(odd) .timeline__spacer   { grid-column: 3; }

/* Even items: text on right */
.timeline__item:nth-child(even) .timeline__spacer   { grid-column: 1; }
.timeline__item:nth-child(even) .timeline__dot-wrap { grid-column: 2; }
.timeline__item:nth-child(even) .timeline__text     { grid-column: 3; text-align: left; }

.timeline__dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 4px;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 2px var(--clr-gold);
  flex-shrink: 0;
}
.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--moura-blue);
  white-space: nowrap;
}

.timeline__text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--clr-dark);
}
.timeline__text p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* SECRET QUOTE */
.secret-quote {
  padding-block: var(--space-2xl);
  background: var(--moura-blue);
  text-align: center;
}
.secret-quote__inner {
  max-width: 820px;
  margin-inline: auto;
}
.secret-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--clr-white);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.secret-quote blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--clr-gold);
  line-height: 0;
  vertical-align: -1.8rem;
  margin-right: 0.15rem;
  font-style: normal;
}
.secret-quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-style: normal;
}

/* GALLERY */
.gallery {
  padding-block: var(--space-2xl);
  background: var(--clr-bg-alt);
}
.gallery__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: 2px;
  background: var(--clr-dark);
}
.gallery__item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.65s var(--ease), opacity 0.4s;
  opacity: 0.92;
}
.gallery__item:hover img {
  transform: scale(1.06);
  opacity: 1;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall img { height: 100%; min-height: 340px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.locations {
  padding-block: var(--space-2xl);
  background: var(--clr-bg-alt);
}
.locations__intro {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-inline: auto;
}
.locations__intro h2 { margin-bottom: var(--space-md); }
.locations__intro p { color: var(--clr-text-muted); }

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

.location-card {
  background: var(--clr-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.07);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12);
}
.location-card__header {
  background: var(--clr-dark);
  padding: 1.25rem var(--space-lg);
  border-bottom: 2px solid var(--clr-gold);
}
.location-card__header h3 {
  color: var(--clr-white);
  font-size: 1.15rem;
}
.location-card__body {
  padding: var(--space-lg);
}

.location-detail {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.location-detail:last-child { margin-bottom: 0; }
.location-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clr-gold);
}

/* MAP TABS */
.map-section {
  padding-block: var(--space-xl);
  background: var(--clr-bg);
}
.map-section .container { display: flex; flex-direction: column; gap: var(--space-md); }

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--clr-border);
}
.map-tab {
  padding: 0.8rem 1.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin-bottom: -1px;
  font-family: var(--font-sans);
}
.map-tab:hover  { color: var(--clr-text); }
.map-tab.active { color: var(--moura-blue); border-bottom-color: var(--moura-blue); }

.map-panel { display: none; }
.map-panel.active { display: block; }
.map-panel iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 4px;
  filter: grayscale(20%);
}

/* CONTACT FORM */
.contact-form-section {
  padding-block: var(--space-2xl);
  background: var(--clr-bg-alt);
}
.contact-form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form-intro h2 { margin-bottom: var(--space-md); }
.contact-form-intro p {
  color: var(--clr-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}
.contact-form-intro .contact-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-form-intro .contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}
.contact-form-intro .contact-meta-item svg { color: var(--clr-gold); flex-shrink: 0; }

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.form__group input,
.form__group textarea,
.form__group select {
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
  width: 100%;
}
.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(192, 139, 42, 0.12);
}
.form__group input.error,
.form__group textarea.error {
  border-color: #c0392b;
}
.form__group .field-error {
  font-size: 0.78rem;
  color: #c0392b;
}
.form__group textarea {
  resize: vertical;
  min-height: 140px;
}
.form__success {
  display: none;
  padding: var(--space-md);
  background: #f0faf0;
  border: 1px solid #6ab04c;
  border-radius: 4px;
  color: #2d6a2d;
  font-size: 0.95rem;
}
.form__success.visible { display: block; }
.form__error {
  display: none;
  padding: var(--space-md);
  background: #fdf0ef;
  border: 1px solid #c0392b;
  border-radius: 4px;
  color: #922b21;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}
.form__error.visible { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: auto; }
  .gallery__item--tall img { height: 340px; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 4.5rem; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(18, 8, 4, 0.98);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }

  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }

  .signature__grid { grid-template-columns: 1fr; }
  .signature__image img { height: 420px; }
  .signature__image::before { display: none; }

  .craft { grid-template-columns: 1fr; }
  .craft__image-wrap { height: 380px; }
  .craft__content { padding: var(--space-xl) var(--space-lg); }
  .craft__arrow {
    width: 40px;
    height: 40px;
  }
  .craft__arrow--left { left: 0.75rem; }
  .craft__arrow--right { right: 0.75rem; }

  .timeline__inner::before { left: 24px; transform: none; }
  .timeline__item {
    grid-template-columns: 56px 1fr !important;
    grid-template-rows: auto !important;
  }
  .timeline__item .timeline__text,
  .timeline__item:nth-child(odd) .timeline__text,
  .timeline__item:nth-child(even) .timeline__text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: left !important;
  }
  .timeline__item .timeline__dot-wrap,
  .timeline__item:nth-child(odd) .timeline__dot-wrap,
  .timeline__item:nth-child(even) .timeline__dot-wrap {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .timeline__spacer { display: none !important; }
  .timeline__inner::before { left: 27px; }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item img { height: 280px; }

  .locations__grid { grid-template-columns: 1fr; }

  .contact-form-section__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding-inline: 1.25rem; }
}
