/* Base CSS - Common patterns and resets for wedding website */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Color Palette */
:root {
    --primary-dark: #1A1A1A;
    --primary-light: #FDFCF0;
    --accent-gold: #D4B996;
    --accent-rose: #c9a8a0;
    --text-dark: #1A1A1A;
    --text-light: #6b6b6b;
    --bg-cream: #FDFCF0;
    --success-color: #6b9f6f;
    --error-color: #B2675E;
}

/* HTML & Body Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Components */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-cream);
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Button Base Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-cream);
    color: var(--text-dark);
    border: 1px solid #e8e6e1;
}

.btn-secondary:hover {
    background: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: rgba(181, 116, 95, 1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Footer Base Styles */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-section h4 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-divider {
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section a {
        display: inline;
    }
}
