/* 
 * Advanta Building Services Ltd - Stylesheet
 * Premium, Architectural, Clean Corporate Design
 */

:root {
    /* Color Palette */
    --color-white: #ffffff;
    --color-light-grey: #f4f5f7;
    --color-grey: #e2e8f0;
    --color-dark-grey: #64748b;
    --color-slate: #334155;

    /* Brand Colors */
    --color-london-blue: #0f172a;
    /* Deep architectural navy/slate */
    --color-london-blue-light: #1e293b;
    --color-steel-teal: #1a535c;
    /* Accent */
    --color-steel-teal-light: #2c7a86;

    /* UI Colors */
    --color-cta-navy: #112a46;
    --color-cta-navy-hover: #1e456e;

    /* Glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(15, 23, 42, 0.4);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-slate);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.icon-sm {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ================= Typography Utilities ================= */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-steel-teal);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background-color: var(--color-cta-navy);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(17, 42, 70, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-cta-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 42, 70, 0.35);
}

.btn-outline-glass {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-outline-glass:hover {
    background-color: var(--color-white);
    color: var(--color-london-blue);
}

.btn-block {
    width: 100%;
}

/* ================= Header (Glassmorphism) ================= */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: transparent;
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 1px;
}

.glass-header.scrolled .logo a {
    color: var(--color-london-blue);
}

.logo span {
    color: var(--color-steel-teal);
    font-weight: 800;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.desktop-nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.glass-header.scrolled .desktop-nav a {
    color: var(--color-london-blue);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-steel-teal);
    transition: var(--transition-fast);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.contact-number {
    display: inline-flex;
    align-items: center;
    font-weight: 600 !important;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--color-white);
}

.glass-header.scrolled .mobile-menu-btn {
    color: var(--color-london-blue);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    visibility: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-london-blue);
    font-family: var(--font-heading);
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    /* Slight scale for potential parallax/animation */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ================= Sections Base ================= */
.light-section {
    background-color: var(--color-light-grey);
    padding: var(--space-xxl) 0;
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-steel-teal);
    margin: 0 auto;
}

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

.service-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-grey);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-steel-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(26, 83, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-steel-teal);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
    background: var(--color-steel-teal);
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-dark-grey);
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-london-blue);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link svg {
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.service-link:hover {
    color: var(--color-steel-teal);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ================= About Section ================= */
.about {
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.glass-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--color-light-grey);
    z-index: 1;
    border-radius: 4px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-light);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-steel-teal);
    line-height: 1;
}

.experience-badge .txt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-london-blue);
    line-height: 1.2;
}

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

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-dark-grey);
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-grey);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-london-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-dark-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ================= Quote / Lead Capture Section ================= */
.quote-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--color-london-blue) 0%, var(--color-london-blue-light) 100%);
    position: relative;
}

.quote-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.quote-header {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 3rem;
}

.quote-header h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.quote-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-steel-teal);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
    background: var(--color-london-blue);
    color: var(--color-white);
}

/* ================= Footer ================= */
.site-footer {
    background-color: #080d17;
    color: var(--color-white);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand h2 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand h2 span {
    color: var(--color-steel-teal);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group a,
.link-group li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--color-steel-teal);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ================= Animations (Reveal) ================= */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .stats-row {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxl: 5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .quote-wrapper {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

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