/* =====================================================
   OES DRESSES - Global Stylesheet
   Burgundy/Gold formal wear for 70+ demographic
   ===================================================== */

/* Design Tokens */
:root {
    --oes-burgundy: #722F37;
    --oes-maroon: #800020;
    --oes-gold: #C5A258;
    --oes-gold-light: #D4B87A;
    --oes-gold-dark: #A88B3D;
    --oes-cream: #FDF8F0;
    --oes-white: #FFFFFF;
    --oes-dark: #2A2222;
    --oes-warm-gray: #706963;
    --oes-light-gray: #E8E3DD;
    --oes-border: #D9D4CE;
    --oes-success: #2D7D46;
    --oes-error: #C0392B;

    --oes-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --oes-font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --oes-radius: 6px;
    --oes-shadow: 0 4px 20px rgba(42, 34, 34, 0.08);
    --oes-shadow-lg: 0 8px 32px rgba(42, 34, 34, 0.12);
}

/* Full page reset for blank template */
body.oes-blank-template {
    margin: 0;
    padding: 0;
    font-family: var(--oes-font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--oes-dark);
    background: var(--oes-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.oes-blank-template *,
body.oes-blank-template *::before,
body.oes-blank-template *::after {
    box-sizing: border-box;
}

body.oes-blank-template img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.oes-blank-template a {
    color: var(--oes-burgundy);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.oes-blank-template a:hover {
    color: var(--oes-gold-dark);
}

/* Also keep .oes-page scoping for backwards compat */
.oes-page *,
.oes-page *::before,
.oes-page *::after {
    box-sizing: border-box;
}

.oes-page {
    font-family: var(--oes-font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--oes-dark);
    background: var(--oes-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.oes-page a {
    color: var(--oes-burgundy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.oes-page a:hover {
    color: var(--oes-gold-dark);
}

/* Typography - body level for header/footer
   NOTE: No color here - headings inherit from parent section.
   Dark sections set color: white, light sections inherit body dark color. */
body.oes-blank-template h1,
body.oes-blank-template h2,
body.oes-blank-template h3,
body.oes-blank-template h4 {
    font-family: var(--oes-font-display);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

body.oes-blank-template h1 { font-size: 48px; }
body.oes-blank-template h2 { font-size: 36px; }
body.oes-blank-template h3 { font-size: 24px; }
body.oes-blank-template h4 { font-size: 20px; }

body.oes-blank-template p {
    margin: 0;
}

body.oes-blank-template ul,
body.oes-blank-template ol {
    margin: 0;
    padding: 0;
}

/* Typography - scoped for .oes-page content
   NOTE: No color here - headings inherit from parent section. */
.oes-page h1,
.oes-page h2,
.oes-page h3,
.oes-page h4 {
    font-family: var(--oes-font-display);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.oes-page h1 { font-size: 48px; }
.oes-page h2 { font-size: 36px; }
.oes-page h3 { font-size: 24px; }
.oes-page h4 { font-size: 20px; }

.oes-page p {
    margin: 0;
}

/* Container */
.oes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.oes-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.oes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 32px;
    font-family: var(--oes-font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--oes-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.oes-btn-primary {
    background: var(--oes-burgundy);
    color: var(--oes-white);
}

.oes-btn-primary:hover {
    background: var(--oes-maroon);
    color: var(--oes-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.3);
}

.oes-btn-gold {
    background: var(--oes-gold);
    color: var(--oes-dark);
}

.oes-btn-gold:hover {
    background: var(--oes-gold-light);
    color: var(--oes-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197, 162, 88, 0.3);
}

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

.oes-btn-outline:hover {
    background: var(--oes-white);
    color: var(--oes-burgundy);
}

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

.oes-btn-outline-dark:hover {
    background: var(--oes-burgundy);
    color: var(--oes-white);
}

.oes-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Section spacing */
.oes-section {
    padding: 80px 0;
}

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

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

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

/* Section headers */
.oes-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.oes-section-header h2 {
    margin-bottom: 12px;
}

.oes-section-header p {
    font-size: 18px;
    color: var(--oes-warm-gray);
    max-width: 600px;
    margin: 0 auto;
}

.oes-section-burgundy .oes-section-header h2,
.oes-section-dark .oes-section-header h2 {
    color: var(--oes-white);
}

.oes-section-burgundy .oes-section-header p,
.oes-section-dark .oes-section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Decorative divider */
.oes-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 0;
}

.oes-divider::before,
.oes-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--oes-gold);
}

.oes-divider-star {
    width: 12px;
    height: 12px;
    color: var(--oes-gold);
}

/* Product grid */
.oes-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Form elements */
.oes-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.oes-form-group {
    margin-bottom: 20px;
}

.oes-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--oes-dark);
    margin-bottom: 8px;
}

.oes-form-group label .required {
    color: var(--oes-error);
}

.oes-form-group input,
.oes-form-group select,
.oes-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--oes-font-body);
    border: 1px solid var(--oes-border);
    border-radius: var(--oes-radius);
    background: var(--oes-white);
    color: var(--oes-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oes-form-group input:focus,
.oes-form-group select:focus,
.oes-form-group textarea:focus {
    outline: none;
    border-color: var(--oes-gold);
    box-shadow: 0 0 0 3px rgba(197, 162, 88, 0.15);
}

.oes-form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.oes-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23706963' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.oes-form-submit {
    width: 100%;
    min-height: 52px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--oes-font-body);
    color: var(--oes-white);
    background: var(--oes-burgundy);
    border: none;
    border-radius: var(--oes-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.oes-form-submit:hover {
    background: var(--oes-maroon);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.3);
}

.oes-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.oes-form-message {
    padding: 16px;
    border-radius: var(--oes-radius);
    margin-bottom: 20px;
    font-size: 16px;
    display: none;
}

.oes-form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.oes-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Honeypot */
.oes-hp {
    position: absolute;
    left: -9999px;
}

/* Phone CTA banner */
.oes-phone-banner {
    padding: 60px 0;
    text-align: center;
    background: var(--oes-burgundy);
    color: var(--oes-white);
}

.oes-phone-banner h2 {
    color: var(--oes-white);
    margin-bottom: 12px;
}

.oes-phone-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-size: 18px;
}

.oes-phone-number {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--oes-font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--oes-gold);
    text-decoration: none;
}

.oes-phone-number:hover {
    color: var(--oes-gold-light);
}

.oes-phone-number svg {
    width: 32px;
    height: 32px;
    stroke: var(--oes-gold);
    fill: none;
    stroke-width: 2;
}

/* Star rating */
.oes-stars {
    display: flex;
    gap: 4px;
}

.oes-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--oes-gold);
}

/* Responsive */
@media (max-width: 1024px) {
    body.oes-blank-template h1,
    .oes-page h1 { font-size: 38px; }
    body.oes-blank-template h2,
    .oes-page h2 { font-size: 30px; }

    .oes-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .oes-section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .oes-container,
    .oes-container-narrow {
        padding: 0 16px;
    }

    body.oes-blank-template h1,
    .oes-page h1 { font-size: 30px; }
    body.oes-blank-template h2,
    .oes-page h2 { font-size: 26px; }

    .oes-product-grid {
        grid-template-columns: 1fr;
    }

    .oes-form-row {
        grid-template-columns: 1fr;
    }

    .oes-section {
        padding: 48px 0;
    }

    .oes-phone-number {
        font-size: 28px;
    }

    .oes-btn {
        width: 100%;
    }
}
