/* ============================================
   Fort Elder — Styles
   Charcoal + Coral | Vibrant Modern
   ============================================ */

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

:root {
    --coral: #E85D4A;
    --coral-light: #F4845F;
    --coral-dark: #C94430;
    --coral-pale: #FFF0EE;
    --charcoal: #1E1E24;
    --charcoal-light: #2D2D36;
    --charcoal-mid: #3A3A45;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --white: #FFFFFF;
    --text-dark: #1E1E24;
    --text-light: #F0EDE8;
    --text-muted: #6B6B78;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(30,30,36,0.08);
    --shadow-md: 0 8px 32px rgba(30,30,36,0.12);
    --shadow-lg: 0 16px 64px rgba(30,30,36,0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
    font-weight: 700;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(30, 30, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--coral);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--coral) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--coral-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 36, 0.92) 0%,
        rgba(30, 30, 36, 0.75) 50%,
        rgba(30, 30, 36, 0.6) 100%
    );
}

.hero-shape {
    position: absolute;
    z-index: 2;
    opacity: 0.15;
}

.hero-shape--tl {
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: var(--coral);
    border-radius: 50%;
}

.hero-shape--br {
    bottom: -120px;
    right: -60px;
    width: 400px;
    height: 400px;
    background: var(--coral);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 93, 74, 0.2);
    color: var(--coral-light);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 93, 74, 0.3);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-accent {
    color: var(--coral);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn--primary:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 74, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn--light {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.btn--light:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 100px 24px;
    background: var(--cream);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--coral-light), var(--charcoal));
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid rgba(30,30,36,0.06);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrap--coral {
    background: var(--coral-pale);
    color: var(--coral);
}

.feature-icon-wrap--charcoal {
    background: var(--charcoal);
    color: var(--white);
}

.feature-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 24px;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: var(--coral);
    border-radius: 50%;
    opacity: 0.05;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header--center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--charcoal-light);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.product-card--large {
    grid-column: span 7;
}

.product-card:not(.product-card--large) {
    grid-column: span 5;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 28px;
}

.product-tag {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-card-content h3 {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 10px;
}

.product-card-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 24px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.about-shape {
    position: absolute;
    z-index: 0;
}

.about-shape--coral {
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    opacity: 0.6;
}

.about-shape--charcoal {
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    opacity: 0.15;
}

.about-content .section-tag {
    background: var(--coral);
    color: var(--white);
}

.about-content .section-title {
    color: var(--charcoal);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(30,30,36,0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
    background: var(--coral);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.cta-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.cta-shape--1 {
    top: -60px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: var(--white);
}

.cta-shape--2 {
    bottom: -80px;
    right: 20%;
    width: 260px;
    height: 260px;
    background: var(--charcoal);
}

.cta-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: 100px 24px;
    background: var(--cream-dark);
}

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

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(30,30,36,0.06);
}

.visit-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.visit-card--hours {
    background: var(--charcoal);
    border-color: transparent;
}

.visit-card--hours h4,
.visit-card--hours p {
    color: var(--white);
}

.visit-card--hours p {
    color: rgba(255,255,255,0.7);
}

.visit-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--coral-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.visit-card--hours .visit-card-icon {
    background: rgba(232, 93, 74, 0.2);
    color: var(--coral-light);
}

.visit-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.visit-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.visit-card a {
    color: var(--coral);
    transition: var(--transition);
}

.visit-card a:hover {
    color: var(--coral-dark);
}

.visit-map {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 24px;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--coral);
    border-radius: 50%;
    opacity: 0.06;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-left .section-tag {
    background: var(--coral);
    color: var(--white);
}

.contact-left .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-left > p {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.contact-detail:hover {
    color: var(--coral-light);
}

.contact-detail svg {
    color: var(--coral);
    min-width: 18px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    background: var(--charcoal-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: rgba(232, 93, 74, 0.08);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-sm);
    color: #81C784;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 24px 0;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .nav-logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1.375rem;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-links li {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.875rem;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-card--large {
        grid-column: span 2;
    }
    .product-card:not(.product-card--large) {
        grid-column: span 1;
    }
    .about-container {
        gap: 48px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card--large {
        grid-column: span 1;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .about-visual img {
        height: 360px;
    }

    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-map {
        height: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
