/*
 * Creative Journaling Website Styles
 * Global styles for all pages
 */

/* CSS Variables */
:root {
    --color-primary: #8E7D6B; /* Warm Taupe */
    --color-secondary: #F2C94C; /* Golden Beige */
    --color-accent: #A3BE8C; /* Soft Sage Green */
    --color-background: #FAF7F2; /* Ivory Paper */
    --color-text: #3E3E3E; /* Dark Text */

    --font-primary: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --font-accent: 'Caveat', cursive;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/17.webp');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

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

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

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

p {
    margin-bottom: var(--space-md);
}

.accent-text {
    font-family: var(--font-accent);
    color: var(--color-accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header Styles */
.site-header {
    padding: var(--space-md) 0;
    background-color: rgba(250, 247, 242, 0.95);
    border-bottom: 1px solid rgba(142, 125, 107, 0.2);
    position: relative;
    z-index: 100;
    transition: transform var(--transition-medium);
}

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

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.brand-name span {
    font-family: var(--font-accent);
    color: var(--color-accent);
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    position: relative;
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
    background-image: linear-gradient(rgba(250, 247, 242, 0.7), rgba(250, 247, 242, 0.9)), url('../images/19.webp');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.hero-description {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

/* Features Section */
.features-section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
}

.feature-card {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--color-text);
}

/* About Section */
.about-section {
    padding: var(--space-xl) 0;
    background-color: rgba(163, 190, 140, 0.1);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
}

.about-image {
    flex: 1 1 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-content {
    flex: 1 1 400px;
}

.about-title {
    margin-bottom: var(--space-md);
}

.about-description {
    margin-bottom: var(--space-md);
}

.about-list {
    list-style-position: inside;
    margin-bottom: var(--space-md);
}

.about-list li {
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    color: rgba(142, 125, 107, 0.2);
    font-family: var(--font-primary);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
}

/* Gallery Section */
.gallery-section {
    padding: var(--space-xl) 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(142, 125, 107, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    padding: var(--space-md);
    text-align: center;
}

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

.gallery-title {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: white;
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background-color: rgba(242, 201, 76, 0.1);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-md);
}

.cta-description {
    margin-bottom: var(--space-lg);
}

/* Product Section */
.product-section {
    padding: var(--space-xl) 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.product-card {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: var(--space-lg);
}

.product-title {
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.product-description {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.product-price {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: var(--space-xl) 0;
    background-color: rgba(163, 190, 140, 0.1);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.contact-info {
    flex: 1 1 300px;
}

.contact-title {
    margin-bottom: var(--space-md);
}

.contact-description {
    margin-bottom: var(--space-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: var(--space-md);
}

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

.contact-form {
    flex: 1 1 400px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid rgba(142, 125, 107, 0.3);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-checkbox input {
    margin-top: 5px;
}

/* Map Section */
.map-section {
    padding: var(--space-xl) 0;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.site-footer {
    padding: var(--space-lg) 0;
    background-color: rgba(142, 125, 107, 0.1);
    border-top: 1px solid rgba(142, 125, 107, 0.2);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
}

.footer-col {
    flex: 1 1 200px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.footer-list {
    list-style: none;
}

.footer-item {
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    margin-top: var(--space-lg);
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(142, 125, 107, 0.2);
}

.copyright {
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Privacy Policy Popup */
.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 247, 242, 0.95);
    padding: var(--space-md);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.privacy-popup.active {
    display: block;
}

.privacy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.privacy-text {
    flex: 1;
    margin-bottom: 0;
}

.privacy-close {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.9rem;
}

/* Thank You Page */
.thanks-container {
    text-align: center;
    padding: var(--space-xl) 0;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.thanks-title {
    margin-bottom: var(--space-md);
}

.thanks-description {
    margin-bottom: var(--space-lg);
}

/* 404 Page */
.error-container {
    text-align: center;
    padding: var(--space-xl) 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.error-title {
    margin-bottom: var(--space-md);
}

.error-description {
    margin-bottom: var(--space-lg);
}

/* Policy Pages */
.policy-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    margin: var(--space-xl) auto;
    max-width: 900px;
}

.policy-section {
    margin-bottom: var(--space-lg);
}

.policy-title {
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(142, 125, 107, 0.2);
    padding-bottom: var(--space-sm);
}

.policy-list {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.policy-list li {
    margin-bottom: var(--space-sm);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-background);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl) var(--space-lg);
        transition: right var(--transition-medium);
        z-index: 1000;
    }

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

    .nav-item {
        margin-left: 0;
        margin-bottom: var(--space-lg);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .header-container {
        padding: var(--space-sm) var(--space-md);
    }

    .hero-content {
        text-align: center;
        padding: var(--space-lg);
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .feature-card {
        flex: 1 1 100%;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .hero {
        min-height: 60vh;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--space-md);
    }

    .privacy-container {
        flex-direction: column;
        text-align: center;
    }
}