/* Custom Properties / Design Tokens */
:root {
    --color-ivory: #FFFFF0;
    --color-gold: #D4AF37;
    --color-gold-hover: #e6c558;
    --color-charcoal: #333333;
    --color-navy: #673F5E;
    /* Purple */
    --color-navy-light: #804E74;
    /* Lighter Purple */
    --color-text: #4A4A4A;
    --color-bg-light: #F9F9F9;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-charcoal);
}

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

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-navy);
    font-family: var(--font-heading);
}

.header-phone .icon-phone {
    color: var(--color-gold);
}

.header-phone:hover {
    color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--color-ivory);
    padding-top: 80px;
    /* Offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(103, 63, 94, 0.6), rgba(103, 63, 94, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: var(--color-ivory);
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Book Section */
.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.book-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-text h2 {
    font-size: 2.5rem;
    color: var(--color-navy);
}

.book-text .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.book-text p {
    margin-bottom: 1rem;
}

.book-visual {
    height: 100%;
}

.book-visual .decorative-element {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.book-visual .decorative-element::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

/* About Section */
.about-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    align-items: stretch;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--color-bg-light);
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-heading);
    font-style: italic;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Stories Section */
.section-title {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 3rem;
}

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

.story-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.story-content {
    padding: 1.5rem;
}

.story-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Accordion */
.accordion {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: var(--color-bg-light);
    border: none;
    padding: 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s ease;
    background: white;
}

/* Custom Scrollbar for Accordion Content */
.accordion-content::-webkit-scrollbar {
    width: 6px;
}

.accordion-content::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.accordion-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

.accordion-content ul {
    padding: 1rem 1.5rem;
    list-style-type: disc;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-navy);
    color: var(--color-ivory);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 240, 0.1);
    text-align: left;
}

.footer-brand p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-ivory);
}

.footer-brand .footer-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 0.2rem;
    color: #b0b5c1;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-icon:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.footer-phone {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.click-to-call-text {
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: #b0b5c1;
    font-weight: normal;
}

.footer-phone:hover {
    color: var(--color-gold);
}

.footer-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #b0b5c1;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .book-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-contact {
        align-items: center;
    }
}