:root {
    --primary: hsl(142, 70%, 25%);
    --primary-light: hsl(142, 60%, 45%);
    --primary-dark: hsl(142, 70%, 15%);
    --accent: hsl(38, 92%, 50%);
    --text: hsl(210, 20%, 15%);
    --text-muted: hsl(210, 10%, 45%);
    --bg: hsl(210, 40%, 98%);
    --white: #ffffff;
    --dark: hsl(210, 30%, 10%);
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-primary,
.display-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Typography Helpers */
.display-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.display-md {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
}

.display-sm {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .text-gradient {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(21, 128, 61, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero-specific outline button (white on dark video) */
.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

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

.btn-block {
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-primary {
    font-size: 1.5rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-secondary {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-toggle span {
    transition: all 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #111;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-actions.center {
    justify-content: center;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.social-proof.center {
    justify-content: center;
}

.avatars {
    display: flex;
    margin-left: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

/* Form Card */
.glass {
    background: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-form-card {
    position: relative;
}

.form-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    transform: rotate(3deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

label {
    font-size: 0.875rem;
    font-weight: 700;
}

input,
select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-body {
    padding: 32px;
}

.service-body h3 {
    margin-bottom: 12px;
}

/* Portfolio */
.bg-light {
    background: #f1f5f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-overlay span {
    color: white;
    font-weight: 800;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 100px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-cta {
    margin-top: 48px;
    text-align: center;
}

.fb-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1877F2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.fb-link svg {
    width: 24px;
}

/* Trust/Dark Section */
.dark {
    background: var(--dark);
    color: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.trust-perks {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.perk {
    display: flex;
    gap: 20px;
}

.perk-icon {
    width: 48px;
    height: 48px;
    background: rgba(21, 128, 61, 0.2);
    color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.perk-text h4 {
    margin-bottom: 4px;
}

.perk-text p {
    color: #94a3b8;
}

.trust-visual {
    position: relative;
}

.visual-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    position: relative;
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.quote-overlay p {
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 500;
}

.quote-author {
    display: block;
    margin-top: 10px;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Offer */
.offer-card {
    background: var(--primary);
    color: var(--white);
    padding: 80px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer-card h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}

.offer-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.offer-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CTA */
.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: #020617;
    color: #64748b;
    border-top: 1px solid #1e293b;
}

.footer-logo {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Mobile FAB */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.btn-fab {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.btn-fab:hover {
    transform: scale(1.1);
}

.btn-fab svg {
    width: 24px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    min-width: 50vw;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Clickable images */
.gallery-item img,
.service-image img,
.visual-card img {
    cursor: zoom-in;
}

.gallery-item {
    cursor: zoom-in;
}

.gallery-overlay {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }

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

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-primary {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .logo-secondary {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .nav-cta .btn {
        padding: 6px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 160px;
        /* Ample space for sticky header */
        align-items: flex-start;
        /* Start from top, don't center vertically */
        min-height: auto;
        padding-bottom: 80px;
    }

    .display-title {
        font-size: 2.25rem;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-description {
        font-size: 1.1rem;
    }

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

    .offer-card {
        padding: 40px 20px;
    }

    .offer-card h2 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Form Fixes for Mobile (no 579px overflow) */
    .quote-form {
        width: 100%;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    input,
    select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .glass {
        padding: 24px 16px;
        margin: 0;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Narrow screens (Mobile phones like S25 Ultra, iPhone, etc) */
@media (max-width: 480px) {
    .nav-container {
        padding: 10px 8px;
        gap: 4px;
    }

    .logo-primary {
        font-size: 1rem;
    }

    .nav-cta {
        margin-right: 4px;
    }

    .nav-cta .btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}