/* 
 * Zombecolas Wedding Services - Main Stylesheet
 * Author: Zombecolas Wedding Services
 * Version: 1.0
 */

/* ======================================
   Table of Contents:
   1. Base Styles & Typography
   2. Layout & Grid
   3. Header & Navigation
   4. Hero Section
   5. About Section
   6. Services Section
   7. Testimonials Section
   8. Blog Section
   9. Contact Section
   10. Footer
   11. Buttons & Forms
   12. Cookie Consent
   13. Blog Posts
   14. Thank You Page
   15. Legal Pages
   16. Media Queries
   ====================================== */

/* ======================================
   1. Base Styles & Typography
   ====================================== */
   :root {
    /* Color Variables */
    --primary-color: #d4af7a; /* Gold */
    --secondary-color: #7a9e9f; /* Sage */
    --dark-color: #333333;
    --light-color: #f9f9f9;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #767676;
    --error-color: #d32f2f;
    --success-color: #22c55e;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
    
    /* Spacing */
    --section-spacing: 6rem;
    --element-spacing: 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.4rem;
}

h5 {
    font-size: 2rem;
}

h6 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.6rem;
}

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

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

ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

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

/* Section Titles */
.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 5rem;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 8rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
}

/* ======================================
   2. Layout & Grid
   ====================================== */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-small {
    max-width: 80rem;
}

.container-large {
    max-width: 140rem;
}

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

/* Grid System */
.grid {
    display: grid;
    gap: 3rem;
}

.two-column {
    grid-template-columns: repeat(2, 1fr);
}

.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.four-column {
    grid-template-columns: repeat(4, 1fr);
}

/* ======================================
   3. Header & Navigation
   ====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo-container {
    max-width: 22rem;
}

.logo-container img {
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--dark-color);
    margin: 0.5rem 0;
    transition: all var(--transition-speed) ease;
}

/* ======================================
   4. Hero Section
   ====================================== */
.hero {
    height: 100vh;
    min-height: 60rem;
    background-color: #f9f7f5;
    position: relative;
    overflow: hidden;
    padding-top: 8rem; /* Space for fixed header */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(100% - 8rem); /* Account for padding-top */
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 50rem;
    z-index: 2;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
}

/* ======================================
   5. About Section
   ====================================== */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.8rem;
    color: var(--dark-gray);
}

.about-image {
    flex: 1;
}

.about-stats {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 4.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item p {
    font-size: 1.6rem;
    color: var(--dark-gray);
}

/* ======================================
   6. Services Section
   ====================================== */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center;
    padding: 3rem 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* ======================================
   7. Testimonials Section
   ====================================== */
.testimonials {
    background-color: #f9f7f5;
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 90rem;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    padding: 2rem;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-family: var(--heading-font);
    font-size: 10rem;
    color: rgba(212, 175, 122, 0.1);
    position: absolute;
    top: 2rem;
    left: 2rem;
    line-height: 1;
}

.testimonial-content p {
    font-size: 1.8rem;
    color: var(--dark-color);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    margin-top: 2rem;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.testimonial-author p {
    font-size: 1.4rem;
    color: var(--dark-gray);
    font-style: normal;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    margin: 0 1rem;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ======================================
   8. Blog Section
   ====================================== */
.blog {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.blog-card {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 22rem;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.blog-content {
    padding: 2.5rem;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.blog-content p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* ======================================
   9. Contact Section
   ====================================== */
.contact {
    background-color: #f9f7f5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 2.5rem;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group .required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--medium-gray);
    border-radius: 0.4rem;
    font-family: var(--body-font);
    font-size: 1.6rem;
    transition: border var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-weight: 400;
}

/* ======================================
   10. Footer
   ====================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-width: 22rem;
}

.footer-logo img {
    margin-bottom: 2rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

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

.footer-social h4 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons img {
    width: 2rem;
    height: 2rem;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* ======================================
   11. Buttons & Forms
   ====================================== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    box-shadow: 0 5px 15px rgba(212, 175, 122, 0.3);
    color: var(--primary-color);
}

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

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    box-shadow: 0 5px 15px rgba(122, 158, 159, 0.3);
    color: var(--secondary-color);
}

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

.btn-tertiary:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Form Validation Styles */
.error-message {
    color: var(--error-color);
    font-size: 1.4rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success-color);
}

/* ======================================
   12. Cookie Consent
   ====================================== */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: none;
    max-width: 50rem;
}

.cookie-content {
    padding: 2.5rem;
}

.cookie-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cookie-content p {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.cookie-options {
    margin-bottom: 2rem;
}

.cookie-options label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-options input {
    margin-right: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-buttons button {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.cookie-links a {
    font-size: 1.4rem;
}

/* ======================================
   13. Blog Posts
   ====================================== */
.blog-post {
    padding-top: 12rem;
}

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

.blog-meta {
    display: flex;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 1.6rem;
    margin-top: -1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-featured-image {
    margin-bottom: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
}

.blog-content {
    max-width: 80rem;
    margin: 0 auto;
}

.blog-content h2 {
    margin-top: 4rem;
    font-size: 2.8rem;
}

.blog-content ul, 
.blog-content ol {
    margin-bottom: 3rem;
}

.blog-content li {
    margin-bottom: 1rem;
}

.blog-cta {
    margin: 5rem 0;
    text-align: center;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin: 5rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--medium-gray);
}

.blog-navigation-previous,
.blog-navigation-next {
    max-width: 45%;
}

.blog-navigation a {
    font-size: 1.6rem;
    font-weight: 500;
}

.related-articles {
    background-color: var(--light-color);
    padding: 6rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

/* ======================================
   14. Thank You Page
   ====================================== */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 40rem); /* Subtract header and footer height */
    text-align: center;
    padding: 8rem 2rem;
}

.thank-you-content {
    margin: 5rem;
    padding: 5rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.thank-you-content h1 {
    margin-bottom: 2rem;
    font-size: 3.6rem;
}

.thank-you-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

/* ======================================
   15. Legal Pages
   ====================================== */
.legal-section {
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-content {
    max-width: 80rem;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 2.4rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: 2rem;
}

.legal-content li {
    margin-bottom: 1rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 3rem;
}

.cookie-table th, 
.cookie-table td {
    border: 1px solid var(--medium-gray);
    padding: 1.2rem;
    text-align: left;
}

.cookie-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.cookie-controls-section {
    margin-top: 5rem;
    padding: 3rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
}

.cookie-preferences {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 2rem;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-option label input {
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.cookie-option p {
    margin-left: 2.5rem;
    font-size: 1.4rem;
    color: var(--dark-gray);
}

/* ======================================
   16. Media Queries
   ====================================== */
/* Medium Screens */
@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero {
        height: auto;
        padding: 12rem 0 6rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding: 0 2rem;
        text-align: center;
        margin-bottom: 4rem;
        max-width: 100%;
    }
    
    .hero-image {
        order: -1; /* Place image above content on mobile */
    }
    
    .hero-image img {
        max-height: 50vh;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens */
@media screen and (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 8rem;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed) ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-navigation {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .blog-navigation-previous,
    .blog-navigation-next {
        max-width: 100%;
        text-align: center;
    }
    
    .cookie-consent {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-right: 0;
    }
    
    .testimonial-content {
        padding: 3rem 2rem;
    }
}

/* Extra Small Screens */
@media screen and (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-slide {
        padding: 1rem;
    }
    
    .blog-image {
        height: 18rem;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
