/* assets/css/custom.css */

/* ── Variables ────────────────────────────────────── */
:root {
  --bg:         #f2f0ed;
  --bg-alt:     #e7e4de;
  --dark:       #252018;
  --dark-deep:  #161310;
  --accent:     #b87333;
  --text:       #3d3830;
  --text-muted: #7a7268;
  --text-light: #aba195;
}

/* ── Grain Texture ────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.1rem;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { padding-left: 1.25rem; }

a { color: var(--accent); }

/* ── Utilities ────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.alt-bg { background: var(--bg-alt); }
.dark-bg { background: var(--dark); }

/* ── Diagonal Section Dividers ────────────────────── */
#ceremonies {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  padding-bottom: 2rem;
}

#philosophy {
  clip-path: polygon(0 2%, 100% 0, 100% 96%, 0 100%);
  margin-top: -2rem;
  padding-bottom: 2rem;
}

#elements {
  clip-path: polygon(0 2%, 100% 0, 100% 96%, 0 100%);
  margin-top: -2rem;
  padding-bottom: 2rem;
}

#contact {
  margin-top: -2rem;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.65rem 1.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ── Hero ─────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(14, 10, 6, 0.72), rgba(14, 10, 6, 0.78)),
    url('../images/banner.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-inner { max-width: 620px; }

#hero h1 {
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: var(--bg);
  letter-spacing: 0.05em;
  margin: 0.4rem 0 0.75rem;
}

.hero-tagline {
  color: rgba(235, 228, 218, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

#hero .eyebrow { color: var(--accent); }

/* ── Hero Scroll Indicator ────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.65;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ── Sticky Nav ───────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 30, 21, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 3.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#site-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-logo {
  color: var(--accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bg); }

.nav-cta {
  background: var(--accent);
  color: var(--dark);
  padding: 0.4rem 1.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-cta:hover { background: #cc8a4a; }

/* ── Mobile Hamburger ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(42, 30, 21, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  padding: 1.5rem 2rem 2rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-drawer.open {
  opacity: 1;
  transform: none;
}

.nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  transition: color 0.2s;
}

.nav-drawer a:hover { color: var(--accent); }

/* ── Ceremonies ───────────────────────────────────── */
#ceremonies { background: var(--bg); }

.ceremonies-intro {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.ceremonies-text { flex: 1; }

.officiant-photo {
  width: 200px;
  flex-shrink: 0;
  border-radius: 2px;
  display: block;
}

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

.approach-card {
  background: #f7f4f0;
  border: 1px solid rgba(184, 115, 51, 0.2);
  padding: 1.5rem;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(61, 43, 31, 0.12);
}

.approach-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 115, 51, 0.2);
}

/* ── Philosophy ───────────────────────────────────── */
#philosophy { background: var(--bg-alt); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.principle-card {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(61, 43, 31, 0.1);
}

.principle-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pull-quote {
  position: relative;
  border: none;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--dark);
  line-height: 1.9;
  padding: 3.5rem 3rem 2.5rem;
  margin-top: 3rem;
}

.pull-quote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 9rem;
  font-style: normal;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

/* ── Ceremony Elements ────────────────────────────── */
#elements { background: var(--bg); }

.elements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.element h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--accent);
  color: var(--dark);
}

.element ul {
  list-style: none;
  padding: 0;
}

.element li {
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  border-bottom: 1px solid rgba(180,160,130,0.2);
}

.element li:last-child { border-bottom: none; }

.element li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.4;
}

.inclusive-box {
  background: var(--bg-alt);
  border: 1px solid rgba(184, 115, 51, 0.2);
  padding: 1.75rem 2rem;
  border-radius: 2px;
}

.inclusive-box h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ── Contact ──────────────────────────────────────── */
#contact { background: var(--dark); }

#contact .container {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-eyebrow { color: var(--accent); }

.contact-heading {
  color: var(--bg);
  margin-bottom: 1rem;
}

.contact-sub {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.email-link {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--dark-deep);
  padding: 1.25rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav — hide text links on mobile, show hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  #site-nav { padding: 0 1rem; }

  /* Ceremonies */
  .ceremonies-intro {
    flex-direction: column;
    gap: 1.5rem;
  }
  .officiant-photo {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .approach-cards { grid-template-columns: 1fr; }

  /* Philosophy */
  .principles-grid { grid-template-columns: 1fr; }

  /* Elements */
  .elements-grid { grid-template-columns: 1fr; }

  /* Container padding */
  .container { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-tagline { font-size: 0.95rem; }
  .section-heading { font-size: 1.6rem; }
}

/* ── Scroll Animations ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Selection ────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--dark);
}
