/* ==========================================================================
   Re-Member Movement — Main Stylesheet
   Core layout, typography, header, footer, sections, and utilities.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Custom Properties
   -------------------------------------------------------------------------- */

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

:root {
    --cream: #F2EDE4;
    --cream-dark: #E8E0D4;
    --forest: #1B3A2D;
    --forest-light: #2D5A45;
    --sage: #6B8F71;
    --gold: #C4A265;
    --gold-soft: #D4B87A;
    --white: #FAFAF7;
    --charcoal: #2C2C2C;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-accent: 'Caveat', cursive;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--forest);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

a {
    color: var(--forest);
    transition: color 0.3s;
}

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

blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--forest-light);
    margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   Layout — Containers
   -------------------------------------------------------------------------- */

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

.container--narrow {
    max-width: 680px;
}

.container--medium {
    max-width: 900px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(242, 237, 228, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-dark);
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-header__logo-img {
    height: 45px;
    width: auto;
}

.site-header__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Navigation */

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

.site-nav__list a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--forest);
    text-decoration: none;
    position: relative;
}

.site-nav__list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.site-nav__list a:hover::after {
    width: 100%;
}

/* Menu toggle (hidden on desktop, shown on mobile via responsive.css) */

.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hamburger icon */

.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--forest);
    position: absolute;
    transition: all 0.3s;
}

.hamburger__line:nth-child(1) {
    top: 0;
}

.hamburger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger__line:nth-child(3) {
    bottom: 0;
}

/* Hamburger to X animation when nav is open */

.site-header.nav-open .hamburger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.site-header.nav-open .hamburger__line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer__newsletter {
    background: var(--forest);
    color: var(--cream);
    padding: 4rem 0;
}

.site-footer__main {
    background: var(--forest);
    color: var(--cream);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--forest-light);
}

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

.site-footer__heading {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__list a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
}

.site-footer__list a:hover {
    color: var(--gold);
}

.site-footer__tagline {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--gold-soft);
    margin-top: 1rem;
}

.site-footer__logo img {
    width: 80px;
    height: auto;
    opacity: 0.9;
}

.site-footer__bottom {
    border-top: 1px solid var(--forest-light);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--sage);
}

.site-footer__email a {
    color: var(--gold-soft);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 6rem 0;
}

.section--cream {
    background: var(--cream);
}

.section--cream-dark {
    background: var(--cream-dark);
}

.section--forest {
    background: var(--forest);
    color: var(--cream);
}

.section--white {
    background: var(--white);
}

.section__heading {
    text-align: center;
    margin-bottom: 1rem;
}

.section__subheading {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--sage);
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest);
    color: var(--cream);
    padding: 0.5rem 1.5rem;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-family: var(--font-body);
    border-radius: 0 0 3px 3px;
}

.skip-link:focus {
    top: 0.5rem;
    color: var(--cream);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* --------------------------------------------------------------------------
   Grain Overlay
   -------------------------------------------------------------------------- */

.grain-overlay,
.remember-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    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");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   Decorative Separators
   -------------------------------------------------------------------------- */

.gold-separator {
    text-align: center;
    padding: 2rem 0;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 1em;
}

.circle-divider {
    text-align: center;
    padding: 2rem 0;
}

.circle-divider svg {
    width: 40px;
    height: 40px;
}
