/* ================================================
   BASE — Reset, Typography, Shared Properties
   ================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Offset anchor-jump targets so they land below the fixed nav, not under it */
section[id],
#inquiry-form {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

ul, ol {
    list-style: none;
}

/* Shared Custom Properties */
:root {
    /* Fonts */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    /* Shared gold — brand thread */
    --brand-gold: #C9A962;
    --brand-gold-light: #E3D4A5;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Max widths */
    --max-width: 1400px;
    --max-width-narrow: 900px;
    --max-width-content: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
    --transition-reveal: 0.8s var(--ease-out);

    /* Z-index scale */
    --z-base: 1;
    --z-above: 10;
    --z-nav: 100;
    --z-overlay: 500;
    --z-modal: 1000;
}

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

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Section spacing */
.section {
    padding: var(--space-2xl) var(--space-lg);
}

.section-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    display: block;
}

.section-title {
    color: var(--text-primary);
}

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

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: calc(var(--z-nav) + 1);
    transition: none;
}

/* Selection color */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
