/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #FF6B00;
    --color-secondary: #001B44;
    --color-background: #FFFFFF;
    --color-text: #0A0D14;
    --color-text-secondary: #474D57;
    --color-accent: #F0F4FF;
    --color-shade: #E1E5EB;
    --font-primary: 'Alliance No. 2', sans-serif;
    --font-heading: 'Madefor Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #116dff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 10px;
}

/* Header */
#site-header {
    position: sticky;
    top: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-shade);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
    width: auto;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1920px;
    margin: 0 auto;
    align-items: stretch;
    overflow: hidden;
}

.hero-content {
    padding: 6rem 4rem 6rem 5%;
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
    /* justify-content: center; */
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    align-self: flex-start;
    background: var(--color-text);
    color: var(--color-background);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-background);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.35s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.cta-button:hover::after {
    transform: scaleX(1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25);
    border-color: var(--color-primary);
}

.cta-button span,
.cta-button {
    position: relative;
    z-index: 1;
}

.hero-image {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    display: block;
}

/* Services Section */
.services-section {
    background: var(--color-background);
    padding: 6rem 5%;
    max-width: 1920px;
    margin: 0 auto;
}

.services-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
}

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

.service-card {
    border: 1px solid var(--color-shade);
    padding: 2rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    background: var(--color-shade);
    padding: 6rem 5%;
    text-align: center;
}

.section-header .subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    border: 1px solid var(--color-shade);
    background: var(--color-background);
    padding: 2rem;
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.process-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Consultation Section */
.consultation-section {
    padding: 6rem 5%;
    max-width: 1920px;
    margin: 0 auto;
}

.consultation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.consultation-card {
    text-align: left;
}

.consultation-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.consultation-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.consultation-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-background);
}

/* Support Section */
.support-section {
    background: var(--color-background);
    padding: 6rem 5%;
    max-width: 1920px;
    margin: 0 auto;
    text-align: center;
}

.support-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.support-card {
    border: 1px solid var(--color-shade);
    padding: 2rem;
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.support-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Contact Form */
.contact-section {
    background: var(--color-text);
    padding: 6rem 5%;
    color: var(--color-background);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-container > p {
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.contact-form {
    background: rgba(252, 252, 252, 0.05);
    padding: 2rem;
    text-align: left;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-shade);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-text);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    font-size: 1rem;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--color-text-secondary);
    transform: translateY(-2px);
}

/* Marquee Section */
.marquee-section {
    background: var(--color-shade);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-size: 1rem;
    font-weight: 400;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
#site-footer {
    background: var(--color-text);
    color: var(--color-background);
    padding: 4rem 5% 2rem;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 2rem;
}

.footer-tagline h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    max-width: 600px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.footer-bottom p {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        padding: 2rem 5% 3rem;
    }
    
    .hero-image {
        order: -1;
        min-height: unset;
        padding: 1.5rem 5%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image img {
        width: auto;
        max-width: 100%;
        max-height: 320px;
        height: auto;
        object-fit: contain;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .consultation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-background);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 2rem 2rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav a {
        font-size: 1.125rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero-content {
        padding: 1.5rem 5% 2.5rem;
    }

    .hero-image img {
        max-height: 260px;
    }
    
    .services-grid,
    .process-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
    }
    
    /* Overlay for mobile menu */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Animations — scroll-triggered via IntersectionObserver */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .animate-fade-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .animate-fade-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .animate-fade-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .animate-fade-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .animate-scale-in {
        opacity: 0;
        transform: scale(0.92);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .animate-scale-in.visible {
        opacity: 1;
        transform: scale(1);
    }

    .animate-fade-up {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .animate-fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hero entrance — plays on load, not scroll */
    .hero-content {
        opacity: 0;
        transform: translateY(30px);
        animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    }

    .hero-image {
        opacity: 0;
        transform: translateX(40px);
        animation: heroSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
    }

    /* Header reveal on scroll */
    #site-header {
        transition: box-shadow 0.35s ease, background 0.35s ease;
    }

    #site-header.scrolled {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    /* Stagger children with CSS custom property */
    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale-in,
    .animate-fade-up {
        transition-delay: var(--anim-delay, 0s);
    }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced-motion fallback: everything visible instantly */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale-in,
    .animate-fade-up,
    .hero-content,
    .hero-image {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ── Form validation & submission feedback ── */
.input-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #e53e3e;
    font-weight: 500;
}

.form-banner {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-banner--success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffee 100%);
    border: 1px solid #68d391;
    color: #276749;
}

.form-banner--error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    border: 1px solid #fc8181;
    color: #9b2c2c;
}

.form-banner--success strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.submission-summary {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1rem;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.55);
    border-radius: 7px;
}

.submission-summary dt {
    font-weight: 700;
    opacity: 0.75;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.1rem;
}

.submission-summary dd {
    margin: 0;
    word-break: break-word;
}

.banner-note {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Print Styles */
@media print {
    .hamburger-menu,
    .skip-to-content,
    .marquee-section {
        display: none;
    }
}
