/* ========================================
   BARLOWE VENTURES - Modern Redesign
   ======================================== */

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

:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #c8a45c;
    --color-accent-light: #d4b76a;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-white: #ffffff;
    --color-off-white: #f8f7f4;
    --color-light-gray: #eeecea;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* ========================================
   Focus Styles (Accessibility)
   ======================================== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   Typography
   ======================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--color-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

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

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

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 164, 92, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.4);
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled,
.navbar--always-scrolled {
    background: rgba(26, 26, 46, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

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

.nav-logo img {
    height: 95px;
    width: auto;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.nav-menu a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.nav-cta {
    background: var(--color-accent) !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

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

/* Dropdown — supports hover AND keyboard focus */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: var(--color-text) !important;
    padding: 0.75rem 1rem !important;
    display: block;
    border-radius: 4px;
    font-size: 0.85rem !important;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: var(--color-off-white) !important;
    color: var(--color-accent) !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    transform-origin: center;
}

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 164, 92, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 164, 92, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    padding: 0 3rem;
    gap: 4rem;
    z-index: 2;
}

.hero-content {
    text-align: left;
    flex: 1;
    padding: 0;
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 16px;
    border: 1px solid rgba(200, 164, 92, 0.25);
    pointer-events: none;
}

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

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   Book Section
   ======================================== */
.book-section {
    padding: 8rem 0;
    background: var(--color-off-white);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.book-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-image-wrapper img {
    max-width: 520px;
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.book-image-wrapper:hover img {
    transform: translateY(-8px) rotate(-2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.book-author {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.book-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ========================================
   Quote Banner
   ======================================== */
.quote-banner {
    padding: 6rem 0;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.quote-banner::before {
    content: '\201C';
    position: absolute;
    top: -40px;
    left: 10%;
    font-size: 20rem;
    font-family: var(--font-display);
    color: rgba(200, 164, 92, 0.06);
    line-height: 1;
}

.quote-banner blockquote {
    text-align: center;
    position: relative;
    z-index: 1;
}

.quote-banner blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.quote-banner cite {
    font-family: var(--font-primary);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

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

.about-image-wrapper img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    z-index: 0;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.about-text p:first-child {
    font-size: 1.15rem;
    color: var(--color-text);
}

.about-quote {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--color-off-white);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.about-quote blockquote p {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-quote cite {
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ========================================
   Community Section
   ======================================== */
.community-section {
    padding: 8rem 0;
    background: var(--color-off-white);
}

.community-header {
    text-align: center;
    margin-bottom: 4rem;
}

.community-header .section-label {
    padding-left: 0;
}

.community-header .section-label::before {
    display: none;
}

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

.community-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.3), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Media Section
   ======================================== */
.media-section {
    padding: 8rem 0;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.media-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.media-contact {
    padding: 2rem;
    background: var(--color-off-white);
    border-radius: 12px;
}

.media-contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.media-email {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent) !important;
    letter-spacing: 0.05em;
}

.media-email:hover {
    color: var(--color-primary) !important;
}

.media-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    position: relative;
    padding: 8rem 0;
    background: var(--color-primary);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.15;
}

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

.contact-grid {
    position: relative;
    z-index: 1;
}

.contact-info .section-label {
    color: var(--color-accent);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(200, 164, 92, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

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

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

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

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2rem 0;
    background: #0d0d1a;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-tagline,
    .hero-title,
    .hero-buttons,
    .hero-image-wrapper {
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .book-grid,
    .about-grid,
    .media-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        max-width: 400px;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
        padding: 6rem 2rem 2rem;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 400px;
    }

    .nav-logo img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        width: 260px;
        height: 350px;
    }

    .nav-logo img {
        height: 55px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown a {
        color: rgba(255,255,255,0.7) !important;
    }

    .community-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 300px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 3.5rem);
    }

    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    .book-image-wrapper img {
        max-width: 350px;
    }

    .book-grid {
        gap: 2rem;
    }

    .about-image-accent {
        display: none;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-quote {
        padding: 2rem 1.5rem;
    }

    .about-quote blockquote p {
        font-size: 1.15rem;
    }

    .media-grid {
        gap: 2rem;
    }

    .contact-bg {
        width: 100%;
        opacity: 0.08;
    }

    .contact-section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .quote-banner {
        padding: 4rem 0;
    }

    .quote-banner blockquote p {
        font-size: clamp(1.1rem, 3vw, 1.6rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-split {
        padding: 5rem 1.25rem 2rem;
        gap: 2rem;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 300px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

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

    .hero-scroll {
        display: none;
    }

    .book-section,
    .about-section,
    .community-section,
    .media-section {
        padding: 4rem 0;
    }

    .book-image-wrapper img {
        max-width: 280px;
    }

    .book-description {
        font-size: 0.95rem;
    }

    .section-label {
        font-size: 0.7rem;
        padding-left: 2rem;
    }

    .section-label::before {
        width: 1.5rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .contact-details {
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}
