/* ========================================
   Ralph Brennan Bakery — Styles
   Classic & Elegant · Teal + Slate Grey
   ======================================== */

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

:root {
    --teal-900: #0d3b3b;
    --teal-800: #1a5f5f;
    --teal-700: #237a7a;
    --teal-600: #2d9696;
    --teal-500: #36b3b3;
    --teal-100: #d1f0f0;
    --teal-50:  #eaf8f8;
    
    --slate-950: #0c1922;
    --slate-900: #132230;
    --slate-800: #1e3347;
    --slate-700: #2d4a5e;
    --slate-600: #4a6b7e;
    --slate-500: #6b8f9e;
    --slate-400: #9bb5c0;
    --slate-300: #bdd3dc;
    --slate-200: #dce9ed;
    --slate-100: #eef5f7;
    --slate-50:  #f6fafb;
    
    --cream: #f9f6f1;
    --cream-light: #fdfbf7;
    --warm-white: #fefcf8;
    
    --gold: #c8a45e;
    --gold-light: #e0c680;
    
    --text-dark: #1a2332;
    --text-body: #3d4f5f;
    --text-muted: #6b7f8f;
    --text-light: #f5f0eb;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(12, 25, 34, 0.06), 0 1px 2px rgba(12, 25, 34, 0.04);
    --shadow-md: 0 4px 16px rgba(12, 25, 34, 0.08), 0 2px 4px rgba(12, 25, 34, 0.04);
    --shadow-lg: 0 12px 40px rgba(12, 25, 34, 0.12), 0 4px 12px rgba(12, 25, 34, 0.06);
    --shadow-xl: 0 24px 60px rgba(12, 25, 34, 0.16);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 500;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--teal-600);
}

.section-label-light {
    color: var(--teal-300);
}

.section-label-light::before {
    background: var(--teal-400);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

.text-accent {
    color: var(--teal-700);
}

.text-accent-light {
    color: var(--teal-300);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--teal-700);
    color: var(--text-light);
    box-shadow: 0 4px 16px rgba(26, 95, 95, 0.3);
}

.btn-primary:hover {
    background: var(--teal-600);
    box-shadow: 0 6px 24px rgba(26, 95, 95, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(12, 25, 34, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--teal-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.navbar.scrolled .nav-logo-icon {
    background: var(--teal-700);
}

.nav-logo-text {
    font-style: italic;
}

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(245, 240, 235, 0.8);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-400);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
}

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

.navbar.scrolled .nav-link {
    color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover {
    color: var(--text-dark);
}

.navbar.scrolled .nav-link::after {
    background: var(--teal-600);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light) !important;
    font-weight: 600;
    transition: all var(--transition);
}

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

.nav-cta:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
}

.navbar.scrolled .nav-cta {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: var(--text-light) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .nav-toggle-bar {
    background: var(--text-dark);
}

.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);
}

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--slate-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--teal-300);
}

.mobile-menu-phone {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-top: 16px;
    color: var(--teal-300) !important;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 25, 34, 0.82) 0%,
        rgba(26, 95, 95, 0.72) 50%,
        rgba(13, 59, 59, 0.80) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--teal-200);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-badge svg {
    color: var(--gold);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 24px;
}

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

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 240, 235, 0.75);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(245, 240, 235, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── About Section ── */
.about {
    padding: 120px 0;
    background: var(--warm-white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--warm-white);
}

.about-image-accent img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-content {
    padding: 20px 0;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}

.about-feature-text h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Offerings Section ── */
.offerings {
    padding: 120px 0;
    background: var(--slate-50);
}

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

.section-header .section-label {
    justify-content: center;
}

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

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.offering-card {
    background: var(--warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition);
}

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

.offering-card-image {
    overflow: hidden;
    height: 220px;
}

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

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

.offering-card-content {
    padding: 32px;
}

.offering-card-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    margin-bottom: 20px;
}

.offering-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.offering-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── Heritage Section ── */
.heritage {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

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

.heritage-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 25, 34, 0.88) 0%,
        rgba(26, 95, 95, 0.82) 100%
    );
}

.heritage-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.section-title-light {
    color: var(--text-light);
}

.heritage-text {
    font-size: 1.1rem;
    color: rgba(245, 240, 235, 0.78);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.heritage-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.heritage-stat {
    text-align: center;
}

.heritage-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--teal-300);
    line-height: 1;
    margin-bottom: 8px;
}

.heritage-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.55);
}

.heritage-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

/* ── Visit Section ── */
.visit {
    padding: 120px 0;
    background: var(--warm-white);
}

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

.visit-info {
    padding: 20px 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}

.visit-detail-content h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.visit-detail-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.visit-detail-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--teal-700);
    transition: color var(--transition);
}

.visit-detail-link:hover {
    color: var(--teal-600);
    text-decoration: underline;
}

.visit-cta .btn-primary {
    padding: 16px 32px;
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 480px;
    border: 1px solid var(--slate-100);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* ── Footer ── */
.footer {
    background: var(--slate-900);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--teal-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-light);
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav h5,
.footer-contact h5 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 20px;
}

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

.footer-nav a {
    font-size: 0.9rem;
    color: var(--slate-500);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--teal-300);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-link {
    color: var(--teal-300);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--teal-200);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-600);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }
    
    .offerings-grid {
        gap: 24px;
    }
    
    .heritage-stats {
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-accent {
        right: -20px;
        bottom: -20px;
        width: 200px;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit-map {
        min-height: 360px;
    }
    
    .visit-map iframe {
        min-height: 360px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-image-main img {
        height: 360px;
    }
    
    .about-image-accent {
        width: 160px;
        bottom: -16px;
        right: -8px;
    }
    
    .about-image-accent img {
        height: 120px;
    }
    
    .offerings {
        padding: 80px 0;
    }
    
    .heritage {
        padding: 100px 0;
    }
    
    .heritage-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .heritage-stat-divider {
        display: none;
    }
    
    .visit {
        padding: 80px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
