@charset "UTF-8";

:root {
    --banner-height: 0px;
    --header-height: 90px; /* default, updated by JS */
    --nav-height: 60px; /* default, updated by JS for desktop; 0 on mobile */
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 0; /* spacing handled by main margin */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.rose-icon {
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,.2));
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
    flex-shrink: 0;
}

h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 1.05rem;
    opacity: .95;
}

/* Desktop Navigation - Default */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height); /* sits directly under measured header */
    z-index: 999;
    display: block;
}

    nav .mobile-nav-header {
        display: none;
    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    nav li {
        display: inline-block;
    }

    nav a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.05rem;
        transition: color .3s ease;
        display: inline-block;
    }

        nav a:hover {
            color: #764ba2;
        }

/* Hamburger Button */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none !important;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
    outline: none;
}

    .hamburger-menu span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        transition: all .3s ease-in-out;
        border-radius: 3px;
    }
    /* hide hamburger when menu is open (separate X is shown) */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translateY(15px);
    }

    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-15px);
    }

/* Mobile close (X) */
.nav-close {
    display: none;
    position: fixed, top: 20px;
    right: 20px;
    z-index: 10003;
    background: transparent;
    border: none !important;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    outline: none;
}

    .nav-close::before, .nav-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 32px;
        height: 3px;
        background-color: white;
        border-radius: 3px;
    }

    .nav-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .nav-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .nav-close:hover::before, .nav-close:hover::after {
        background-color: #667eea;
    }

    /* Mobile Navigation (<= 992px) */
@media (max-width: 992px) {
    :root {
        --header-height: 55px;
        --nav-height: 0;
    }
    /* body { padding-top: var(--header-height); } */ /* removed to eliminate blank space */
    /* main { margin-top: 0 !important; } */ /* removed to use global margin */
    main {
        margin-top: 0 !important;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero {
        padding: 1.0rem 1.0rem;
    }

    header {
        padding: 0.4rem 0;
        z-index: 10000;
    }

        header .container {
            padding: 0 1rem;
            gap: 1rem;
        }

    .logo {
        max-width: calc(100% - 60px);
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .tagline {
        font-size: 0.85rem;
        opacity: .95;
    }

    .hamburger-menu {
        display: block;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(28,32,41,.98);
        backdrop-filter: blur(8px);
        transform: translateX(-100%);
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        z-index: 9999;
        transition: transform .3s ease-in-out;
        padding: 24px 16px 16px; /* add top padding */
    }

        nav.nav-open {
            display: flex;
            transform: translateX(0);
        }

            nav.nav-open ~ .nav-close {
                display: block;
            }

        /* FIX: Make header flow normally and add spacing below it */
        nav .mobile-nav-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .5rem;
            position: static;
            top: auto;
            color: white;
            margin-bottom: 2rem; /* increased from 1.75rem */
        }

            nav .mobile-nav-header .rose-icon {
                font-size: 3.0rem;
                filter: none;
            }

            nav .mobile-nav-header h2 {
                font-size: 1.4rem;
                font-weight: 600;
            }

        nav.nav-open .mobile-nav-header {
            animation: fadeInFromCenter 0.6s ease-out forwards;
        }

        /* FIX: Remove extra top padding so Home is not hidden under title */
        nav ul {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
            margin: 0;
            padding: 0;
            width: 100%;
            margin-top: 0; /* ensure no top margin */
        }

        nav li {
            display: block;
        }

        nav a {
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
        }

            nav a:hover {
                color: #667eea;
            }

    /* Staggered animations for nav items */
    /* Home and About fade in from left */
    nav.nav-open li:nth-child(1),
    nav.nav-open li:nth-child(3) {
        animation: fadeInFromLeft 0.6s ease-out forwards;
    }

    nav.nav-open li:nth-child(1) {
        animation-delay: 0.35s;
    }

    nav.nav-open li:nth-child(3) {
        animation-delay: 0.5s;
    }

    /* Services and Contact fade in from right */
    nav.nav-open li:nth-child(2),
    nav.nav-open li:nth-child(4) {
        animation: fadeInFromRight 0.6s ease-out forwards;
    }

    nav.nav-open li:nth-child(2) {
        animation-delay: 0.35s;
    }

    nav.nav-open li:nth-child(4) {
        animation-delay: 0.5s;
    }

    nav li {
        opacity: 0;
    }

    nav.nav-open li a {
        animation: colorFadeIn 0.6s ease-out forwards;
    }

    nav.nav-open li:nth-child(1) a,
    nav.nav-open li:nth-child(3) a {
        animation-delay: 0.35s;
    }

    nav.nav-open li:nth-child(2) a,
    nav.nav-open li:nth-child(4) a {
        animation-delay: 0.35s;
    }
}

/* Main */
main {
    background: white;
    margin: calc(var(--header-height) + 10px) auto 1rem !important;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    overflow: hidden;
}

/* Sections */
.hero {
    background: linear-gradient(135deg, rgba(102,126,234,.1) 0%, rgba(118,75,162,.1) 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-bottom: 3px solid #667eea;
}

    .hero h2 {
        font-size: 2.1rem;
        color: #667eea;
        margin: 0;
    }

    .hero p {
        font-size: 1.05rem;
        color: #555;
        max-width: 800px;
        margin: 0 auto;
    }
/* Adjust hero section on mobile when hamburger is present */
@media (max-width: 992px) {
    .hero {
        margin-top: -50px;
    }
}

/* Services */
.services {
    padding: 2.5rem 1.5rem;
}

    .services h2 {
        text-align: center;
        font-size: 1.8rem;
        color: #333;
        margin-bottom: 1.75rem;
        position: relative;
    }

        .services h2::after {
            content: "\01F339";
            display: block;
            font-size: 1.2rem;
            margin-top: 0.25rem;
        }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: linear-gradient(135deg,#f5f7fa 0%,#e9ecef 100%);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(102,126,234,.2);
        border-left-color: #764ba2;
    }

    .service-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .service-card h3 {
        color: #667eea;
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
        transition: color .3s ease;
    }

    .service-card:hover h3 {
        color: #764ba2;
    }

    .service-card p {
        color: #555;
        line-height: 1.7;
    }

.service-icon {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

.btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.3);
    }

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

    footer p {
        opacity: .9;
    }

    footer .footer-links {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    footer .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        margin: 0 1rem;
        opacity: .9;
        transition: opacity .3s ease;
        display: inline-block;
    }

    footer .footer-links a:hover {
        opacity: 1;
        text-decoration: underline;
    }

/* Floating Rose */
.rose-decoration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: .7;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    z-index: 999;
    transition: opacity .3s ease, transform .3s ease;
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
}

    .rose-decoration:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .rose-decoration .arrow-up {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 14px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: translate(-50%, -75%) rotate(-135deg);
        font-size: 0;
        line-height: 0;
        background: transparent;
    }

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-18px)
    }
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromCenter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes colorFadeIn {
    from {
        color: rgba(28,32,41,.98);
    }
    to {
        color: white;
    }
}

/* Utility */
.page-content {
    padding: 1.5rem;
}

.lead {
    font-size: 1.1rem;
    color: #555;
}

.feature-list {
    margin: 1rem 0 0 1.5rem;
}

    .feature-list li {
        margin-bottom: 0.5rem;
    }
