/* Performance: contain paint for sections */
section { contain: content; }
img, svg { content-visibility: auto; }

/* Reduce layout shift */
img { aspect-ratio: attr(width) / attr(height); height: auto; }

/* ==========================================================================
   Patuvai.eu — Travel Deals CSS
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-darker: #0369a1;
    --primary-light: #e0f2fe;
    --primary-50: #f0f9ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fef3c7;
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.12);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Grid System --- */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.navbar.scrolled .navbar-brand { color: var(--primary-dark); }

.navbar-brand span { font-size: 1.6rem; }

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.navbar.scrolled .navbar-nav a { color: var(--text); }

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 1px;
}

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

.navbar-nav a:hover { color: var(--white); }
.navbar.scrolled .navbar-nav a:hover { color: var(--primary); }

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .navbar-toggle span { background: var(--text); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 40%, #38bdf8 70%, #7dd3fc 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Hero search box */
.hero-search {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    max-width: 560px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    border-radius: var(--radius);
    background: transparent;
}

.hero-search .btn { white-space: nowrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); font-weight: 600; }

/* --- Deal Card --- */
.deal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.deal-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.deal-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.deal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.deal-card-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.deal-card-image .price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
}

.deal-card-body {
    padding: 20px;
}

.deal-card-destination {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.deal-card-route {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-card-dates {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.deal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

/* --- Destination Card --- */
.destination-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all var(--transition);
}

.destination-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover img { transform: scale(1.1); }

.destination-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--white);
}

.destination-card-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.destination-card-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* --- Price Tag --- */
.price-tag {
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.price-tag-lg {
    font-size: 1.6rem;
    padding: 10px 20px;
    border-radius: var(--radius);
}

.price-tag small {
    font-weight: 500;
    font-size: 0.7em;
    opacity: 0.9;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 20px;
    line-height: 1.4;
}

.badge-hot {
    background: var(--error);
    color: var(--white);
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-error-fare {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: var(--white);
}

.badge-deal { background: var(--accent-light); color: var(--accent-dark); }
.badge-new { background: var(--primary-light); color: var(--primary-dark); }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

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

/* --- Newsletter --- */
.newsletter {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: var(--white);
}

.newsletter h3 { color: var(--white); margin-bottom: 8px; font-size: 1.5rem; }
.newsletter p { opacity: 0.9; margin-bottom: 24px; }

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: var(--white); background: rgba(255,255,255,0.25); }

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

.footer ul { list-style: none; }

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

.footer ul a {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer ul a:hover { color: var(--white); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.bg-light { background: var(--gray-50); }
.bg-primary-light { background: var(--primary-50); }
.rounded { border-radius: var(--radius); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Animations (opacity only, no layout shift) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up { animation: fadeIn 0.5s ease forwards; }
.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .section { padding: 48px 0; }

    .hero { min-height: 500px; padding: 100px 20px 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.05rem; }
    .hero-search { flex-direction: column; }

    /* Mobile nav */
    .navbar-toggle { display: flex; }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 16px 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .navbar-nav.active { display: flex; }

    .navbar-nav a {
        color: var(--text) !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
        display: block;
    }

    .navbar-nav a::after { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .newsletter { padding: 32px 20px; }
    .newsletter-form { flex-direction: column; }

    .destination-card { height: 220px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.75rem; }
    .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}

/* ==========================================================================
   RESPONSIVE — Mobile First (comprehensive)
   ========================================================================== */

/* --- Mobile: up to 480px --- */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    /* Navbar */
    .navbar { padding: 8px 0; }
    .navbar-brand { font-size: 1.1rem; }
    .navbar-nav {
        position: fixed; top: 0; left: -100%; width: 85%; height: 100vh;
        background: rgba(255,255,255,0.98); flex-direction: column;
        padding: 80px 24px 24px; gap: 4px; z-index: 999;
        transition: left 0.3s ease; box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        display: flex;
    }
    .navbar-nav.active { left: 0; }
    .navbar-nav a { color: var(--text) !important; padding: 14px 16px; font-size: 1.05rem; border-radius: 8px; }
    .navbar-nav a:hover, .navbar-nav a.active { background: var(--primary-light); color: var(--primary) !important; }
    .navbar-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
    .navbar-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; border-radius: 2px; }
    .navbar.scrolled .navbar-toggle span { background: var(--text); }

    /* Hero */
    .hero { padding: 90px 16px 50px !important; min-height: auto !important; }
    .hero h1 { font-size: 1.8rem !important; }
    .hero p { font-size: 1rem !important; }
    .hero-content { max-width: 100% !important; }

    /* Grids -> 1 column */
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

    /* Cards */
    .card { padding: 16px; border-radius: 10px; }

    /* Forms */
    .form-input, .form-select { font-size: 16px !important; padding: 12px !important; } /* 16px prevents iOS zoom */

    /* Buttons */
    .btn { padding: 12px 16px; font-size: 0.9rem; width: 100%; justify-content: center; }
    .btn-lg { padding: 14px 20px; }

    /* Newsletter */
    .newsletter-form { flex-direction: column !important; }
    .newsletter-form input { width: 100% !important; }
    .newsletter-form button { width: 100% !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .footer-social { margin-top: 16px; }

    /* Typography */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.15rem !important; }

    /* Search form on homepage */
    [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }

    /* Tables */
    table { font-size: 0.8rem; }
    th, td { padding: 6px 8px !important; }

    /* Horizontal scroll containers */
    .scroll-container { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .scroll-container > * { scroll-snap-align: start; flex-shrink: 0; }
}

/* --- Small tablet: 481px to 768px --- */
@media (min-width: 481px) and (max-width: 768px) {
    .container { padding: 0 16px; }
    .navbar-nav {
        position: fixed; top: 0; left: -100%; width: 60%; height: 100vh;
        background: rgba(255,255,255,0.98); flex-direction: column;
        padding: 80px 24px 24px; gap: 4px; z-index: 999;
        transition: left 0.3s ease;
        display: flex;
    }
    .navbar-nav.active { left: 0; }
    .navbar-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
    .navbar-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; border-radius: 2px; }
    .navbar.scrolled .navbar-toggle span { background: var(--text); }

    .hero { padding: 100px 16px 60px !important; }
    .hero h1 { font-size: 2.2rem !important; }

    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
    [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }

    .footer-grid { grid-template-columns: 1fr 1fr !important; }

    .form-input, .form-select { font-size: 16px !important; }
}

/* --- Tablet: 769px to 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-toggle { display: none; }
    .navbar-nav { display: flex !important; }

    .grid-4 { grid-template-columns: 1fr 1fr 1fr !important; }

    .hero h1 { font-size: 2.8rem !important; }
}

/* --- Desktop: always show nav --- */
@media (min-width: 769px) {
    .navbar-toggle { display: none !important; }
    .navbar-nav { display: flex !important; position: static !important; width: auto !important; height: auto !important; background: none !important; padding: 0 !important; flex-direction: row !important; }
}

/* --- Touch improvements --- */
@media (hover: none) {
    .btn:active { transform: scale(0.97); }
    .card:active { transform: scale(0.98); }
    a, button { -webkit-tap-highlight-color: transparent; }
}

/* --- Safe area for notch phones --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* --- Prevent horizontal scroll --- */
html, body { overflow-x: hidden; max-width: 100vw; }

/* --- Print styles --- */
@media print {
    .navbar, .footer, .newsletter, .cookie-banner, .btn { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
