/* style.css */
#snow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.4;
}

:root {
    --primary-color: #0b3a77;
    --secondary-color: #000539;
    --accent-color: #2196F3;
    --text-color: #373737;
    --text-light: #000000;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --gray: #e0e0e0;
    --overlay: rgba(13, 61, 115, 0.85);
    
    /* Font Sizes - Desktop */
    --fs-h1: 2.8rem;
    --fs-h2: 2.2rem;
    --fs-h3: 1.2rem;
    --fs-h4: 1rem;
    --fs-large: 1.2rem;
    --fs-base: 1rem;
    --fs-small: 0.85rem;
    --fs-logo: 1.6rem;
    
    /* Mobile Font Sizes */
    --fs-h1-mobile: 1.8rem;
    --fs-h2-mobile: 1.5rem;
    --fs-h3-mobile: 2rem;
    --fs-large-mobile: 0.95rem;
    --fs-base-mobile: 0.9rem;
    --fs-small-mobile: 0.8rem;
    --fs-logo-mobile: 1.3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}




.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    max-height: 60px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 70vh;
    background-image: url('assets/images/hero.jpg');    
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
    90deg,
    rgba(0, 86, 177, 0.9) 0%,
    rgba(0, 79, 164, 0.656) 70%,
    rgba(0, 123, 255, 0.2) 80%,
    rgba(0, 123, 255, 0) 100%
    );
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: var(--white);
    max-width: 1150px;
    padding: 1.5rem;
}

.hero-content h1 {
    font-size: var(--fs-h1);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--fs-large);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: left;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: whitesmoke;
    color: var(--text-color);
    border: 2px solid whitesmoke;
}

.btn-secondary:hover {
    background: whitesmoke;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-small {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.btn-small:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 5rem 0 6rem;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)), url('assets/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* pull the services section up so the top 15% of the cards overlap the hero */
    position: relative;

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 5;
    margin-top: -20vh;
}

.service-card {
    background: linear-gradient(to bottom right, #f7f9ff, #dee8ff); 
    padding: 2rem;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: "Segoe UI", Candara, Tahoma, Geneva, sans-serif;
    /* max-width removed */
}

.service-card p:last-of-type {
    flex-grow: 1;
}

/* badge wrapper placed at the absolute top-right of the card */
.service-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 156px;
    height: 156px;
    overflow: visible;
    z-index: 0;
    border-top-right-radius: 3px;
}

.service-badge img.service-top-right {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-top-right-radius: inherit;
    opacity: 0.9;
    filter: blur(0.2px);
    
}

/* soft fade on left and bottom of the badge using an overlay gradient */
.service-badge::after {
    /* removed opaque overlay; kept empty for possible future decorations */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top-right-radius: inherit;
    z-index: 0;
}

/* use a mask so the image fades smoothly toward left and bottom */
.service-badge img.service-top-right {
    -webkit-mask-image: radial-gradient(circle at 100% 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle at 100% 0%, black 30%, transparent 100%);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* place all card content above the decorative badge wrapper */
.service-card > *:not(.service-badge) {
    position: relative;
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: var(--fs-h3);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: var(--fs-base);
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}


/* Why Section */
.why-section {
    padding-top: 4rem 0;
    padding-bottom: 5rem;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)), url('assets/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text h2 {
    font-size: var(--fs-h2);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.why-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.placeholder-image {
    width: 100%;
    
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--fs-base);
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(0, 0); }
}

/* About Section */
.about-section {
    padding-top: 4rem 0;
    padding-bottom: 2rem;
    background:
        linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)),
        url("assets/images/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-section h2 {
    text-align: left;
    font-size: var(--fs-h2);
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* =========================
   GRID
========================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* =========================
   CARD
========================= */
.about-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    background: linear-gradient(
        135deg,
        #f7f9ff 0%,
        #edf3ff 100%
    );

    padding: 1.1rem 1.4rem;
    border-radius: 10px;

    text-align: left;
    min-height: 90px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================
   ICON
========================= */
.about-card img,
.about-card svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

/* =========================
   TEXT
========================= */
.about-card h3 {
    margin: 0;
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.2;
}

.about-card p {
    margin-top: 0.25rem;
    font-size: var(--fs-small);
    color: var(--text-light);
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(255,255,255,0.93), rgba(255,255,255,0.93)), url('assets/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.faq-section h2 {
    text-align: left;
    font-size: var(--fs-h2);
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.faq-section h2 span {
    text-align: left;
    font-size: var(--fs-h2);
    color: var(--secondary-color);
    font-weight: normal;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--secondary-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(30, 90, 168, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Inline SVG and text in FAQ question */
.faq-question > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.faq-question > span:first-child svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex: none;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Update all font size variables for tablet/mobile */
    :root {
        --fs-h1: 2rem;
        --fs-h2: 1.6rem;
        --fs-h3: 1rem;
        --fs-large: 0.95rem;
        --fs-base: 0.9rem;
        --fs-small: 0.8rem;
        --fs-logo: 1.3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1.5rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 0.75rem 0;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 2rem 0;
        margin-top: 70px;
    }

    .hero-buttons {
        gap: 0.75rem;
        max-width: 14rem;
        min-width: 14rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .services {
        padding: 3rem 0;
        /* reduce overlap on tablet */
        margin-top: -10vh;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        z-index: 2;
        margin-top: 0vh;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-top-right {
        width: 44px;
        height: 44px;
        top: 0;
        right: 0;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .why-section {
        padding: 3rem 0;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-text p {
        margin-bottom: 1.5rem;
    }

    .placeholder-image {
        height: 250px;
        font-size: 0.9rem;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card svg {
    width: 32px;
    height: 32px;
    margin-top: 0.45rem;
}

    .faq-section {
        padding: 3rem 0;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-item {
        margin-bottom: 0.8rem;
        border-radius: 6px;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-question > span:first-child svg {
        width: 16px;
        height: 16px;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }

    .footer-section h4 {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }

    .footer-section p {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-h1: 1.4rem;
        --fs-h2: 1.2rem;
        --fs-h3: 1rem;
        --fs-large: 0.9rem;
        --fs-base: 0.85rem;
        --fs-small: 0.75rem;
        --fs-logo: 1.0rem;
    }

    .container {
        padding: 0 15px;
    }

    .header {
        box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    }

    .nav {
        padding: 0.7rem 0;
    }

    .nav-menu {
        top: 65px;
        padding: 1rem 0;
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: auto;
    }

    .services {
        padding: 2rem 0;
        /* mobile: smaller overlap so content doesn't feel cramped */
        margin-top: -8vh;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-top-right {
        width: 36px;
        height: 36px;
        top: 0;
        right: 0;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.8rem;
    }

    .why-section {
        padding: 2rem 0;
    }

    .why-content {
        gap: 1.5rem;
    }

    .why-text p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .placeholder-image {
        height: 200px;
    }

    .about-section {
        padding: 2rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card {
        padding: 1rem;
    }

    .about-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.6rem;
    }

    .faq-section {
        padding: 2rem 0;
    }

    .faq-question {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .faq-question > span:first-child svg {
        width: 14px;
        height: 14px;
    }

    .faq-icon {
        font-size: 1.2rem;
    }

    .faq-answer p {
        padding: 0 0.8rem 0.8rem;
        font-size: 0.85rem;
    }

    .footer {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-content {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section h3 {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }

    .footer-section h4 {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }

    .footer-section p {
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
    }

    .footer-section ul li {
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }
}