/* ==========================================
   Shared Styles - Curtis R. Estes Website
   ========================================== */

/* Design Tokens */
:root {
    --color-bg: #FDFBF7;
    --color-bg-alt: #F5F1EA;
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;
    --color-accent: #2D4A3E;
    --color-accent-light: #3D6A54;
    --color-gold: #B8956B;
    --color-border: #E5E0D8;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--color-accent);
}

nav a.active::after {
    width: 100%;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Nav CTA */
.nav-cta {
    background: var(--color-accent);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--color-accent-light);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section (inner pages default) */
.hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-text);
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Decorative Line */
.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
    margin: 3rem auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-alt);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.newsletter-inner {
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: white;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-accent-light);
}

/* Footer */
footer {
    background: var(--color-text);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* Responsive - Common */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 8rem 1.5rem 3rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 0.75rem;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--color-bg);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active .mobile-nav-inner {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-accent);
}
