/* =========================================================================
   CSS Variables for Design System
   ========================================================================= */
:root {
    /* Colors */
    --primary-blue: #0A3264;
    /* Deep dark blue (Header Top) */
    --secondary-blue: #0D4E8B;
    /* Medium blue (Header Bottom) */
    --ribbon-blue: #1A549C;
    /* Ribbon Blue */
    --hero-bg: #EAF3FA;
    /* Light blue hero background */
    --text-dark: #333333;
    /* Dark text */
    --text-light: #FFFFFF;
    /* Light text */
    --icon-gray: #6C757D;
    --green-check: #2E7D32;
    /* Green checkmarks */

    /* Buttons & Highlights */
    --btn-grad-start: #FFCD3A;
    --btn-grad-end: #F5A623;
    --btn-text: #111111;

    /* Fonts */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --app-max-width: 1000px;
    --section-padding: 2.5rem 1rem;
}

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

body {
    font-family: var(--font-family);
    background-color: #F8FBFC;
    /* Very light subtle background around the main column if on wide screens */
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Reusable Typography & Elements/Utils */
h1,
h2,
h3,
h4 {
    color: var(--primary-blue);
}

.text-green {
    color: var(--green-check);
}

.text-yellow {
    color: #F5A623;
}

.text-blue {
    color: var(--secondary-blue);
}

.btn-primary {
    background: linear-gradient(180deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
    color: var(--btn-text);
    border: 1px solid #C48E00;
    border-radius: 6px;
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), inset 0 2px 0px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), inset 0 2px 0px rgba(255, 255, 255, 0.4);
}

.btn-primary.full-width {
    width: 100%;
}

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

/* =========================================================================
   Layout Structure matched to Image
   ========================================================================= */
body {
    /* Mimic the physical flyer limits if viewed on desktop */
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 1. Header Banner */
.header {
    text-align: center;
}

.header-top {
    background-color: var(--secondary-blue);
    /* #0D4E8B */
    padding: 0.8rem 1rem;
}

.header-top h1 {
    color: var(--text-light);
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: 1px;
}

.header-subtitle {
    background-color: var(--primary-blue);
    /* #0A3264 */
    padding: 1rem 1rem;
}

.header-subtitle h2 {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.header-subtitle p {
    color: #DDEEFC;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
}

.header-contact {
    background-color: #052145;
    /* Darker navy */
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #E2E8F0;
}

.contact-divider {
    width: 1px;
    height: 15px;
    background-color: #4A6B8C;
}

.header-contact i {
    margin-right: 5px;
    color: #A0C4E3;
}

/* 2. Hero Section */
.hero-section {
    background: #E8F2FB;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-content {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    /* Give it some height */
}

.hero-text-area {
    flex: 1;
    padding: 3rem 1.5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-subheading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
}

.hero-ribbon {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.6rem 1.5rem;
    margin-left: -2.5rem;
    /* pull fully to left */
    margin-bottom: 1.5rem;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-ribbon h2 {
    font-size: 1.35rem;
    color: white;
    font-weight: 700;
}

.hero-description {
    font-size: 0.95rem;
    color: #333;
}

.hero-description p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.hero-description strong {
    font-weight: 800;
    color: var(--text-dark);
}

.highlight-text-box {
    background-color: #DCECF6;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--secondary-blue);
    border-radius: 0 4px 4px 0;
}

.highlight-text-box p {
    margin: 0;
    font-weight: 500;
    color: var(--primary-blue);
}

.hero-image-area {
    flex: 1;
    position: relative;
}

.hero-image-area .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0%, 100% 100%, 0% 100%);
}

.hero-bottom-bar {
    background-color: var(--primary-blue);
    text-align: center;
    padding: 1.2rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-bottom-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-bottom-bar .btn-primary {
    margin-top: -2.3rem;
    /* Pull button up to overlap */
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    padding: 0.7rem 2.2rem;
}

/* 3. Dividers */
.section-divider {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: #D3E0EC;
}

.divider-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
}

.divider-content i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.divider-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.small-divider .divider-content h2 {
    font-size: 1.2rem;
}

/* 4. About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.about-text {
    flex: 1;
    font-size: 1rem;
    color: #444;
}

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

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 5. Services Section */
.services-section {
    padding-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    border-radius: 8px;
    padding: 2rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.tax-card {
    background: linear-gradient(180deg, #E6F0FA 0%, #E6F0FA 45%, #FFFFFF 45%, #FFFFFF 100%);
}

.tax-card::after {
    background-color: #64B5F6;
}

.gst-card {
    background: linear-gradient(180deg, #E0F2F1 0%, #E0F2F1 45%, #FFFFFF 45%, #FFFFFF 100%);
}

.gst-card::after {
    background-color: #4DB6AC;
}

.biz-card {
    background: linear-gradient(180deg, #FFF3E0 0%, #FFF3E0 45%, #FFFFFF 45%, #FFFFFF 100%);
}

.biz-card::after {
    background-color: #FFB74D;
}

.legal-card {
    background: linear-gradient(180deg, #F1F8E9 0%, #F1F8E9 45%, #FFFFFF 45%, #FFFFFF 100%);
}

.legal-card::after {
    background-color: #81C784;
}

.custom-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tax-card .custom-icon {
    color: #1565C0;
}

.gst-card .custom-icon {
    color: #00695C;
}

.biz-card .custom-icon {
    color: #E65100;
}

.legal-card .custom-icon {
    color: #2E7D32;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

.service-card ul li i {
    margin-top: 3px;
    font-size: 0.9rem;
}

/* 6. Why Choose Us Section */
.why-choose-section {
    position: relative;
    background-image: url('./public/image_map.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 3rem;
    min-height: 480px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #E1EDF2;
    overflow: hidden;
}

/* Semi-transparent gradient so text on the left remains perfectly readable */
.why-choose-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(248, 251, 252, 0.92) 0%, rgba(248, 251, 252, 0.8) 45%, rgba(248, 251, 252, 0.15) 100%);
    z-index: 1;
}

.why-choose-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    padding: 3.5rem 2.5rem;
    width: 100%;
    height: 100%;
}

.why-list {
    flex: 1.2;
    padding-right: 2rem;
}

.why-list ul {
    list-style: none;
}

.why-list ul li {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #333;
}

.why-list ul li i {
    font-size: 1.3rem;
}

.why-map-text {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    margin-top: 12rem;
    /* Give vertical space so the map itself is visible above it */
}

.why-map-text p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* 7. Client Promise & Contact */
.promise-contact-section {
    display: flex;
    gap: 3rem;
    padding-bottom: 3rem;
    align-items: stretch;
}

.promise-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promise-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.promise-text strong {
    color: var(--primary-blue);
    font-weight: 800;
}

.promise-img {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.promise-img img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-area {
    flex: 1;
    background-color: #FAFCFD;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #E5E9EB;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.contact-area .small-divider {
    padding: 0;
    margin-bottom: 2rem;
}

.contact-area .small-divider .divider-line {
    background-color: #D3E0EC;
}

.contact-info {
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.info-icon {
    font-size: 1.4rem;
    background: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.info-details p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.info-divider {
    height: 1px;
    background-color: #EAEEF1;
    margin: 1.2rem 0;
}

/* 8. Footer */
.footer {
    background-color: var(--primary-blue);
    color: #E2E8F0;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-image-area .hero-img {
        clip-path: none;
        height: 350px;
    }

    .hero-ribbon {
        margin-left: -1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-content,
    .promise-contact-section {
        flex-direction: column;
    }

    .why-choose-overlay {
        background: rgba(248, 251, 252, 0.85);
        /* Solid overlay for mobile readability */
    }

    .why-map-text {
        margin-top: 2rem;
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .header-top h1 {
        font-size: 1.8rem;
    }

    .header-subtitle h2 {
        font-size: 1rem;
    }

    .header-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-divider {
        display: none;
    }

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

    .about-section {
        flex-direction: column;
    }
}