/* ==========================================================================
   Design Tokens & Base Variables (Blue & White Theme)
   ========================================================================== */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FA;
    --bg-tertiary: #F1F5F9;
    --blue: #0038A8; /* Royal Blue from Office Board */
    --blue-light: #2563EB; /* Dodger Blue Accent */
    --blue-dark: #1E3A8A; /* Navy Accent */

    --text-primary: #16202E; /* Slate Black */
    --text-secondary: #5B6472; /* Slate Gray */
    --text-muted: #94A3B8; /* Muted Gray */

    --border-blue: rgba(15, 23, 42, 0.1);
    --border-blue-focus: rgba(0, 56, 168, 0.3);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-smooth: all 0.25s ease;
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

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

ul {
    list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/* ==========================================================================
   Typography & Core Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--blue-dark);
}

.text-blue-light {
    color: var(--blue-light);
}

.text-white {
    color: #FFFFFF;
}

.subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.section {
    padding: 7.5rem 0;
    position: relative;
}

.bg-light-secondary {
    background-color: var(--bg-secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--blue);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--blue);
    color: #FFFFFF;
    border: 1px solid var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

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

.btn-secondary:hover {
    background: rgba(0, 56, 168, 0.05);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 56, 168, 0.05);
    transition: var(--transition-smooth);
}

.header-shrink {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-blue);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--blue);
}

.logo-accent {
    color: var(--blue-dark);
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--blue);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.toggle-bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: var(--bg-secondary);
}

.hero-content {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content .subtitle {
    color: var(--blue);
    border: 1px solid var(--border-blue);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    background-color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-stats {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: var(--bg-primary);
    padding: 2rem 4rem;
    border-radius: 8px;
    border: 1px solid var(--border-blue);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: var(--border-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-blue);
    transition: var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    border-color: var(--border-blue-focus);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--blue);
    margin-bottom: 2rem;
}

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

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-bullets {
    border-top: 1px solid rgba(0, 56, 168, 0.05);
    padding-top: 1.2rem;
}

.service-bullets li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 15px;
}

.service-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
}

/* ==========================================================================
   Our Process Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.process-step {
    text-align: left;
}

.process-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.8rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   Portfolio Showcase Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 0;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-blue);
    transition: var(--transition-smooth);
}

.portfolio-image-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image-box img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 1.8rem;
}

.project-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.project-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.portfolio-item:hover {
    border-color: var(--border-blue-focus);
}

/* ==========================================================================
   About The Architect Section
   ========================================================================== */
.about-text-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-blue);
    text-align: left;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(0, 56, 168, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-title {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-center-card {
    max-width: 650px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-blue);
    padding: 3.5rem;
}

.info-card {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.info-text {
    min-width: 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 56, 168, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    overflow-wrap: break-word;
}

.info-text a:hover {
    color: var(--blue);
}

.map-container {
    margin-top: 1rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-blue);
}

.map-placeholder {
    padding: 2rem;
    background: var(--bg-secondary);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    gap: 10px;
}

.map-placeholder p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #001f5c; 
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 6rem 0 2rem 0;
    color: #FFFFFF;
}

.footer h1, .footer h2, .footer h3, .footer h4 {
    color: #FFFFFF;
}

.footer-logo {
    color: #FFFFFF !important;
}

.footer-logo .logo-accent {
    color: #FFFFFF !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.brand-col .logo {
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.social-links a:hover {
    border-color: #FFFFFF;
    color: var(--blue-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.8rem;
    font-family: var(--font-body);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--blue-light);
    padding-left: 4px;
}

.footer-cities li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.6rem;
    list-style: square;
    margin-left: 15px;
}

.hours-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.credential-text {
    display: inline-block;
    font-size: 0.7rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-floating-widget:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.widget-badge {
    position: absolute;
    right: 70px;
    background-color: var(--bg-primary);
    color: var(--blue-dark);
    border: 1px solid var(--blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.whatsapp-floating-widget:hover .widget-badge {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Animations & Fallback Classes
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: animate-up-kf 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes animate-up-kf {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 998;
        border-top: 1px solid var(--border-blue);
    }
    .nav-menu.open {
        left: 0;
    }
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
        width: 100%;
        max-width: 100%;
    }
    .stat-divider {
        width: 1px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 20px;
    }
    .stat-divider {
        width: 80%;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 2.0rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}
