/* ================================================
   ATASCOSA MASONIC LODGE — SHARED STYLES
   Aesthetic: Classical, refined, masonic heritage
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --ink: #0a1428;
  --ink-deep: #050b18;
  --ink-soft: #1a2540;
  --parchment: #f4ecd8;
  --parchment-soft: #ebe1c8;
  --parchment-deep: #d9cba8;
  --gold: #c9a961;
  --gold-bright: #e0c178;
  --gold-deep: #8b7335;
  --crimson: #6b1f24;
  --ivory: #faf6ea;
  --shadow: rgba(5, 11, 24, 0.15);
  --shadow-deep: rgba(5, 11, 24, 0.4);

  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-mono: 'Cardo', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(at 20% 10%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 90%, rgba(107, 31, 36, 0.04) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper texture using SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.2 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.site-header {
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  border-bottom: 3px double var(--gold);
  z-index: 10;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--parchment);
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201, 169, 97, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--parchment-deep);
  margin-top: 0.3rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-bright);
}

.nav a:hover::before,
.nav a.active::before {
  width: 60%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
}

/* ================================================
   GENERAL LAYOUT
   ================================================ */
main {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* ================================================
   PAGE HEADER (Inner pages)
   ================================================ */
.page-header {
  background: var(--ink);
  color: var(--parchment);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 97, 0.12) 0%, transparent 70%);
}

.page-header-ornament {
  display: block;
  margin: 0 auto 1.5rem;
  width: 110px;
  height: 110px;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(201, 169, 97, 0.3));
}

.page-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.06em;
  font-weight: 600;
  position: relative;
  text-transform: uppercase;
}

.page-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--parchment-deep);
  margin-top: 1.5rem;
  position: relative;
  font-weight: 400;
}

.page-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.page-flourish .line {
  width: 80px;
  height: 1px;
  background: var(--gold);
}

.page-flourish .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ================================================
   SECTION STYLES
   ================================================ */
section {
  padding: 5rem 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.section-rule .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

.section-rule .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}

.lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 400;
}

p {
  margin-bottom: 1.25rem;
}

p + p {
  text-indent: 2em;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--ink);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-dark::before {
  background: var(--ink);
}

.btn-dark:hover {
  color: var(--parchment);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--parchment-deep);
  padding: 4rem 2rem 2rem;
  border-top: 3px double var(--gold);
  position: relative;
  z-index: 2;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.footer-col p,
.footer-col a {
  font-size: 1rem;
  color: var(--parchment-deep);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--parchment-deep);
}

.footer-motto {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  font-style: normal;
  text-transform: uppercase;
}

/* ================================================
   ENTRANCE ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fade-up {
  animation: fadeUp 1s ease-out backwards;
}

.fade-in {
  animation: fadeIn 1.4s ease-out backwards;
}

.scale-in {
  animation: scaleIn 1.2s ease-out backwards;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-deep);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gold);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-inner {
    padding: 1rem 1.5rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}
