/**
 * WedStory - Complete Custom Stylesheet
 */

:root {
    --bg: #F4F1EC; 
    --brown: #5D4037; 
    --text: #2D2D2D;
    --white: #ffffff;
}

/* 1. Global Resets */
* {
    box-sizing: border-box;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Navigation Bar */
.custom-nav {
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 1000;
}

.nav-scrolled {
    background: var(--white) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ds-logo-nav {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--white);
}

.nav-scrolled .ds-logo-nav {
    color: var(--text) !important;
    border-bottom-color: var(--text);
}

.custom-nav .nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-left: 30px;
    font-weight: 400;
}

.nav-scrolled .nav-link {
    color: var(--text) !important;
}

/* Fix for Hamburger Icon visibility */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.nav-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

/* 3. Magazine Header */
.magazine-header { 
    position: relative;
    padding: 180px 0 120px 0;
    text-align: center; 
    background-image: url('/image/headerbackground.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

h1.main-title { 
    font-family: 'Bodoni Moda', serif; 
    font-size: calc(3rem + 4vw); 
    text-transform: uppercase; 
    line-height: 0.85; 
    letter-spacing: -3px; 
    margin: 1.5rem 0;
}

.subtitle {
    letter-spacing: 0.5em; 
    font-family: 'Playfair Display', serif;
    font-size: 13px; 
    text-transform: uppercase; 
    opacity: 0.9;
}

/* 4. Swiper Slider & Mobile Fit */
.swiper { 
    width: 100%; 
    height: 85vh; /* Desktop height */
}

.slider-frame {
    padding: 25px; 
    background: var(--white);
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces image to fill the container */
    object-position: center;
}

/* Navigation Buttons */
.swiper-button-next, .swiper-button-prev {
    color: var(--brown) !important; 
    transform: scale(0.6); 
}

/* 5. Portrait Frames (Categories) */
.frame-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e0e0e0;
}

.frame-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.frame-container:hover img { transform: scale(1.08); }

/* 6. Form & Buttons */
.contact-card { 
    background: var(--white); 
    padding: 50px; 
    box-shadow: 10px 10px 0px var(--brown); 
}

.form-control {
    border: none;
    border-bottom: 1px solid rgba(93, 64, 55, 0.3);
    border-radius: 0;
    padding: 15px 0;
    background: transparent;
}

.btn-editorial {
    background: var(--brown); 
    border: none; color: white;
    padding: 15px; 
    text-transform: uppercase;
    letter-spacing: 4px; 
    font-size: 0.75rem;
}

/* 7. Mobile Adjustments (THE FIXES) */
@media (max-width: 768px) {
    /* Fix Nav Menu visibility */
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        color: var(--text) !important;
        margin-left: 0;
        border-bottom: 1px solid #eee;
    }

    /* Fix Swiper height & image fit on mobile */
    .swiper { 
        height: 60vh !important; /* Forces a reasonable height on phones */
    }

    .slider-frame {
        padding: 10px; /* Thinner border for more image space */
    }

    .magazine-header {
        padding: 120px 0 60px 0;
        background-attachment: scroll; /* Smoother on mobile */
    }

    h1.main-title {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    .contact-card {
        padding: 25px;
    }
}

/* About Section Styles */
.py-100 {
    padding: 100px 0;
}

.text-brown {
    color: var(--brown);
}

.tracking-widest {
    letter-spacing: 0.3em;
    font-size: 0.8rem;
}

.about-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-img {
    filter: grayscale(20%);
    box-shadow: 30px 30px 0px var(--white); /* White under-box effect */
    border: 1px solid rgba(0,0,0,0.05);
}

.about-experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--brown);
    color: var(--white);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.about-experience-badge .years {
    font-size: 2.5rem;
    font-family: 'Bodoni Moda';
    line-height: 1;
}

.about-experience-badge .label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Responsive fix for About badge */
@media (max-width: 768px) {
    .about-image-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 40px;
    }
    .about-experience-badge {
        padding: 15px;
        min-width: 100px;
    }
}

/* Reusable Section Headers */
.section-subtitle {
    font-family: 'Playwrite CU', cursive;
    font-size: 1.4rem;
    color: var(--brown);
    margin-bottom: 5px;
    text-transform: none; /* Keep it as normal text, all-caps ruins script fonts */
    display: block;
}

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 60px;
    height: 1px;
    background-color: var(--brown);
    margin: 0;
    opacity: 0.3;
}

/* Responsive adjustment for headers */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Spacing between icons */
}

.social-icon {
    color: var(--text); /* Matches your site's text color */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.6;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--brown); /* Changes to your accent color */
    opacity: 1;
    transform: translateY(-3px); /* Subtle lift effect */
}

/* Optional: Dark Footer Style */
footer {
    border-top: 1px solid rgba(93, 64, 55, 0.1);
    margin-top: 50px;
}

@media (min-width: 992px) {
    .social-links-fixed {
        position: fixed;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        z-index: 100;
    }
}

.editorial-para {
    font-weight: 300;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify; /* Common in magazine layouts */
}

.editorial-para strong {
    font-weight: 500;
    color: var(--brown); /* Subtle highlight for key features */
}

/* Add a drop cap for a premium magazine feel */
.editorial-para:first-of-type::first-letter {
    font-family: 'Bodoni Moda', serif;
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    color: var(--brown);
}

/* Styling the Link as a Button */
.btn-editorial.text-decoration-none {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    background: var(--brown);
    color: var(--white) !important;
    transition: 0.4s ease;
}

.btn-editorial:hover {
    background: var(--text); /* Changes from brown to dark gray on hover */
    letter-spacing: 6px;      /* Classic magazine animation effect */
    color: var(--white) !important;
}

/* Ensure the contact card stays balanced with the text side */
.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}