/* ============================================================
   COMPONENTS.CSS — Navigation, Footer
   ============================================================ */

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(248, 243, 238, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(44, 34, 31, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: rgba(248, 243, 238, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2px 6px;
}

.nav__logo img {
  height: 68px;
  width: auto;
  display: block;
}

/* Desktop links */
.nav__links { display: none; }

.nav__links ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}

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

.nav__links a:hover,
.nav__links a.active { color: var(--wine); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* Dropdown */
.nav__links .has-dropdown { position: relative; }

.nav__links .dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  min-width: 220px;
  padding: 0.6rem 0;
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 40px rgba(44, 34, 31, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

/* Invisible bridge fills the gap so mouse movement from nav item to dropdown doesn't break hover */
.nav__links .dropdown::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav__links .has-dropdown:hover .dropdown,
.nav__links .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__links .dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}
.nav__links .dropdown a::after { display: none; }
.nav__links .dropdown a:hover { background: var(--surface); color: var(--wine); }

/* Nav CTA */
.btn--nav {
  padding: 0.55rem 1.3rem;
  font-size: 0.72rem;
  flex-shrink: 0;
  background: var(--rose);
  color: var(--white);
  border-radius: 2px;
}
.btn--nav:hover { background: var(--wine); }

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--wine);
  transition: transform 0.35s var(--ease), opacity 0.35s;
  transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--bg);
  overflow-y: auto;
  padding: 1.5rem clamp(1rem, 5vw, 2.5rem) 3rem;
  flex-direction: column;
}
.nav__mobile.open { display: flex; }

.nav__mobile > li { border-bottom: 1px solid rgba(44, 34, 31, 0.08); }

.nav__mobile > li > a,
.nav__mobile .mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}

.nav__mobile .mobile-dropdown-btn span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
  font-size: 1.1rem;
  color: var(--gold);
}
.nav__mobile .mobile-dropdown-btn span.rotated { transform: rotate(90deg); }

.nav__mobile .mobile-sub { display: none; padding-bottom: 0.75rem; }
.nav__mobile .mobile-sub.open { display: block; }
.nav__mobile .mobile-sub a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nav__mobile .mobile-sub a:hover { color: var(--wine); }

.nav__mobile .btn {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav__links  { display: flex; align-items: center; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ===== INQUIRY CTA (global — used on pages that don't load home.css) ===== */
.inquiry-cta {
  background: #9B5570;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.inquiry-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 165, 109, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.inquiry-cta .container { position: relative; z-index: 1; }
.inquiry-cta .section-tag { color: var(--gold); }

.inquiry-cta h2 {
  color: var(--bg);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-block: 1.25rem;
}

.inquiry-cta h2 em { color: var(--surface); }
.inquiry-cta .divider { background: rgba(201, 165, 109, 0.4); margin-inline: auto; }
.inquiry-cta .divider.animate { background: var(--gold); }

.inquiry-cta p {
  color: rgba(248, 243, 238, 0.62);
  margin-inline: auto;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ===== PAGE END ===== */
.page-end {
  display: flex;
  flex-direction: column;
}

/* ===== FOOTER ===== */
.footer {
  background: #9B5570;
  color: rgba(248, 243, 238, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 2.5rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--bg);
  display: block;
  margin-bottom: 0.85rem;
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 28ch;
  color: rgba(248, 243, 238, 0.55);
}

.footer__tagline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer__links ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__links a {
  font-size: 0.88rem;
  color: rgba(248, 243, 238, 0.6);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--bg); }

.footer__contact > a:not(.btn) {
  display: block;
  font-size: 0.88rem;
  color: rgba(248, 243, 238, 0.6);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.footer__contact > a:not(.btn):hover { color: var(--bg); }
.footer__contact .btn {
  width: 100%;
  justify-content: flex-start;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: rgba(248, 243, 238, 0.7);
}

.footer__bottom {
  border-top: 1px solid rgba(248, 243, 238, 0.1);
  padding-block: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(248, 243, 238, 0.35);
  max-width: none;
}

@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
}

/* ===== BLOG POST IMAGES ===== */
.post-feature-img {
  background: var(--surface);
  padding-bottom: 2rem;
}
.post-feature-img .container { padding-top: 0; }
.post-feature-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.post-img {
  margin: 2.5rem 0;
}
.post-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.post-img figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.6rem 0 0;
  font-style: italic;
}
