/* ===================================
   DOONEY & BOURKE LIVERMORE
   Vibrant Modern Design System
   =================================== */

/* CSS Variables */
:root {
    --color-charcoal: #2C3E50;
    --color-charcoal-dark: #1a252f;
    --color-charcoal-light: #2C3E50;
    --color-coral: #FF6B6B;
    --color-coral-light: #FF8787;
    --color-coral-dark: #e55555;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-gray-light: #f5f5f5;
    --color-gray: #e0e0e0;
    --color-gray-dark: #666666;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.16);
    --shadow-coral: 0 4px 20px rgba(255, 107, 107, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-charcoal-light);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-coral {
    color: var(--color-coral);
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-coral);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-charcoal);
    top: 50%;
    left: -100px;
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-coral);
}

.btn-secondary {
    background: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.btn-secondary:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    max-width: 600px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-charcoal-dark) 0%, var(--color-charcoal) 50%, var(--color-coral-dark) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/34992198/pexels-photo-34992198.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(26, 37, 47, 0.92) 0%, 
        rgba(44, 62, 80, 0.85) 50%,
        rgba(229, 85, 85, 0.75) 100%);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-actions .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-actions .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-charcoal);
}

/* Hero Accents */
.hero-accent {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.accent-1 {
    width: 300px;
    height: 300px;
    background: var(--color-coral);
    top: 20%;
    left: 5%;
    filter: blur(60px);
}

.accent-2 {
    width: 200px;
    height: 200px;
    background: var(--color-white);
    bottom: 20%;
    right: 10%;
    filter: blur(40px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--color-cream);
    position: relative;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-coral);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-coral), var(--color-coral-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.feature-card p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* Collection Section */
.collection {
    padding: 100px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.collection-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-item:hover img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-overlay h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.collection-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Grid Layout */
.collection-item.large {
    grid-column: span 5;
    grid-row: span 2;
}

.collection-item:nth-child(2) {
    grid-column: span 3.5;
}

.collection-item:nth-child(3) {
    grid-column: span 3.5;
}

.collection-item:nth-child(4) {
    grid-column: span 6;
}

.collection-item:nth-child(5) {
    grid-column: span 6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-coral);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-coral);
    border-radius: var(--radius-lg);
    top: 20px;
    left: 20px;
    z-index: 1;
}

/* Visit Section */
.visit {
    padding: 100px 0;
    background: var(--color-charcoal);
    position: relative;
    overflow: hidden;
}

.visit::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--color-coral);
    opacity: 0.08;
    border-radius: 50%;
    bottom: -300px;
    left: -200px;
}

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

.visit-info {
    color: var(--color-white);
}

.visit-info .section-title {
    color: var(--color-white);
}

.visit-text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-coral);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--color-white);
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--color-coral);
}

.visit-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.visit-actions .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.visit-actions .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-charcoal);
}

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

/* Footer */
.footer {
    background: var(--color-charcoal-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-charcoal-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu a {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.mobile-menu a:hover {
    color: var(--color-coral);
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-rows: repeat(3, 250px);
    }
    
    .collection-item.large {
        grid-column: span 12;
        grid-row: span 1;
    }
    
    .collection-item:nth-child(2),
    .collection-item:nth-child(3) {
        grid-column: span 6;
    }
    
    .collection-item:nth-child(4),
    .collection-item:nth-child(5) {
        grid-column: span 6;
    }
    
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .collection-grid {
        grid-template-rows: auto;
    }
    
    .collection-item.large,
    .collection-item:nth-child(2),
    .collection-item:nth-child(3),
    .collection-item:nth-child(4),
    .collection-item:nth-child(5) {
        grid-column: span 12;
        grid-row: span 1;
        height: 300px;
    }
    
    .collection-overlay {
        opacity: 1;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

.hero-accent {
    animation: float 6s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.accent-2 {
    animation-delay: 2s;
}
