/* 
   IVORY CARE - PREMIUM HEALTHCARE UI
   Color Palette: Soft Ivory, Warm Gold, Muted Grey
*/
:root {
    --primary-gold: #C5A059;
    --primary-gold-dark: #A68545;
    --primary-gold-light: #E8D5B5;
    --ivory-bg: #FDFBF7;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #636E72;
    --soft-grey: #F1F2F6;
    --accent-beige: #F5F1EA;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Prevent any horizontal overflow globally */
html, body {
    position: relative;
    overflow-x: clip;
}

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

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ivory-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.8rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.6rem; }

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 100px 0;
    position: relative;
}

section:nth-of-type(even) {
    background-color: var(--white);
}

section:nth-of-type(odd) {
    background-color: var(--ivory-bg);
}

section#cta,
section.inner-hero,
section#hero {
    background-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInUp 0.6s ease-out;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-gold);
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 75px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1002;
    margin-right: auto; /* Push everything else to the right */
}

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

.nav-container {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background-color: var(--ivory-bg) !important;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?auto=format&fit=crop&q=80&w=2000');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(253, 251, 247, 0.95) 40%, rgba(253, 251, 247, 0.3) 100%);
    z-index: 2;
}

/* Disable background-attachment:fixed on iOS (causes jittery rendering) */
@supports (-webkit-touch-callout: none) {
    #cta {
        background-attachment: scroll !important;
    }
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 650px;
}

.inner-hero {
    min-height: 280px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-gold) !important;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?auto=format&fit=crop&q=80&w=2000');
    background-position: center;
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.inner-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.inner-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--white);
    line-height: 1.2;
}

.inner-hero p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   RESPONSIVE STYLES (Mobile-first approach)
   ========================================= */

/* Hide mobile CTA on desktop by default */
.mobile-cta {
    display: none;
}

/* Responsive media queries are at the END of this file to avoid cascade-order issues */

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-gold-light);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
}

.about-text h3 {
    font-size: 2rem;
    margin: 35px 0 20px;
    color: var(--primary-gold);
}

/* Why Choose Us Cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    animation: fadeInUp 0.6s ease-out;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold-light);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-beige);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-gold);
    transition: var(--transition);
}

.why-card:hover .card-icon {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(5deg);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Detail Grid (services page) */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-detail-card .card-icon {
    margin: 0 0 22px 0;
}

.service-features {
    margin: 18px 0 0 20px;
    color: var(--text-muted);
}

.service-features li {
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    height: 450px;
    transition: var(--transition);
}

.service-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-card:hover .service-overlay {
    padding: 55px 35px;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 35px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
    transition: var(--transition);
}

.service-overlay h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.service-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    opacity: 0.8;
}

/* Approach Items */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

@media (min-width: 1100px) {
    .approach-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.checklist-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.checklist-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.checklist-item .icon-check {
    width: 28px;
    height: 28px;
    fill: var(--primary-gold);
    flex-shrink: 0;
}

.checklist-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* Tags */
.support-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.support-tag {
    background: var(--white);
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-subtle);
    border: 1px solid transparent;
    transition: var(--transition);
}

.support-tag:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* CTA Section */
#cta {
    background-image: linear-gradient(rgba(197, 160, 89, 0.92), rgba(197, 160, 89, 0.92)),
                      url('https://images.unsplash.com/photo-1516733725897-1aa73b87c8e8?auto=format&fit=crop&q=80&w=2000');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #cta {
        background-attachment: scroll;
    }
}

#cta h2 { 
    color: var(--white); 
    font-size: 3rem; 
    margin-bottom: 25px; 
}

#cta p { 
    color: rgba(255,255,255,0.9); 
    font-size: 1.3rem; 
    margin-bottom: 45px; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#cta .btn { 
    background: var(--white); 
    color: var(--primary-gold); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#cta .btn:hover {
    background: var(--ivory-bg);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Contact Section Enhancements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 70px;
}

.contact-info-card {
    background: var(--white);
    padding: 60px 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.info-item {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item .icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--accent-beige);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.info-item .icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.info-item h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.info-item p {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Form Styling */
.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--soft-grey);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--ivory-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Enhancements */
footer {
    background-color: #0F0F0F;
    color: #A0A0A0;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 55px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.footer-links ul li {
    list-style: none;
    margin-bottom: 15px;
}

.footer-links a {
    color: #A0A0A0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
}

/* SVG Icon Utility */
.svg-icon {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (consolidated)
   Placed at END of file so they always win
   cascade ties over base declarations above.
   ========================================= */

/* ===== TABLET & MOBILE (≤ 992px) ===== */
@media (max-width: 992px) {
    /* Typography scaling */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.4rem; }

    /* Header / Navigation */
    header {
        height: auto !important;
        padding: 12px 0;
        background: var(--white);
        border-bottom: 1px solid var(--soft-grey);
    }

    header.scrolled {
        height: auto;
        padding: 10px 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    }

    nav { flex-wrap: wrap; row-gap: 0; }

    .logo { order: 1; margin-right: auto; }
    .logo img { height: 42px; }

    .nav-container { display: none; }

    .nav-actions { order: 2; gap: 0; }
    .nav-actions .btn { display: none; }

    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        margin-left: 8px;
        border-radius: 8px;
        transition: background 0.25s ease;
    }

    .hamburger:hover,
    .hamburger:focus-visible { background: var(--soft-grey); }

    .hamburger span {
        width: 22px;
        height: 2px;
        margin: 3px 0;
        border-radius: 2px;
    }

    /* Mobile dropdown menu */
    .nav-links {
        order: 3;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        margin: 0;
        padding: 0;
        gap: 0;
        transition: max-height 0.35s ease-out, padding 0.35s ease-out, margin 0.35s ease-out;
    }

    .nav-links.active {
        max-height: 650px;
        padding: 8px 0 18px;
        margin-top: 12px;
        border-top: 1px solid var(--soft-grey);
    }

    .nav-links li { width: 100%; list-style: none; }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
        border-bottom: 1px solid var(--soft-grey);
        text-align: left;
    }

    .nav-links li:last-child a { border-bottom: none; }
    .nav-links a::after { display: none; }
    .nav-links a.active { color: var(--primary-gold); }

    /* Mobile CTA button */
    .nav-links .mobile-cta,
    a.mobile-cta {
        display: block;
        width: 100%;
        background: var(--primary-gold);
        color: var(--white) !important;
        text-align: center;
        padding: 14px 20px;
        border-radius: 10px;
        margin-top: 16px;
        font-weight: 600;
        text-decoration: none;
        border: none;
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
        transition: var(--transition);
    }

    .nav-links .mobile-cta:hover,
    a.mobile-cta:hover {
        background: var(--primary-gold-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    }

    /* Hero */
    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    #hero::before { opacity: 0.2; }
    #hero::after {
        background: linear-gradient(180deg, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.8) 100%);
    }

    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 2.4rem; margin-bottom: 16px; }
    .hero-content p { font-size: 1rem; margin-bottom: 26px; max-width: 100%; }

    /* Inner hero */
    .inner-hero {
        min-height: 0;
        padding: 110px 0 55px;
    }
    .inner-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
    .inner-hero p { font-size: 1.1rem; }

    /* Section spacing */
    section { padding: 65px 0; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1rem; }

    /* Grids → single column */
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-text h3 { font-size: 1.5rem; margin-top: 22px; }

    .contact-info-card,
    .contact-form-wrapper { padding: 35px 25px; }

    /* Why/services cards */
    .why-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .why-card { padding: 34px 26px; }

    .services-grid { gap: 20px; }
    .service-card { height: 320px; }
    .service-overlay { padding: 30px 25px; }
    .service-card:hover .service-overlay { padding: 35px 25px; }
    .service-overlay h3 { font-size: 1.35rem; }

    /* CTA */
    #cta { padding: 70px 0; background-attachment: scroll; }
    #cta h2 { font-size: 2rem; }
    #cta p { font-size: 1.05rem; margin-bottom: 30px; }

    /* Footer */
    footer { padding: 65px 0 28px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
        margin-bottom: 35px;
    }
    .footer-logo img { height: 45px; margin-bottom: 18px; }
    .footer-links h4 { margin-bottom: 20px; }
    .footer-bottom { padding-top: 28px; }

    /* Hero buttons */
    .hero-btns { flex-wrap: wrap; gap: 12px; }
    .hero-btns .btn-outline { margin-left: 0 !important; }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.25rem; }

    .logo img { height: 38px; }

    /* Hero buttons stack full-width */
    .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-btns .btn { width: 100%; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.98rem; margin-bottom: 22px; }

    .section-title h2 { font-size: 1.7rem; }
    .section-title { margin-bottom: 34px; }

    .inner-hero {
        padding: 100px 0 50px;
    }
    .inner-hero h1 { font-size: 2rem; margin-bottom: 10px; }
    .inner-hero p { font-size: 1rem; }

    /* All multi-column grids collapse to 1 */
    .footer-grid,
    .why-grid,
    .services-grid,
    .approach-grid,
    .services-detail-grid { grid-template-columns: 1fr !important; }

    .footer-grid { gap: 32px; text-align: left; }
    .why-grid,
    .services-grid { gap: 18px; }

    .why-card { padding: 30px 24px; }
    .service-card { height: 300px; }
    .service-overlay { padding: 26px 22px; }
    .checklist-item { padding: 24px 20px; gap: 14px; }

    section { padding: 55px 0; }
    #cta { padding: 60px 0; }
    #cta h2 { font-size: 1.7rem; }
    #cta p { font-size: 1rem; margin-bottom: 26px; }

    /* Typography inside cards */
    .card-icon { width: 58px; height: 58px; margin-bottom: 20px; }
    .about-image::before { width: 60px; height: 60px; top: -12px; left: -12px; }

    /* Contact info */
    .info-item { margin-bottom: 24px; gap: 14px; }
    .info-item .icon-wrapper { width: 42px; height: 42px; }
    .info-item p { font-size: 1rem; }
}

/* ===== SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    .container { padding: 0 1.1rem; }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.55rem; }

    .logo img { height: 34px; }
    .hamburger { width: 38px; height: 38px; }

    /* Hero */
    #hero { padding: 90px 0 50px; min-height: 80vh;}
    .hero-content h1 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 14px; }
    .hero-content p { font-size: 0.92rem; margin-bottom: 20px; }
    .hero-btns { gap: 10px; }
    .hero-btns .btn { padding: 13px 20px; font-size: 0.92rem; margin: 5px 0;}

    .inner-hero {
        padding: 110px 0 45px;
    }
    .inner-hero h1 { font-size: 1.75rem; margin-bottom: 10px; }
    .inner-hero p { font-size: 0.95rem; }

    .section-title h2 { font-size: 1.5rem; }
    .section-title { margin-bottom: 28px; }
    .section-title p { font-size: 0.95rem; }

    .btn { padding: 12px 20px; font-size: 0.9rem; }

    .why-card,
    .contact-info-card,
    .contact-form-wrapper,
    .checklist-item { padding: 26px 20px; }

    .service-card { height: 260px; }
    .service-overlay { padding: 22px 18px; }
    .service-card:hover .service-overlay { padding: 24px 18px; }
    .service-overlay h3 { font-size: 1.15rem; }

    .info-item { margin-bottom: 20px; }
    .about-image::before { display: none; }

    section { padding: 45px 0; }
    #cta { padding: 50px 0; }
    #cta h2 { font-size: 1.5rem; }
    #cta p { font-size: 0.95rem; margin-bottom: 22px; }

    /* Footer mobile polish */
    footer { padding: 50px 0 24px; }
    .footer-grid { gap: 28px; margin-bottom: 28px; }
    .footer-logo img { height: 40px; margin-bottom: 14px; }
    .footer-links h4 { margin-bottom: 16px; font-size: 1rem; }
    .footer-links ul li { margin-bottom: 10px; }
    .footer-bottom { padding-top: 22px; font-size: 0.82rem; line-height: 1.6; }
}
