/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Colors */
    --clr-primary: #0f172a;
    /* Deep Marine Blue/Slate */
    --clr-primary-light: #1e293b;
    --clr-accent: #d89e5f;
    /* Trustworthy Gold */
    --clr-accent-hover: #c68c4f;
    --clr-accent-light: #fef9e7;

    --clr-text-main: #334155;
    --clr-text-muted: #64748b;
    --clr-heading: #0f172a;

    --clr-bg-main: #f8fafc;
    --clr-bg-alt: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radius Tokens */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-heading);
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.py-small {
    padding: 4rem 0;
}

.pt-large {
    padding-top: 10rem;
}

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

.bg-primary {
    background-color: var(--clr-primary);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.rounded-img {
    border-radius: 24px;
}

.with-shadow {
    box-shadow: var(--shadow-xl);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.6) 40%,
            rgba(15, 23, 42, 0.2) 75%,
            rgba(15, 23, 42, 0) 100%);
    /* Smoother, multi-stop gradient for better blending */
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* Adjusted for better light mode contrast when scrolled */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

/* Specific nav colors for transparent State vs Scrolled State */
.navbar .nav-links a {
    color: #fff;
    font-weight: 500;
}

.navbar.scrolled .nav-links a {
    color: var(--clr-text-main);
}

.navbar .logo-text {
    color: #fff;
}

.navbar.scrolled .logo-text {
    color: var(--clr-primary);
}

.navbar .menu-toggle {
    color: #fff;
}

.navbar.scrolled .menu-toggle {
    color: var(--clr-primary);
}


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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
}

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

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

.nav-links a.active {
    color: var(--clr-accent) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle {
    color: var(--clr-primary);
}

/* Mobile Menu / Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.close-menu {
    display: none;
    /* Only visible on mobile */
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--clr-text-main);
    cursor: pointer;
}

/* =========================================
   HERO / PAGE HEADERS
   ========================================= */
.hero {
    position: relative;
    padding: 12rem 0 8rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.page-header {
    background-color: var(--clr-primary);
    padding: 10rem 0 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--clr-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 350px;
}

.light-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.light-glass h3 {
    color: #fff;
}

.light-glass .stat-number {
    color: var(--clr-accent);
}

.light-glass .stat-text {
    color: rgba(255, 255, 255, 0.8);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.image-glass-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    font-family: var(--font-heading);
}

.stat-text {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

/* =========================================
   GRIDS & LAYOUTS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--clr-bg-alt);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-accent);
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--clr-primary);
}

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

.service-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-primary);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--clr-accent);
    color: var(--clr-primary);
}

/* Commitments Dark Version */
.commitments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.commitment-item-dark {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.commitment-item-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.icon-box-dark {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Specific responsive fix for contact page */
@media (max-width: 992px) {
    .contact-info-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-top: 0 !important;
        /* Reset inline padding on mobile */
    }
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
    background: #ffffff;
    /* Ensure solid background against overlapping issues */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: var(--clr-accent);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background: var(--clr-primary);
    color: var(--clr-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-form {
    padding: 1rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-xl);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* =========================================
   PRICING
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--clr-accent);
}

.price-card.featured {
    background: var(--clr-primary);
    color: #fff;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.price-card.featured h3,
.price-card.featured .price {
    color: #fff;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-text-muted);
}

.price-features {
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card.featured .price-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
    font-size: 1.125rem;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--clr-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer a:hover {
    color: var(--clr-accent);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-contact i {
    color: var(--clr-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS UTILS
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .commitments-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--clr-bg-alt);
        z-index: 2000;
        box-shadow: var(--shadow-xl);
        padding: 5rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--clr-heading);
    }

    .nav-menu .close-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 10rem 0 4rem;
        text-align: center;
    }

    .hero-overlay {
        background: rgba(15, 23, 42, 0.85);
    }

    .hero-image {
        justify-content: center;
        margin-top: 3rem;
    }

    .commitments-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 8rem 0 3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .contact-info-row {
        gap: 1rem;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* Premium Section Dark */
.section-dark-premium {
    background: radial-gradient(circle at 50% -20%, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.section-dark-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}