/* ========================================= */
/* ============= DESKTOP STYLES ============ */
/* ========================================= */

/* ================= GLOBAL STYLES ================= */
:root {
    --primary: #162a4b;
    --accent: #ebcfa7;
    --white: #ffffff;
    --white-70: rgba(255, 255, 255, 0.7);
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box;}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--primary);
    color: var(--white);
    overflow-x: hidden;
}
body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-padding { padding: 100px 0; }

/* Typography */
.section-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}
.section-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}
.text-gold { color: var(--accent); }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }

/* ================= 1. HEADER ================= */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    /*padding: 20px 0;*/ background-color: #162a4b3d;
    z-index: 1000; opacity: 0; pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.3s ease;
}
.header-container {
    display: flex; align-items: center; position: relative;
    height: 100px; max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.logo { height: 100%; display: flex; align-items: center; z-index: 1002; position: relative; margin-right: auto; }
.logo img { height: 123px; width: auto; display: block; opacity: 1; }
.desktop-nav {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1001;
}
.desktop-nav ul { display: flex; gap: 40px; }
.desktop-nav a { 
    font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 1px;
    font-size: 1.1rem; color: var(--white); position: relative;
}
.desktop-nav a:hover { color: var(--accent); }

/* Mobile Menu Base Styles */
.mobile-toggle {
    display: none; flex-direction: column; gap: 6px; background: none; border: none;
    cursor: pointer; margin-left: auto; z-index: 1002;
}
.mobile-toggle span { display: block; width: 30px; height: 2px; background: var(--white); }
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--primary); z-index: 999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: right 0.4s ease;
}
.mobile-menu.active { right: 0; }
.mobile-link { font-family: var(--font-serif); font-size: 2rem; margin: 20px 0; text-transform: uppercase; color: white; }

/* ================= 2. PRELOADER ================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary); z-index: 9999; display: flex;
    justify-content: center; align-items: center;
}
#preloader video { width: 100%; height: 100%; object-fit: cover; }
#skip-btn {
    position: absolute; bottom: 30px; right: 30px; padding: 10px 20px;
    background: transparent; border: 1px solid rgba(255,255,255,0.5);
    color: white; cursor: pointer; text-transform: uppercase; z-index: 10000;
}
.hero-animation-container { height: 100vh; width: 100%; position: relative; z-index: 500; }
#animatable-logo-wrapper {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1001; width: 400px; opacity: 0;
}
#animatable-logo { width: 100%; height: auto; }
.scroll-animation-spacer { height: 100vh; width: 100%; display: none; }

/* ================= 3. KEYHOLE SECTION ================= */
.keyhole-section { position: relative; width: 100%; height: 100vh; overflow: hidden; background-color: var(--primary); }
.keyhole-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.keyhole-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.keyhole-mask-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; display: flex; justify-content: center; align-items: center;
}
.keyhole-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mask-text {
    font-family: var(--font-serif); font-weight: 700; font-size: 250px;
    letter-spacing: 15px; text-transform: uppercase;
}
.keyhole-content {
    position: relative; z-index: 3; text-align: center; color: var(--white);
    pointer-events: none; top: 35%;
}
.keyhole-content p { font-family: var(--font-sans); letter-spacing: 2px; opacity: 0.9; text-transform: uppercase; }

/* Hide Mobile Keyhole Section by default */
.mobile-keyhole-section {
    display: none;
}

/* ================= 4. CONTENT SECTIONS ================= */
.hero-section-updated { padding: 100px 0; background-color: var(--primary); position: relative; z-index: 10; }
.hero-header { margin-bottom: 40px; }
.sub-heading { font-family: var(--font-serif); font-size: 1.8rem; letter-spacing: 1px; font-weight: 400; text-transform: uppercase; margin-bottom: 10px; }
.main-heading { font-family: var(--font-serif); font-size: 2.2rem; letter-spacing: 1px; font-weight: 400; text-transform: uppercase; }
.years-display { margin: 40px 0; text-align: center; position: relative; z-index: 20; }
.years-outline {
    font-family: var(--font-serif); font-size: 10rem; line-height: 0.8;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    transition: all 0.4s ease; display: inline-block; cursor: default; pointer-events: auto;
}
.years-outline:hover { color: #899FAE; -webkit-text-stroke: 0px transparent; }
.years-sub { letter-spacing: 5px; margin-top: 20px; font-size: 1rem; text-transform: uppercase; }
.hero-split-content { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 60px auto 0; }
.hero-image-box img { width: 100%; border-radius: 2px; }
.hero-text-box { text-align: justify;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 2.3;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  margin-top:53px;
 }
.arrow-icon { font-size: 2rem; text-align: right; margin-top: 10px; opacity: 0.7; }

/* Discover Ideal Home */
.discover-centered-section { background-color: white; color: var(--primary); padding-bottom: 150px; }
.discover-header { margin-bottom: 80px; position: relative; z-index: 2; }
.main-title { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.2; color: #162a4b; margin-bottom: 30px; font-weight: 400; letter-spacing: 0.5px; }
.discover-desc { font-family: var(--font-serif); font-size: 1rem; color: #333; line-height: 1.8; max-width: 900px; margin: 0 auto; text-align: center; }
.discover-stats-row { display: flex; justify-content: center; align-items: flex-start; margin-top: 60px; max-width: 1100px; margin: 60px auto 0; }
.stat-col { padding: 0 20px; text-align: center; flex: 1; }
.stat-val { font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: #162a4b; font-weight: 400; margin-bottom: 10px; }
.stat-txt { font-family: var(--font-serif); font-size: 0.9rem; color: #162a4b; text-transform: uppercase; letter-spacing: 1px; }
.divider-line { width: 1px; height: 80px; background-color: #ccc; margin-top: 20px; }

/* Our Projects */
.projects-section-wrapper { background-color: var(--primary); padding-top: 100px; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.projects-accordion { display: flex; width: 100%; height: 75vh; overflow: hidden; background-color: var(--primary); }
.panel {
    position: relative; flex: 0.5; cursor: pointer; transition: flex 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover; background-position: center; border-right: 1px solid rgba(255,255,255,0.1); overflow: hidden;
}
.panel.active { flex: 4; cursor: default; }
.panel::before { content: ''; position: absolute; inset: 0; background-color: #162a4b; opacity: 1; transition: opacity 0.5s ease; z-index: 1; }
.panel.active::before { opacity: 0.2; background: linear-gradient(to right, rgba(0,0,0,0.6), transparent); }
.panel-content { position: absolute; inset: 0; z-index: 2; padding: 40px; color: var(--white); transition: opacity 0.3s ease 0.2s; }
.active-state { opacity: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-start; }
.panel.active .active-state { opacity: 1; pointer-events: auto; }
.content-top-left { display: flex; align-items: flex-start; gap: 20px; margin-top: 40px; }
.big-num { font-family: var(--font-serif); font-size: 6rem; line-height: 0.8; color: var(--white); opacity: 0.9; }
.text-group { display: flex; flex-direction: column; }
.brand-small { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 5px; }
.project-title { font-family: var(--font-serif); font-size: 3.5rem; text-transform: uppercase; line-height: 1; margin: 0; }
.inactive-state { opacity: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 30px 10px; }
.panel.active .inactive-state { opacity: 0; pointer-events: none; }
.big-num-inactive { font-family: var(--font-serif); font-size: 3rem; color: var(--white); }
.vertical-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-sans); font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; margin-bottom: 40px; }

/* Why Choose */
.why-choose-section { background-color: #162a4b; position: relative; overflow: hidden; padding-bottom: 120px; }
.papers-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 60px; perspective: 1000px; }
.paper-card {
    width: 260px; height: 260px; background-color: #f4f4f4; position: relative; padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); border-radius: 2px;
}
.paper-curl {
    position: absolute; bottom: 0; left: 0; width: 60px; height: 60px;
    background: linear-gradient(135deg, transparent 45%, #dbdbdb 50%, #d1d1d1 56%, #e6e6e6 80%);
    box-shadow: 6px -6px 12px rgba(0,0,0,0.2); border-radius: 0 0 0 20px; z-index: 5; clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.paper-card::after {
    content: ''; position: absolute; bottom: 10px; left: 5px; width: 50px; height: 20px;
    background: transparent; box-shadow: -10px 10px 15px rgba(0,0,0,0.5); transform: rotate(-15deg); z-index: -1;
}
.pin {
    width: 16px; height: 16px; background: radial-gradient(circle at 30% 30%, #ff5e5e, #d60000);
    border-radius: 50%; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    z-index: 10; box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.pin::before {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px;
    background: linear-gradient(to right, #990000, #ff0000, #990000); border-radius: 2px 2px 50% 50%;
}
.paper-content { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 10px; }
.paper-icon { width: 70px; height: 70px; color: #000; margin-bottom: 5px; }
.paper-card h3 { font-family: 'Instrument Serif', serif; color: #162a4b; font-size: 1.5rem; text-transform: uppercase; line-height: 1; letter-spacing: 0.5px; margin: 0; }
.float-animation-1 { animation: hover-1 5s ease-in-out infinite; }
.float-animation-2 { animation: hover-2 6s ease-in-out infinite 0.5s; top: 20px; }
.float-animation-3 { animation: hover-3 5.5s ease-in-out infinite; animation-delay: 1s; }
@keyframes hover-1 { 0%, 100% { transform: translateY(0px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes hover-2 { 0%, 100% { transform: translateY(0px) rotate(1deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes hover-3 { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* Success Stories */
.success-stories-section {
    background-color: #ffffff;
    color: #162a4b; /* Brand Dark Blue */
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
}
.success-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    color: #162a4b;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: left; 
}
.success-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.success-image-box {
    background-color: #6b6b6b; /* Gray color from screenshot */
    width: 100%;
    height: 500px; /* Tall rectangle */
    position: relative;
}
.success-content {
    position: relative;
    padding-right: 20px;
}
.testimonial-text {
    font-family: 'Inter', sans-serif; /* Clean font */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 400;
}
.testimonial-author h4 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: #162a4b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.testimonial-author span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.quote-decoration {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 120px;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
}
.quote-decoration path {
    fill: none;
    stroke: #162a4b;
    stroke-width: 1;
}

/* Contact Form */
.contact-form-section {
    background-color: #162a4b; /* Dark Navy Blue from Screenshot */
    padding: 100px 0;
    color: white;
    position: relative;
}
.contact-header {
    text-align: center;
    margin-bottom: 80px;
}
.contact-header h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.contact-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 300;
}
.custom-form {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 50px;
}
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
}
.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #6c757d;
    color: #fff;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-input:focus {
    border-bottom-color: #fff;
}
.form-submit-wrapper {
    display: flex;
    align-items: flex-end; /* Align to bottom of the grid cell */
    justify-content: flex-start;
}
.submit-btn {
    background-color: #E3C496; /* Gold/Beige color */
    color: #1F2736;
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    padding: 10px 50px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s;
    width: 100%;
    max-width: 200px; /* Limit button width */
}
.submit-btn:hover {
    background-color: #d1b282;
    transform: translateY(-2px);
}
.antispam-honey {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}
#form-status {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: none;
}

/* Footer */
.new-site-footer {
    background-color: #ffffff;
    color: #1F2736; /* Dark text */
    padding: 60px 0 40px;
    font-family: 'Inter', sans-serif;
}
.footer-logo-section {
    margin-bottom: 30px;
}
.footer-logo-img {
    max-width: 220px; 
    height: auto;
}
.footer-divider {
    border: 0;
    border-top: 1px solid #b0b0b0; /* Gray divider */
    margin: 0 0 50px 0;
}
.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-phones {
    font-family: 'Instrument Serif', serif;
    font-size: 2.8rem;
    color: #1F2736;
    line-height: 1.2;
}
.footer-phones a {
    color: inherit;
    /*text-decoration: underline;*/
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}
.footer-address-block {
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.8;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.addr-label {
    font-weight: 700;
    display: block;
}
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    flex-wrap: wrap;
    gap: 20px;
    letter-spacing: 0.5px;
    color: #000;
}
.footer-download {
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background-color: #000000;
    color: #ffffff;
}
.icon-circle svg {
    width: 18px;
    height: 18px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.icon-circle:hover {
    opacity: 0.8;
}

/* Tablet Media Query */
@media (max-width: 992px) { /* Laptops / Tablets */
    .years-outline { font-size: 8rem; }
    .hero-split-content { flex-direction: column; text-align: center; }
    .hero-text-box { padding-left: 0; text-align: center; }
    .discover-stats-row { flex-wrap: wrap; }
    .stat-col { flex: 1 1 45%; margin-bottom: 30px; }
    .divider-line { display: none; } /* Hide vertical lines, elements wrap */
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* ============= MOBILE STYLES ============= */
/* ========================================= */

@media (max-width: 768px) { 
    /* 1. Mobile Keyhole Text Sizing */
    .mask-text {
        font-size: 100px; 
        letter-spacing: 18px;
    }
    
    /* 2. Content Position */
    .keyhole-content {
        top: 55%; 
        width: 100%;
        padding: 0 20px;
    }
    .keyhole-content h2 {
        font-size: 1.5rem;
        padding: 0 20px;
    }
    .keyhole-content p {
        font-size: 0.8rem; 
    }

    /* 3. Hide Desktop Section, Show Mobile Section */
    #keyhole-trigger { display: none !important; }
    .mobile-keyhole-section {
        display: block !important;
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        background-color: #162a4b;
    }

    /* 4. Typography Adjustments */
    .section-title { font-size: 2.2rem; }
    .years-outline { font-size: 5rem; }
    .main-heading { font-size: 1.5rem; }
    .stat-val { font-size:46px !important }
    .main-title { font-size: 2rem; }
    
    /* 5. Menu & Logo */
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    .header-container { justify-content: space-between; height: 70px; }
    .logo img { height: 120px; }

    /* 6. Stack Accordion */
    .projects-accordion { flex-direction: column; height: auto; min-height: 100vh; }
    .panel { height: 120px; width: 100%; transition: height 0.5s ease; }
    .panel.active { height: 400px; }
    .vertical-title { writing-mode: horizontal-tb; transform: none; margin-bottom: 0; }
    .inactive-state { flex-direction: row; justify-content: space-between; padding: 0 30px; align-items: center; }
    
    /* 7. Stack Sticky Notes */
    .papers-grid { flex-direction: column; align-items: center; gap: 60px; }
    .float-animation-2 { top: 0; } 

    /* 8. Success Stories Mobile */
    .success-grid {
        grid-template-columns: 1fr; /* Stacks vertically */
        gap: 40px;
    }
    .success-image-box {
        height: 350px;
        width: 100%;
    }
    .success-content {
        padding-right: 0;
    }
    .success-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    .quote-decoration {
        width: 80px;
        bottom: -20px;
    }
    
    /* 9. Contact Form Mobile */
    .contact-header h2 {
        font-size: 2.5rem;
    }
    .custom-form {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    .form-submit-wrapper {
        justify-content: center;
    }
    .submit-btn {
        max-width: 100%;
    }
    
    /* 10. Footer Mobile */
    .footer-main-content { flex-direction: column; gap: 40px; }
    .footer-phones { width: 100%; text-align: left; font-size: 1.8rem;}
    .footer-address-block { text-align: left; width: 100%; }
    .footer-bottom-bar { flex-direction: column; gap: 30px; text-align: center; }
    .footer-download { justify-content: center; }
    .footer-credit { order: 3; } 
    .footer-social { order: 2; }
}