/* ============================================
   BASE STYLES - loaded first on every page.
   Change the colours / fonts here and the whole site follows.
   Page-specific CSS files come after this and only hold what is unique to that page.
   ============================================ */

:root {
  --cream: #f7f3df;        /* page background */
  --cream-border: #e6dfa9;
  --paper: #fffefb;        /* form panels */
  --brown: #57381a;        /* nav, footer, dark bands */
  --brown-dark: #462a0e;   /* headings */
  --brown-mid: #85592e;    /* buttons */
  --brown-hover: #91520a;
  --brown-line: #8B5E3C;
  --accent: #ca6b0c;       /* small labels, highlights */
  --gold: #f0c987;         /* active links, eyebrows on dark */
  --text: #351c03;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --nav-height: 89px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  font-family: var(--font-sans);
  min-height: 100vh;
}

@media (max-width: 368px) {
  body { font-size: 14px; }
}

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

/* Skip link: visible only when a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brown);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  background: var(--brown);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--brown-line);
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 96%;
  height: 96%;
  object-fit: cover;
  transform: scale(1.1);
  margin: 0 auto;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 254, 252, 0.932);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fdfdfc;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

nav ul a {
  position: relative;
  text-decoration: none;
  color: #faf9f5;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.25s ease;
}

nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--brown-line);
  transition: width 0.3s ease;
}

nav ul a:hover,
nav ul a:focus-visible {
  color: #f4f1ea;
}

nav ul a:hover::after,
nav ul a:focus-visible::after {
  width: 100%;
}

nav ul a.active {
  color: var(--gold);
}

nav ul a.active::after {
  width: 100%; background: var(--gold);
}

nav ul a.nav-login-btn {
  background: var(--brown-mid);
  padding: 8px 18px;
  border-radius: 8px;
  color: #ffffff;
}

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

nav ul a.nav-login-btn:hover {
  background: var(--brown-hover); color: #ffffff;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--brown);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav ul.open {
    max-height: 500px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(233, 182, 13, 0.08);
  }

  nav ul a.nav-login-btn {
    border-radius: 0;
  }
}

.site-footer {
  background: var(--brown);
  color: #f4f1ea;
  padding: 50px 24px 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}

.footer-brand .nav-logo-icon {
  width: 48px; height: 48px;
}

.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.9rem; line-height: 1.7; color: #e9e3d3;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #e9e3d3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  list-style: none;
  font-size: 0.9rem;
  color: #e9e3d3;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-social {
  display: flex; gap: 10px; margin-top: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.35);
  color: #f4f1ea;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--brown-mid); border-color: var(--brown-mid);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  text-align: center;
  padding: 18px 0;
  font-size: 0.82rem;
  color: #cbbfa1;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr; gap: 28px;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

