/* ============================================
   MODERN COMPUTERIZED AUTO WORKSHOP
   Shared Stylesheet — All Pages
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ---------- Berlin Sans FB Demi (logo font) ---------- */
@font-face {
    font-family: 'Berlin Sans FB Demi';
    src: local('Berlin Sans FB Demi Bold'), local('BerlinSansFB-DemiBold'),
         url('https://fonts.cdnfonts.com/css/berlin-sans-fb-demi') format('woff2'),
         url('https://fonts.cdnfonts.com/css/berlin-sans-fb-demi') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variables ---------- */
:root {
    --primary: #FF6B00;
    --primary-dark: #e05d00;
    --secondary: #003366;
    --secondary-dark: #002244;
    --dark: #222222;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
    --white: #ffffff;
    --black: #000000;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;
    --header-height: 90px;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- Section Headings ---------- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: padding 0.3s ease;
}

.header.scrolled .container {
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo-img {
    height: 42px;
}

.logo h1 {
    font-family: 'Berlin Sans FB Demi', 'Arial Narrow Bold', sans-serif;
    font-size: 18px;
    color: var(--secondary);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    max-width: 260px;
}

/* Nav */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #001a33 100%);
    color: var(--white);
    padding: 140px 20px 60px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
}

.breadcrumbs {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.breadcrumbs a {
    color: var(--primary);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--white);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
    transform: rotate(360deg);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
    color: var(--secondary);
}

.service-card p {
    color: var(--gray);
    padding: 0 20px 20px;
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    padding: 0 20px 20px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary);
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--light);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInRight 1s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background-color: var(--light);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 250px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages {
    background-color: var(--white);
    padding: 80px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.package-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
}

.package-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.package-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.package-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.package-features {
    padding: 30px 20px;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray);
}

.package-feature i {
    color: var(--primary);
    flex-shrink: 0;
}

.package-cta {
    padding: 0 20px 30px;
    text-align: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.info-item p,
.info-item a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   MAP
   ============================================ */
.map {
    width: 100%;
    height: 400px;
    position: relative;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(20%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-size: 28px;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 2;
}

.close-lightbox:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.prev-arrow,
.next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 32px;
    transition: var(--transition);
    user-select: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.prev-arrow:hover,
.next-arrow:hover {
    background-color: var(--primary);
}

/* ============================================
   FORM CONFIRMATION (toast)
   ============================================ */
.form-confirmation {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: var(--transition);
    z-index: 1500;
    max-width: 90%;
}

.form-confirmation.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.confirmation-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmation-content i {
    font-size: 1.5rem;
}

/* ============================================
   REUSABLE ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wrenchRotate {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
    50% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ============================================
   SCROLL REVEAL (shared, lightweight)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .page-hero h1 { font-size: 2.4rem; }

    .about .container {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 40px;
        width: 100%;
    }

    .logo h1 { font-size: 15px; max-width: 200px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    :root { --header-height: 75px; }

    section { padding: 60px 0; }

    .header .container {
        padding: 12px 20px;
    }

    .logo-img { height: 42px; }
    .header.scrolled .logo-img { height: 38px; }
    .logo h1 { font-size: 13px; max-width: 170px; letter-spacing: 0.5px; }

    /* Mobile nav — slide-in panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 17px;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a::before { display: none; }

    .hamburger { display: flex; }

    /* Page hero */
    .page-hero {
        min-height: 260px;
        padding: 120px 20px 50px;
    }
    .page-hero h1 { font-size: 1.9rem; }
    .page-hero p { font-size: 1rem; }

    .section-title { font-size: 1.9rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 35px; }

    .about-features { grid-template-columns: 1fr; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item { height: 200px; }

    .packages-grid { grid-template-columns: 1fr; }

    .whatsapp-float { bottom: 20px; right: 20px; }
    .whatsapp-link { width: 55px; height: 55px; font-size: 24px; }

    .close-lightbox { top: 15px; right: 20px; font-size: 40px; }
    .prev-arrow, .next-arrow { font-size: 24px; padding: 10px 14px; }
    .prev-arrow { left: 8px; }
    .next-arrow { right: 8px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 576px)
   ============================================ */
@media (max-width: 576px) {
    .container { padding: 0 16px; }

    .section-title { font-size: 1.65rem; }
    .section-subtitle { font-size: 0.95rem; }

    .page-hero h1 { font-size: 1.6rem; }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn { width: 100%; padding: 13px 24px; }

    .logo h1 { font-size: 11px; max-width: 150px; }

    .service-card h3 { font-size: 1.25rem; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item { height: 150px; }

    .contact-form { padding: 22px 18px; }

    .footer { padding: 60px 0 0; }
    .footer-content { gap: 30px; }

    .form-confirmation { padding: 12px 18px; font-size: 0.9rem; }
}
/* ============================================
   BRANDS GRID (logos)
   ============================================ */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin-top: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.brand-item {
    background: var(--white);
    border-radius: 14px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.brand-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.brand-item:hover::before {
    opacity: 1;
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.2);
}

.brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(0%);
}

.brand-item:hover img {
    transform: scale(1.1) rotate(-2deg);
}

.brand-item span {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.brand-item:hover span {
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .brand-item {
        padding: 20px 10px;
    }
    .brand-item img {
        width: 48px;
        height: 48px;
    }
    .brand-item span {
        font-size: 0.85rem;
    }
}
/* ============================================
   REDUCED MOTION SUPPORT (accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ============================================
   CRITICAL FIX — Prevent reveal animations from
   causing horizontal overflow on mobile
   ============================================ */

/* On mobile, disable the horizontal offset entirely */
@media (max-width: 768px) {
    .reveal,
    .reveal-left,
    .reveal-right {
        transform: none !important;
        opacity: 1 !important;
    }

    /* Keep vertical-only reveal for smoothness, but no horizontal shift */
    .reveal {
        transform: translateY(0) !important;
    }
}

/* Global safety net — nothing should extend past viewport */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Force the contact-info items to respect container */
.contact-info {
    min-width: 0;
    max-width: 100%;
}

.info-item {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.info-item p,
.info-item a,
.info-item h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}