/* ============================================
   By Mother Earth — Styles
   Bold editorial · Deep navy + warm gold
   ============================================ */

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

:root {
    --navy:        #1B2A4A;
    --navy-deep:   #0F1A2E;
    --navy-mid:    #253A5E;
    --gold:        #C9A84C;
    --gold-light:  #D4BA6A;
    --gold-pale:   #F0E4C0;
    --cream:       #F7F4EE;
    --cream-dark:  #EDE8DD;
    --white:       #FEFCF8;
    --text-dark:   #1A1A1A;
    --text-mid:    #4A4A4A;
    --text-light:  #7A7A7A;
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.serif-accent-gold {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-eyebrow--light {
    color: var(--gold-light);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 24px;
}

.section-headline--light {
    color: var(--white);
}

.section-sub {
    font-size: 1.125rem;
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-deep);
    border: 2px solid var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 42, 74, 0.0);
    backdrop-filter: blur(0px);
    transition: all 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(27, 42, 74, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav__logo-icon {
    flex-shrink: 0;
}

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

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    transition: color 0.3s;
    position: relative;
}

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

.nav__links a:hover {
    color: var(--white);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--gold-light) !important;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 46, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.nav__overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav__overlay-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav__overlay-links a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s;
}

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    align-items: stretch;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 64px 80px;
    max-width: 680px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 28px;
}

.hero__headline em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.hero__sub {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__actions .btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.hero__actions .btn--outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.hero__image {
    position: relative;
    overflow: hidden;
}

.hero__image-frame {
    position: absolute;
    inset: 0;
}

.hero__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    opacity: 0.4;
    pointer-events: none;
}

.hero__scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 64px 32px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero__scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Marquee --- */
.marquee {
    background: var(--gold);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee__track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: marqueeScroll 30s linear infinite;
}

.marquee__track span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.marquee__dot {
    font-size: 0.5rem !important;
    color: var(--navy) !important;
    opacity: 0.5;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section base --- */
.section {
    padding: 120px 0;
}

/* --- About --- */
.about {
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image-col img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content .section-headline {
    margin-bottom: 24px;
}

.about__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.about__content em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--navy);
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--cream-dark);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

/* --- Offerings --- */
.offerings {
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-sub {
    margin: 0 auto;
}

.offerings__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(27, 42, 74, 0.12);
}

.card__image-wrap {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.card:hover .card__image-wrap img {
    transform: scale(1.05);
}

.card__body {
    padding: 32px;
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.card__body p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-mid);
}

/* --- Philosophy --- */
.philosophy {
    position: relative;
    background: var(--navy-deep);
    overflow: hidden;
    padding: 140px 0;
}

.philosophy__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.philosophy__content {
    position: relative;
    z-index: 1;
}

.philosophy__content .section-headline {
    max-width: 700px;
    margin-bottom: 72px;
}

.philosophy__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.pillar {
    padding: 40px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s, background 0.3s;
}

.pillar:hover {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.pillar__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.pillar__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.pillar p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Visit --- */
.visit {
    background: var(--white);
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.visit__info .section-headline {
    margin-bottom: 20px;
}

.visit__desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 40px;
}

.visit__details {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.visit__detail {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
}

.visit__detail dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 4px;
}

.visit__detail dd {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit__detail a {
    color: var(--navy);
    border-bottom: 1px solid rgba(27, 42, 74, 0.2);
    transition: border-color 0.3s;
}

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

.visit__map {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 16px 48px rgba(27, 42, 74, 0.15);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
}

/* --- Contact --- */
.contact {
    background: var(--cream);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__text .section-headline {
    margin-bottom: 20px;
}

.contact__text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-mid);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}

.form__input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--cream-dark);
    border-radius: 4px;
    padding: 14px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    width: 100%;
}

.form__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form__input::placeholder {
    color: var(--text-light);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a7a3a;
    background: rgba(26, 122, 58, 0.08);
    padding: 16px 20px;
    border-radius: 4px;
    border: 1px solid rgba(26, 122, 58, 0.2);
}

/* --- Footer --- */
.footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: 80px 0 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-top: 16px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

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

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll reveal (progressive enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__text {
        padding: 120px 48px 80px;
    }
    
    .about__grid,
    .visit__grid,
    .contact__inner {
        gap: 48px;
    }
    
    .philosophy__pillars {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__grid {
        grid-template-columns: 1fr;
    }
    
    .hero__text {
        padding: 120px 24px 60px;
        order: 2;
        max-width: 100%;
    }
    
    .hero__image {
        order: 1;
        min-height: 50vh;
    }
    
    .hero__image-accent {
        display: none;
    }
    
    .hero__scroll {
        padding: 0 24px 24px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .about__image-col {
        order: -1;
    }
    
    .about__image-col img {
        aspect-ratio: 4/3;
    }
    
    .about__stats {
        gap: 32px;
    }
    
    .offerings__grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy__pillars {
        grid-template-columns: 1fr;
    }
    
    .visit__grid {
        grid-template-columns: 1fr;
    }
    
    .visit__map {
        aspect-ratio: 16/9;
    }
    
    .contact__inner {
        grid-template-columns: 1fr;
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 2.25rem;
    }
    
    .hero__text {
        padding: 100px 20px 48px;
    }
    
    .section-headline {
        font-size: 2rem;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .marquee__track {
        animation: none;
    }
}
