/* ===================================================================
   BASE — Variables, Reset & Typography
   =================================================================== */

:root {
    /* Iris Purple Palette */
    --color-ivory: #FAF8FC;
    --color-cream: #F3EFF8;
    --color-sand: #E4DCF0;
    --color-warm-beige: #D0C4E0;
    --color-camel: #B8A9C9;
    --color-bronze: #9585A8;
    --color-earth: #6E5C8A;
    --color-espresso: #3D2B5A;
    --color-charcoal: #2D1B4E;
    --color-deep: #1E0F38;
    --color-gold-muted: #7B5EA7;
    --color-gold-warm: #9370B8;
    --color-sage: #A0A48B;
    --color-blush: #D4C0E0;

    /* Semantic Colors */
    --bg-primary: var(--color-ivory);
    --bg-secondary: var(--color-cream);
    --bg-accent: var(--color-sand);
    --bg-dark: var(--color-deep);
    --text-primary: var(--color-charcoal);
    --text-secondary: var(--color-earth);
    --text-muted-val: var(--color-bronze);
    --text-light: var(--color-camel);
    --accent: var(--color-gold-muted);
    --border: var(--color-sand);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-base: all 0.4s var(--ease-smooth);
    --transition-slow: all 0.8s var(--ease-out);
}


/* ===================================================================
   BASE RESET & TYPOGRAPHY
   =================================================================== */

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    font-weight: 300;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.2;
}

.font-playfair {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

::selection {
    background-color: var(--color-sand);
    color: var(--color-espresso);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}


/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.text-gold { color: var(--accent) !important; }
.bg-gold { background-color: var(--accent) !important; color: #fff; }
.text-primary { color: var(--text-primary) !important; }
.bg-primary { background-color: var(--bg-dark) !important; }
.bg-accent { background-color: var(--bg-secondary) !important; }
.bg-cream { background-color: var(--color-cream) !important; }
.bg-sand { background-color: var(--color-sand) !important; }
.bg-ivory { background-color: var(--color-ivory) !important; }
.text-muted { color: var(--text-muted-val) !important; }

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.letter-spacing-3 { letter-spacing: 3px; }
.letter-spacing-4 { letter-spacing: 4px; }
.letter-spacing-wide { letter-spacing: 6px; }

.x-small { font-size: 0.7rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }

.py-10 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.py-12 { padding-top: 7rem; padding-bottom: 7rem; }
.pt-8 { padding-top: 4rem; }
.mt-10 { margin-top: 5rem; }
.mb-8 { margin-bottom: 4rem; }
.mb-40 { margin-bottom: 2.5rem; }
.p-lg-8 { padding: 4rem !important; }
.max-w-400 { max-width: 400px; }

.fw-light { font-weight: 300 !important; }

.divider-line {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    display: inline-block;
}

.divider-line-dark {
    width: 60px;
    height: 1px;
    background-color: var(--color-camel);
    display: inline-block;
}

/* Image aspect ratio helpers */
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-1-1 { aspect-ratio: 1/1; }
.aspect-16-9 { aspect-ratio: 16/9; }

/* Object fit */
.object-fit-cover { object-fit: cover; }

/* Hover opacity transition */
.hover-opacity {
    transition: opacity 0.3s ease;
}
.hover-opacity:hover {
    opacity: 0.7;
}

/* For pages that are NOT home (no hero), add top padding */
.page-offset {
    padding-top: 100px;
}

/* Transition utility */
.transition-transform {
    transition: transform 0.6s ease;
}
