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

:root {
  --cream:   #f7f4ef;
  --charcoal:#1c1c1e;
  --warm:    #8b7355;
  --sage:    #6b7f6e;
  --blush:   #d4a9a0;
  --light:   #eae6df;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 62px;
  --header-bg: #ebe3d6;
  --header-bg-scrolled: #e6ddd0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.3rem 2.5rem;
  overflow: visible;
  background: linear-gradient(180deg, rgba(240, 233, 222, 0.97) 0%, rgba(235, 227, 214, 0.97) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.header.scrolled {
  padding: 0.25rem 2.5rem;
  background: rgba(230, 221, 208, 0.98);
  box-shadow: 0 4px 20px rgba(28, 28, 30, 0.07);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  width: auto;
  height: 50px;
  max-width: min(260px, 50vw);
  object-fit: contain;
  object-position: left center;
  transform: scale(1.05);
  transform-origin: left center;
}

.logo-footer {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.logo-footer .logo-name {
  font-size: 2.75rem;
}

.logo-footer .logo-emblem {
  width: 46px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.76rem;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--warm);
  transition: width 0.35s var(--ease);
}

.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--warm); }

.nav-login-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--warm);
  color: #fff;
  border: none;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.nav-login-btn::after { display: none; }

.nav-login-btn:hover {
  color: #fff;
  background: #7a6348;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 115, 85, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  transition: transform 8s var(--ease);
}

.hero-slide.active img { transform: scale(1); }

.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-dot:hover { border-color: rgba(255, 255, 255, 0.9); }

.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 30, 0.15) 0%,
    rgba(28, 28, 30, 0.55) 70%,
    rgba(28, 28, 30, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 4rem;
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--warm);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn:hover {
  background: #7a6348;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 115, 85, 0.35);
}

.btn-light {
  background: #fff;
  color: var(--charcoal);
}

.btn-light:hover {
  background: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Sections ── */
.section {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
  color: #3a3a3c;
}

.about-text .highlight {
  border-left: 3px solid var(--warm);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--charcoal);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(28, 28, 30, 0.12);
}

.image-caption {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

/* ── Philosophy Cards ── */
.philosophy { text-align: center; }

.philosophy h2 { margin-bottom: 2.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 2rem 1.6rem;
  text-align: left;
  border: 1px solid rgba(28, 28, 30, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(28, 28, 30, 0.08);
}

.card-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blush);
  opacity: 0.6;
  display: block;
  margin-bottom: 0.6rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* ── CTA ── */
.cta {
  padding: 0 2.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cta-inner {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 2px;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.cta-inner p {
  opacity: 0.75;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(28, 28, 30, 0.08);
  padding: 2.5rem;
  text-align: center;
}


.footer p {
  font-size: 0.82rem;
  color: #777;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.75rem !important;
  opacity: 0.6;
}

/* ── Region Notice Popup ── */
.region-notice {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.region-notice.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.region-notice-shield {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: default;
}

/* Outside popup — light overlay so carousel stays visible */
.region-notice-backdrop {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(28, 28, 30, 0.12);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
}

body.region-notice-open {
  overflow: hidden;
}

body.region-notice-open .header {
  background: var(--header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 24px rgba(28, 28, 30, 0.06);
  pointer-events: none;
}

body.region-notice-open main,
body.region-notice-open .footer {
  pointer-events: none;
}

/* Inside popup — solid panel, no glass blur */
.region-notice-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: min(100%, 540px);
  padding: 1.5rem 2.75rem 2.75rem;
  background: var(--cream);
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(28, 28, 30, 0.22);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.6s var(--ease);
}

.region-notice.visible .region-notice-card {
  transform: translateY(0);
}

.region-notice-logo {
  display: block;
  width: auto;
  height: 88px;
  max-width: 300px;
  margin: 0 auto 0.4rem;
  object-fit: contain;
  transform: scale(1.1);
  transform-origin: center top;
}

.region-notice-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.75rem;
}

.region-notice-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  color: var(--charcoal);
}

.region-notice-text {
  font-size: 1.05rem;
  color: #4a4a4c;
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.region-notice-btn {
  margin-top: 1.2rem;
  width: 100%;
  max-width: 320px;
  background: #bd0033;
}

.region-notice-btn:hover {
  background: #a1002b;
  box-shadow: 0 8px 24px rgba(189, 0, 51, 0.35);
}

@media (max-width: 768px) {
  .region-notice { padding: 1.2rem; }
  .region-notice-card { padding: 1.25rem 1.75rem 2rem; }
  .region-notice-logo { height: 68px; max-width: 230px; margin-bottom: 0.35rem; transform: scale(1.08); }
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --header-height: 56px; }

  .nav-toggle { display: flex; }

  .header {
    padding: 0.25rem 1.25rem;
    flex-wrap: nowrap;
  }

  .header.scrolled { padding: 0.2rem 1.25rem; }

  .logo-img {
    height: 42px;
    max-width: min(190px, 48vw);
    transform: none;
  }

  .logo-footer .logo-name { font-size: 2.2rem; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    background: rgba(235, 227, 214, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.14);
    box-shadow: 0 12px 32px rgba(28, 28, 30, 0.08);
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), padding 0.35s var(--ease);
  }

  .header.nav-open .nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.5rem 0 1.25rem;
  }

  .nav a {
    font-size: 0.82rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(28, 28, 30, 0.05);
  }

  .nav a::after { display: none; }

  .nav-login-btn {
    margin: 0.75rem 1.25rem 0;
    padding: 0.75rem 1.25rem;
    text-align: center;
    width: calc(100% - 2.5rem);
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {

  .hero { min-height: 85vh; }
  .hero-content { padding: 0 1.4rem 3rem; }
  .hero-dots { right: 1.4rem; bottom: 1.5rem; }

  .section { padding: 3.5rem 1.4rem; }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image { order: -1; }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta { padding: 0 1.4rem 3.5rem; }
  .cta-inner { padding: 2.5rem 1.4rem; }
}
