/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Roboto:wght@400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ===== Global Styles - The Hair Hub Luxury Dark Theme ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-accent: #C52991;     /* Hot Pink */
    --primary-color:  #C52991;     /* Alias — fixes broken inline vars on about/contact/branches */
    --secondary-accent: #F2295B;   /* Pink-Red */
    --deep-magenta: #531848;       /* Deep Magenta */
    --secondary-color: #531848;    /* Alias for hero gradient */
    --card-grad-1: #0D1E25;        /* Dark Teal */
    --card-grad-2: #392131;        /* Dark Maroon */
    --bg-dark: #000000;            /* Pure Black */
    --bg-gray: #0D1E25;            /* Dark card bg — fixes broken inline vars */
    --accent: rgba(197, 41, 145, 0.15); /* Subtle border accent */
    --text-primary: #FCFCFC;       /* Near-white */
    --text-secondary: #EEEEEE;     /* Near-white */
    --text-light: #EEEEEE;         /* Alias — fixes broken inline vars */
    --text-muted: #999999;         /* Muted Gray */
    --white: #ffffff;
    --gold: #D4AF37;               /* Gold accent */
    --emerald: #2ECC8A;            /* Emerald green */
    --transition: all 0.3s ease;
    /* ── Navbar height tokens — single source of truth ── */
    --navbar-h: 96px;              /* Desktop navbar height */
    --navbar-h-mobile: 64px;       /* Mobile navbar height */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    font-weight: 400;
    font-size: 15px;
    /* Use clip instead of hidden: clip prevents horizontal scroll without
       creating a new scroll container (which would break position:fixed). */
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    /* NOTE: Do NOT set overflow on html — it breaks position:fixed elements
       by creating a new containing block for fixed children.
       Use overflow-x:clip on body instead (clip does not create a scroll container). */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent images from overflowing their containers on any screen size */
img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: #000000;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    min-height: var(--navbar-h);
    /* NOTE: Do NOT use overflow:hidden here — it creates a new containing block
       that can trap position:fixed children (WhatsApp button) on some hosts. */
}

.navbar > .container {
    width: 100%;
    min-height: var(--navbar-h);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

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

/* Logo image in navbar */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-accent);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: var(--navbar-h);
    min-height: calc(100vh - var(--navbar-h));
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ccc;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--white);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background-color: transparent;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 41, 145, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
    color: #000;
    border: none;
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: #000;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

/* ===== Section Styles ===== */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--gold));
}

/* ===== Services Section ===== */
.services {
    background-color: #000000;
}

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

.service-card {
    background: linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(197, 41, 145, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-accent);
    box-shadow: 0 15px 40px rgba(197, 41, 145, 0.2);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

/* ===== Gallery Section ===== */
.gallery {
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay p {
    font-size: 20px;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== About Section ===== */
.about {
    background-color: #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-accent);
    font-size: 24px;
}

/* ===== Branches Section ===== */
.branches {
    background-color: var(--bg-dark);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.branch-card {
    background: linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 100%);
    color: var(--text-primary);
    padding: 40px 30px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-accent);
    border: 1px solid rgba(197, 41, 145, 0.2);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
    box-shadow: 0 10px 30px rgba(197, 41, 145, 0.15);
}

.branch-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.branch-card p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.branch-card i {
    color: var(--primary-accent);
    min-width: 20px;
}

/* ===== Contact Section ===== */
.contact {
    background-color: #000000;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.info-item i {
    font-size: 28px;
    color: var(--primary-accent);
    min-width: 40px;
    text-align: center;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

.info-item p {
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(197, 41, 145, 0.3);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    background-color: rgba(13, 30, 37, 0.8);
    color: var(--text-primary);
    width: 100%;
}

.contact-form select option {
    background-color: #0D1E25;
    color: var(--text-primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(197, 41, 145, 0.15);
}

/* ===== Footer ===== */
.footer {
    background-color: #050505;
    color: var(--text-primary);
    padding: 60px 20px 0;
    border-top: 1px solid rgba(197, 41, 145, 0.25);
}

/* Fix: .footer .container only flexes its direct children.
   .footer-content was the only child but had no display:flex of its own,
   so the four .footer-section divs stacked vertically. */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
    padding-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Roboto', sans-serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary-accent);
    padding-left: 4px;
}

/* Fix: footer-contact paragraphs were unstyled */
.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}

.footer-contact p i {
    color: var(--primary-accent);
    min-width: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icon {
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(197, 41, 145, 0.6);
    border-radius: 50%;
    text-decoration: none;
    background: rgba(197, 41, 145, 0.12);
    position: relative;
    overflow: hidden;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

/* YouTube */
.social-icon[title="YouTube"]:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.55);
}

/* Instagram */
.social-icon[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #cc2366;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.55);
}

/* Facebook */
.social-icon[title="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.55);
}

/* WhatsApp */
.social-icon[title="WhatsApp"]:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* Fallback for any other social icon */
.social-icon:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 24px rgba(197, 41, 145, 0.55);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0 20px;
    text-align: center;
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Page Hero Banner (used on inner pages) ===== */
.page-hero {
    margin-top: var(--navbar-h);
    padding: 80px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #000 0%, #1a0810 50%, #000 100%);
    border-bottom: 1px solid rgba(197, 41, 145, 0.2);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(197, 41, 145, 0.08) 0%, transparent 70%);
}

.page-hero h1 {
    font-size: 52px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

/* ===== Global WhatsApp Float Button ===== */
/* Defined here so all pages (index, about, gallery, etc.) inherit it.
   IMPORTANT: position:fixed is relative to the VIEWPORT, not the document.
   Do NOT set overflow on <html> — it breaks position:fixed elements.
   Do NOT set overflow:hidden on <body> — use clip instead if needed. */
.whatsapp-float {
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;    /* above everything including nav overlays */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseWhatsApp 2.5s infinite;
    box-sizing: border-box;
    overflow: visible;
    /* Escape any accidental stacking-context trap from parent overflow */
    transform: translateZ(0);
    will-change: transform;
    isolation: auto;
}

.whatsapp-float i {
    font-size: 28px;
    line-height: 1;
    color: #fff;
    /* Fallback text if FA fails to load */
    font-style: normal;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
    color: #fff !important;
}

@keyframes pulseWhatsApp {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* On pages with sticky booking bar (services page), shift WhatsApp up */
body.has-sticky-bar .whatsapp-float {
    bottom: 78px !important;
    right: 20px !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Responsive Design ===== */

/* ── Large tablets / small laptops ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    h1 { font-size: 40px; }
    h2 { font-size: 34px; }
    .hero-title  { font-size: 80px; }
    .page-hero h1 { font-size: 44px; }
    .section-title { font-size: 36px; }
    .about-content { gap: 40px; }
    .contact-wrapper { gap: 40px; }
}

/* ── Tablets / large phones ── */
@media (max-width: 768px) {
    /* Shrink navbar height to mobile token value */
    .navbar {
        min-height: var(--navbar-h-mobile);
        overflow: hidden;  /* critical: prevents hamburger from causing overflow */
    }
    .navbar > .container {
        min-height: var(--navbar-h-mobile);
        padding: 0 12px;
        overflow: visible;
    }

    .nav-wrapper {
        overflow: visible;
    }

    .menu-toggle {
        display: flex;
        padding: 8px;
        flex-shrink: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        background-color: var(--text-primary);
        width: 24px;
        height: 2.5px;
        display: block;
        border-radius: 2px;
    }

    /* Hamburger → X animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .logo-img {
        height: 44px;
        max-width: calc(100vw - 80px);  /* never overflow into hamburger area */
    }

    /* ── Mobile nav menu: full-screen drawer from top ── */
    .nav-menu {
        position: fixed;
        top: var(--navbar-h-mobile);
        left: 0;
        right: 0;
        width: 100vw;               /* force full viewport width */
        max-width: 100vw;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
        border-bottom: 1px solid rgba(197, 41, 145, 0.15);
        box-sizing: border-box;
    }

    .nav-menu.active {
        max-height: 480px;
        opacity: 1;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(197, 41, 145, 0.08);
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-link::after {
        display: none;
    }

    .hero-title   { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 28px; }
    .page-hero h1  { font-size: 32px; }

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

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

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 48px 16px;
    }

    /* Footer collapses to single column on mobile */
    .footer {
        padding: 40px 16px 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 28px;
    }
    /* Keep footer sections full-width at this breakpoint */
    .footer-section {
        min-width: 0;
        width: 100%;
    }

    /* WhatsApp: mobile sizing — keep fixed to viewport bottom-right */
    .whatsapp-float {
        right: 16px !important;
        bottom: 24px !important;
        left: auto !important;
        top: auto !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 24px;
        transform: translateZ(0);
    }
    .whatsapp-float i {
        font-size: 24px;
    }

    /* Prevent horizontal overflow everywhere */
    body {
        overflow-x: clip;
        width: 100%;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Page hero tighter on mobile */
    .page-hero {
        margin-top: var(--navbar-h-mobile);
        padding: 50px 16px 36px;
    }
    .page-hero h1 { font-size: 28px; }
    .page-hero p  { font-size: 14px; }

    /* General responsive helpers */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }

    .btn {
        padding: 12px 28px;
        font-size: 13px;
    }

    section {
        padding: 48px 16px;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .section-title { font-size: 22px; }
    .page-hero h1  { font-size: 24px; }
    .logo-img { height: 40px; }

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

    .service-card {
        padding: 28px 18px;
    }

    .social-links {
        gap: 12px;
    }

    /* Footer: single column on small phones to prevent overflow */
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .footer-section {
        width: 100%;
        min-width: 0;
    }
    .footer-section:last-child {
        width: 100%;
    }
    .footer-bottom p { font-size: 11px; }
    .page-hero { padding: 44px 16px 28px; }

    /* WhatsApp: smaller on tiny screens */
    .whatsapp-float {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px;
        right: 12px !important;
        bottom: 20px !important;
        left: auto !important;
        top: auto !important;
        transform: translateZ(0);
    }
    .whatsapp-float i {
        font-size: 22px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }

    .btn {
        padding: 11px 22px;
        font-size: 12px;
    }
}

/* ── Very small phones (360px and below) ── */
@media (max-width: 360px) {
    .hero-title { font-size: 22px; }
    .page-hero h1 { font-size: 20px; }
    .logo-img { height: 36px; }
    .nav-link { font-size: 14px; padding: 14px 20px; }

    .whatsapp-float {
        width: 44px !important;
        height: 44px !important;
        right: 10px !important;
        bottom: 16px !important;
    }
    .whatsapp-float i { font-size: 20px; }

    #scrollToTop {
        width: 36px !important;
        height: 36px !important;
        right: 10px !important;
    }

    .footer-content { gap: 20px; }
    .social-icon { width: 36px; height: 36px; font-size: 15px; }
    section { padding: 40px 12px; }
    .container { padding: 0 12px; }
}


