/* Core Styling & Resets */
:root {
    --bg-dark: #24527A;          /* Main brand denim blue from logo.jpg as full background */
    --card-dark: #163552;        /* Darker, rich blue-slate blend for structural layout cards */
    --brand-blue: #24527A;       /* Core logo blue variable */
    --accent-gold: #D4AF37;      /* Clean champagne gold accent for typography/buttons */
    --text-main: #EAEFF2;        /* Premium off-white from logo.jpg for crisp reading */
    --text-muted: #A3BDD4;       /* Soft light blue-gray for supporting metadata/descriptions */
    --border-color: #346896;     /* Subtle tint border to maintain panel shapes beautifully */
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.py-space {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar Execution */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(22, 53, 82, 0.95); /* Deep slate-blue drawer wrapper */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition-speed);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
}
.nav-logo-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform var(--transition-speed);
}
.nav-logo-img:hover {
    transform: scale(1.03);
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo span {
    color: var(--accent-gold);
    font-weight: 300;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

/* Page Routers Transition Engine */
.page-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding-top: 70px; /* offset fixed navbar */
    min-height: calc(100vh - 60px);
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Elements */
.hero-slider {
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(22, 53, 82, 0.4); /* Blend fallback overlay */
}

.hero-text h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    max-width: 800px;
    color: var(--text-main);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-gold);
    color: #121212; /* Keeps high-contrast black/dark font on gold button block */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background-color: #EAD074; /* Richer bright gold shimmer */
    transform: translateY(-2px);
}

/* Feature Cards Grid */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: -50px auto 50px auto;
    position: relative;
    z-index: 10;
}

.feature-card {
    background-color: var(--card-dark);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-text h2 {
    font-size: 2.2rem;
    margin: 10px 0 20px 0;
    color: var(--text-main);
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

blockquote {
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-main);
    margin-top: 35px;
}

/* ==========================================
   Advanced Portfolio Grid & Sweep Animations
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Portfolio Item Base Setup */
.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--card-dark);
    cursor: pointer;
}

/* Fluid Zoom Element */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* The Diagonal Sweep Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luxury gradient sweeping from your brand blue to deep charcoal */
    background: linear-gradient(135deg, rgba(36, 82, 122, 0.92) 0%, rgba(22, 53, 82, 0.96) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    
    /* Starting point of the sweep (Hidden Off-screen, angled down) */
    clip-path: circle(0% at 0% 100%);
    transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: clip-path;
}

/* Interactive Hover States */
.portfolio-item:hover img {
    transform: scale(1.08); /* Slow movie-like zoom */
}

.portfolio-item:hover .portfolio-overlay {
    /* Sweeps the color across the frame completely */
    clip-path: circle(141.4% at 0% 100%);
}

/* Slide Up Text Animation */
.sweep-caption {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, opacity 0.5s ease 0.15s;
}

.portfolio-item:hover .sweep-caption {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: 1px;
}

.portfolio-overlay span {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* CSS Scroll-Driven Reveal Engine (Triggers smoothly as you scroll) */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    .scroll-reveal {
        animation: revealUp linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 35%;
    }
}

/* Investment Pricing Tool */
.calculator-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.calc-options {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-main);
}

.form-group input[type="checkbox"] {
    accent-color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

.num-input {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 12px;
    width: 80px;
    border-radius: 4px;
    font-size: 1rem;
    margin-left: 10px;
}

.calc-result {
    background-color: rgba(212, 175, 55, 0.05); /* Tinted subtle gold highlight block */
    border-left: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.price-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 20px 0;
}

.calc-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Accordion FAQs */
.faq-section {
    margin-top: 50px;
}

.faq-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main);
}

.faq-item {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 4px;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
}

.faq-question i {
    transition: transform var(--transition-speed);
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid transparent;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    border-top-color: var(--border-color);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Contact Setup */

/* ==========================================
   Streamlined Contact Form System Styling
   ========================================== */
/* Social Media Component Layout */
.social-onboarding-block {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color); /* Separates information layers elegantly */
}

.social-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 15px;
}

.social-links-wrapper {
    display: flex;
    gap: 18px; /* Clean tracking space between branding icons */
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%; /* Smooth circular frame button */
    color: var(--text-main);
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Luxury Interactive Hover Animation */
.social-icon-link:hover {
    color: #121212; /* High-contrast core text color over gold background */
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px); /* Subtle kinetic lift up */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.studio-details {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px; /* Uniformly spaces down rows */
}

.input-container label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-form-wrapper input {
    width: 100%;
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    padding: 16px;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form-wrapper input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.submit-btn {
    margin-top: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Custom dropdown style */
.styled-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4AF37'><path d='M0 3h12L6 10z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    cursor: pointer;
}

.styled-select option {
    background-color: var(--card-dark);
    color: white;
}

.submit-btn {
    margin-top: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.info-link i {
    color: var(--accent-gold);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-wrapper input, .contact-form-wrapper textarea {
    width: 100%;
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus {
    outline: 1px solid var(--accent-gold);
}

.email-link {
    color: var(--text-main);
    transition: color var(--transition-speed);
}

.email-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
}

.success-alert {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    border-radius: 4px;
    text-align: center;
}

/* Footer Element */
.main-footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Mobile Responsive Adjustments */
@media(max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }

    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .about-grid, .calculator-box, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}