/* ===================================
   Production-Ready Responsive CSS
   Mobile-First | Fluid Typography | Modern Layouts
   =================================== */

/* ===================================
   CSS Reset and Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --dark-grey: #1f2937;
    --medium-grey: #6b7280;
    --light-grey: #f3f4f6;
    --white: #ffffff;
    --accent-gold: #d4af37;

    /* Fluid Typography - Scales from 320px to 1440px */
    --fs-hero-title: clamp(2rem, 5vw + 1rem, 4rem);
    --fs-hero-subtitle: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    --fs-hero-tagline: clamp(1.125rem, 2.5vw + 0.5rem, 1.8rem);
    --fs-hero-secondary: clamp(0.875rem, 1.5vw + 0.5rem, 1.2rem);
    --fs-hero-desc: clamp(0.875rem, 1.5vw + 0.5rem, 1.125rem);

    --fs-section-title: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    --fs-section-subtitle: clamp(0.875rem, 1.5vw + 0.5rem, 1.125rem);
    --fs-card-title: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    --fs-body: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    --fs-small: clamp(0.75rem, 0.8vw + 0.5rem, 0.875rem);

    /* Fluid Spacing - Scales smoothly */
    --space-xs: clamp(0.5rem, 2vw, 1rem);
    --space-sm: clamp(1rem, 3vw, 1.5rem);
    --space-md: clamp(1.5rem, 4vw, 2.5rem);
    --space-lg: clamp(2rem, 5vw, 4rem);
    --space-xl: clamp(3rem, 8vw, 6rem);
    --space-2xl: clamp(4rem, 10vw, 8rem);

    /* Container */
    --container-max: 75rem;
    /* 1200px */
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.75rem;
    --radius-full: 50rem;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    --shadow-md: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* 16px base */
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--fs-body);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ===================================
   Navigation Bar - Mobile First
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-xs);
}

.nav-brand h2 {
    color: var(--primary-blue);
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 700;
}

.nav-tagline {
    color: var(--medium-grey);
    font-size: var(--fs-small);
    margin-top: -0.25rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    position: fixed;
    left: -100%;
    top: 4.375rem;
    width: 100%;
    background: var(--white);
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-md);
    padding-block: var(--space-sm);
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    padding-block: var(--space-xs);
}

.nav-link {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-body);
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.3125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--secondary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.3125rem;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 1.5625rem;
    height: 0.1875rem;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

/* Desktop Navigation */
@media (min-width: 48rem) {

    /* 768px */
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        box-shadow: none;
        padding-block: 0;
        gap: clamp(1.25rem, 3vw, 2rem);
    }

    .nav-menu li {
        padding-block: 0;
    }

    .nav-toggle {
        display: none;
    }
}

/* ===================================
   Hero Section - Mobile First
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/accountant.jpeg') center center / cover no-repeat;
    overflow: hidden;
    padding-block: var(--space-2xl);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 15s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.25rem);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 56.25rem;
    /* 900px */
    padding-inline: var(--space-sm);
}

.hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 700;
    margin-bottom: 0.625rem;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--fs-hero-subtitle);
    font-weight: 300;
    margin-bottom: var(--space-sm);
    opacity: 0.95;
}

.hero-tagline {
    font-size: var(--fs-hero-tagline);
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--accent-gold);
}

.hero-secondary-tagline {
    font-size: var(--fs-hero-secondary);
    font-weight: 400;
    margin-bottom: var(--space-sm);
    font-style: italic;
    opacity: 0.9;
}

.hero-description {
    font-size: var(--fs-hero-desc);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-body);
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    border: none;
    min-height: 2.75rem;
    /* 44px - touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 0.125rem solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-0.1875rem);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-0.625rem);
    }

    60% {
        transform: translateX(-50%) translateY(-0.3125rem);
    }
}

/* Fade-in Animations */
.fade-in,
.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3,
.fade-in-delay-4,
.fade-in-delay-5 {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
    animation-fill-mode: backwards;
}

.fade-in-delay-4 {
    animation-delay: 0.8s;
    animation-fill-mode: backwards;
}

.fade-in-delay-5 {
    animation-delay: 1s;
    animation-fill-mode: backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Section Styles - Mobile First
   =================================== */
section {
    padding-block: var(--space-2xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: var(--fs-section-title);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.title-underline {
    width: clamp(3rem, 10vw, 5rem);
    height: 0.25rem;
    background: var(--accent-gold);
    margin-inline: auto;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--fs-section-subtitle);
    color: var(--medium-grey);
    max-width: 37.5rem;
    /* 600px */
    margin-inline: auto;
}

/* ===================================
   About Section - FIXED: Text Overflow Issues
   =================================== */
.about {
    background: var(--white);
}

.about-content {
    max-width: 56.25rem;
    /* 900px */
    margin-inline: auto;
    margin-bottom: var(--space-lg);
}

.about-text {
    font-size: var(--fs-section-subtitle);
    color: var(--dark-grey);
    margin-bottom: var(--space-sm);
    text-align: center;
    line-height: 1.8;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.snapshot-card {
    background: var(--light-grey);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: left;
    align-items: flex-start;  /* Add this */
    transition: var(--transition-smooth);
    border: 0.125rem solid transparent;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.snapshot-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-blue);
}

.snapshot-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-blue);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.snapshot-value {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary-blue);
    font-weight: 700;
        text-align: left;  /* Add or change this property */
    margin-bottom: 0.3125rem;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-width: 100%;
     margin-left: 0;  /* Add this */
    margin-right: auto;  /* Add this */
    display: block;
    text-align: center;
    width: 100%;
}

.snapshot-value {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.3125rem;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-width: 100%;
    display: block;
    text-align: center;
    width: 100%;
}

/* Additional fix for very small screens */
@media (max-width: 30rem) {
    .snapshot-value {
        font-size: clamp(0.875rem, 4vw, 1.125rem);
    }
}
    
    .snapshot-card {
        padding: var(--space-sm);
    }
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--light-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-md);
}

.service-card {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--bg-image, var(--white));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border-top: 0.25rem solid var(--secondary-blue);
    position: relative;
    overflow: hidden;
    color: var(--white);
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--bg-image, var(--white));
    background-size: cover;
    background-position: center;
}

.service-statutory { --bg-image: url('../img/Statutory audit.jpeg'); }
.service-taxation { --bg-image: url('../img/Taxation service.jpeg'); }
.service-advisory { --bg-image: url('../img/Advisory consulting.jpeg'); }
.service-certification { --bg-image: url('../img/Certification services.jpeg'); }
.service-tp { --bg-image: url('../img/Transfer pricing audit.jpeg'); }

.service-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: var(--fs-card-title);
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
}

.service-list {
    list-style: none;
    position: relative;
    z-index: 2;
}

.service-list li {
    padding-block: 0.5rem;
    color: var(--light-grey);
    position: relative;
    padding-left: 1.5625rem;
    font-size: var(--fs-body);
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ===================================
   Industries Section
   =================================== */
.industries {
    background: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-sm);
}

.industry-card {
    background: var(--light-grey);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 0.125rem solid transparent;
    word-break: break-word;
    overflow-wrap: break-word;
}

.industry-card:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.875rem rgba(59, 130, 246, 0.3);
}

.industry-card i {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-blue);
    margin-bottom: var(--space-sm);
    transition: var(--transition-smooth);
}

.industry-card:hover i {
    color: var(--white);
}

.industry-card h3 {
    font-size: var(--fs-body);
    font-weight: 600;
}

/* ===================================
   Team Section — Horizontal Cards
   =================================== */
.team {
    background: var(--light-grey);
}

/* Single column, full width — 1 card per row on ALL breakpoints */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 56rem;
    margin-inline: auto;
}

/* Horizontal card — icon left, content right */
.team-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-left: 0.25rem solid var(--secondary-blue);
    word-break: break-word;
    overflow-wrap: break-word;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
    border-left-color: var(--accent-gold);
}

/* Avatar circle — fixed size, centred icon */
.team-avatar {
    flex-shrink: 0;
    width: clamp(4.5rem, 10vw, 6rem);
    height: clamp(4.5rem, 10vw, 6rem);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar i {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--white);
}

/* Content area — takes remaining space */
.team-info {
    flex: 1;
    min-width: 0;
    /* Critical for flex text overflow handling */
}

.team-name {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.2rem);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.team-role {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: var(--fs-body);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.team-description {
    color: var(--medium-grey);
    line-height: 1.7;
    font-size: var(--fs-body);
    margin-bottom: 0.5rem;
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.team-description:last-child {
    margin-bottom: 0;
}

/* Mobile: stack avatar above content if viewport is very narrow */
@media (max-width: 30rem) {
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-avatar {
        width: 5rem;
        height: 5rem;
    }
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
    background: var(--primary-blue);
    color: var(--white);
}

.why-choose .section-title {
    color: var(--white);
}

.why-choose .title-underline {
    background: var(--accent-gold);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-md);
}

.why-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    word-break: break-word;
    overflow-wrap: break-word;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(0.625rem);
}

.why-item i {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--accent-gold);
    flex-shrink: 0;
}

.why-item p {
    font-size: var(--fs-body);
    margin: 0;
}

/* ===================================
   Approach Section
   =================================== */
.approach {
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: var(--space-md);
}

.approach-card {
    background: var(--light-grey);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 0.125rem solid transparent;
    word-break: break-word;
    overflow-wrap: break-word;
}

.approach-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-md);
}

.approach-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-blue);
    margin-bottom: var(--space-sm);
}

.approach-card h3 {
    font-size: var(--fs-card-title);
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.approach-card p {
    color: var(--medium-grey);
    line-height: 1.6;
    font-size: var(--fs-body);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--light-grey);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.contact-info h3 {
    color: var(--primary-blue);
    font-size: var(--fs-card-title);
    margin-bottom: var(--space-md);
}

.contact-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-item i {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--secondary-blue);
    margin-top: 0.3125rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-blue);
    font-size: var(--fs-body);
    margin-bottom: 0.3125rem;
}

.contact-item p {
    color: var(--medium-grey);
    margin: 0;
    font-size: var(--fs-body);
}

.contact-item a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.social-icon {
    width: 3.125rem;
    height: 3.125rem;
    background: var(--secondary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-0.3125rem);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form .form-group {
    margin-bottom: var(--space-sm);
}

.contact-form label {
    display: block;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: var(--fs-body);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem);
    border: 0.125rem solid var(--light-grey);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-body);
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.1875rem rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding-block: var(--space-xl) var(--space-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.625rem), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    font-size: var(--fs-card-title);
    margin-bottom: var(--space-sm);
}

.footer-section h4 {
    font-size: var(--fs-body);
    margin-bottom: var(--space-sm);
    color: var(--accent-gold);
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
    margin-bottom: 0.625rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: var(--fs-body);
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: var(--fs-body);
    word-break: break-word;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 0.3125rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    word-break: break-word;
}

/* ===================================
   Scroll Animations
   =================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Utility Classes
   =================================== */
.visually-hidden {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   Responsive Enhancements
   =================================== */

/* Small tablets and larger */
@media (min-width: 36rem) {

    /* 576px */
    .hero-buttons {
        gap: var(--space-md);
    }

    .btn {
        min-width: 10rem;
    }
}

/* Tablets and larger */
@media (min-width: 48rem) {

    /* 768px */
    section {
        padding-block: var(--space-2xl);
    }

    .snapshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    }
}

/* Desktop and larger */
@media (min-width: 64rem) {

    /* 1024px */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }

    /* NOTE: .team-grid intentionally NOT overridden here.
       It stays as flex-direction: column so horizontal cards
       always display one per row on all screen sizes. */
}

/* Large desktop */
@media (min-width: 90rem) {

    /* 1440px */
    :root {
        --container-max: 80rem;
        /* 1280px */
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0a1f5e;
        --secondary-blue: #1e5fd9;
    }
}

/* Print styles */
@media print {

    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .contact-form,
    .nav-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}