/* Autolink - Modern Automotive Services Website - Dark Mode */
/* Dark Color Scheme: Deep greys and blues */

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

:root {
    /* Dark Mode Colors */
    --primary-blue: #4da6ff;
    --light-blue: #6bb8ff;
    --dark-blue: #3d8fd1;
    --accent-blue: #5eb3ff;

    /* Dark Backgrounds */
    --bg-darkest: #0a0e14;
    --bg-dark: #151a23;
    --bg-medium: #1e2530;
    --bg-light: #252d3d;
    --bg-lighter: #2d3748;

    /* Text Colors */
    --text-primary: #e4e7eb;
    --text-secondary: #a0aec0;
    --text-muted: #718096;

    /* Borders & Dividers */
    --border-color: #2d3748;
    --border-light: #3d4758;

    /* Shadows */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-blue: 0 4px 20px rgba(77, 166, 255, 0.15);

    /* Legacy support */
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: var(--bg-darkest);
    background-image:
        radial-gradient(at 0% 0%, rgba(77, 166, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(77, 166, 255, 0.05) 0px, transparent 50%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-phone,
.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-phone {
    background: var(--bg-medium);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-phone:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
}

.nav-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-whatsapp:hover {
    background: linear-gradient(135deg, #2EE673 0%, #15A892 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.contact-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid transparent;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(77, 166, 255, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1e3a5f 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-blue);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-darkest);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Bento Grid Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.postal-badge {
    display: inline-block;
    background: rgba(77, 166, 255, 0.15);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Service Area Checker Section */
.service-area {
    padding: 0;
    background: linear-gradient(135deg, #0a0e14 0%, #1e2530 100%);
    position: relative;
    overflow: hidden;
}

.service-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(77, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(77, 166, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.area-checker-wrapper {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.area-checker-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 37, 48, 0.95) 0%, rgba(21, 26, 35, 0.95) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(77, 166, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(77, 166, 255, 0.2);
    backdrop-filter: blur(10px);
}

.checker-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checker-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.checker-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checker-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.postcode-input-wrapper {
    margin-bottom: 3rem;
}

.postcode-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-darkest);
    padding: 0.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.postcode-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(77, 166, 255, 0.1);
}

.postcode-input-group input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postcode-input-group input:focus {
    outline: none;
}

.postcode-input-group input::placeholder {
    color: var(--text-muted);
    text-transform: none;
    font-weight: normal;
    letter-spacing: normal;
}

.btn-check-postcode {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.3);
}

.btn-check-postcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(77, 166, 255, 0.4);
}

.btn-check-postcode:active {
    transform: translateY(0);
}

.btn-check-postcode .btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-check-postcode:hover .btn-icon {
    transform: translateX(4px);
}

.area-result {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 20px;
    display: none;
    animation: slideDown 0.4s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.area-result.show {
    display: block;
}

.area-result.in-range {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(77, 166, 255, 0.15) 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
}

.area-result.extended-range {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
}

.area-result.out-of-range {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.result-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

.result-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.8;
    font-size: 1.05rem;
}

.result-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-details ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.result-details li {
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-details li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.result-details li:before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    color: #22c55e;
    font-weight: bold;
    font-size: 1.2rem;
}

.result-details li.warning:before {
    content: "⚠";
    color: #fbbf24;
}

.call-to-action {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(77, 166, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(77, 166, 255, 0.2);
}

.call-to-action a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.call-to-action a:hover {
    color: var(--light-blue);
    transform: scale(1.05);
}

.service-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-type-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(30, 37, 48, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(77, 166, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-type-card:hover::before {
    opacity: 1;
}

.service-type-card:hover {
    transform: translateY(-8px);
    border-color: rgba(77, 166, 255, 0.4);
    box-shadow: 0 12px 40px rgba(77, 166, 255, 0.2);
}

.service-type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-type-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-type-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--bg-medium);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234da6ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-medium);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-light);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0.5rem 0;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-medium);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.file-label:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

.file-input:focus + .file-label {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.file-icon {
    font-size: 1.5rem;
}

.file-text {
    color: #666;
    font-size: 0.95rem;
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.file-preview-icon {
    font-size: 2rem;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-preview-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.file-preview-remove:hover {
    background: #c82333;
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border: 1px solid #48bb78;
    display: block;
}

.form-message.error {
    background: rgba(245, 101, 101, 0.15);
    color: #f56565;
    border: 1px solid #f56565;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--dark-blue);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem;
}

.service-details {
    margin-bottom: 2rem;
}

.service-details h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.modal-gallery {
    margin-top: 2rem;
}

.modal-gallery h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.modal-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 2rem;
}

.modal-cta button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cta button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 50vh;
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Service Area Checker Mobile */
    .service-area {
        padding: 0 !important;
    }

    .area-checker-wrapper {
        padding: 3rem 1rem !important;
    }

    .area-checker-container {
        padding: 2rem 1.25rem !important;
        border-radius: 20px !important;
    }

    .checker-icon-large {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .checker-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .checker-subtitle {
        font-size: 0.95rem !important;
        padding: 0 0.5rem !important;
    }

    .postcode-input-wrapper {
        margin-bottom: 2rem !important;
    }

    .postcode-input-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0.5rem !important;
        border-radius: 12px !important;
    }

    .postcode-input-group input {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
    }

    .btn-check-postcode {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .service-types-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }

    .service-type-card {
        padding: 1.5rem 1rem !important;
    }

    .service-type-icon {
        font-size: 2.5rem !important;
    }

    .service-type-card h3 {
        font-size: 1.1rem !important;
    }

    .service-type-card p {
        font-size: 0.9rem !important;
    }

    .result-title {
        font-size: 1.35rem !important;
    }

    .result-icon {
        font-size: 2.5rem !important;
    }

    .result-description {
        font-size: 0.95rem !important;
    }

    .result-details {
        padding: 1.25rem !important;
    }

    .result-details li {
        padding: 0.5rem 0.75rem !important;
        padding-left: 2rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .nav-contact {
        gap: 0.5rem;
    }

    .nav-phone,
    .nav-whatsapp {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        gap: 0.35rem;
    }

    .nav-icon {
        font-size: 1rem;
    }

    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-contact {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-phone,
    .nav-whatsapp,
    .contact-btn {
        flex: 1;
        min-width: 110px;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
        gap: 0.3rem;
    }

    .nav-icon {
        font-size: 0.95rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Extra small screens - Postcode Checker */
    .area-checker-wrapper {
        padding: 2rem 0.75rem !important;
    }

    .area-checker-container {
        padding: 1.5rem 1rem !important;
    }

    .checker-title {
        font-size: 1.35rem !important;
    }

    .checker-subtitle {
        font-size: 0.9rem !important;
    }

    .postcode-input-group input {
        font-size: 0.95rem !important;
        padding: 0.9rem 1rem !important;
    }

    .btn-check-postcode {
        font-size: 0.95rem !important;
        padding: 0.9rem 1.25rem !important;
    }

    .service-type-card {
        padding: 1.25rem 0.85rem !important;
    }

    .service-type-card h3 {
        font-size: 1rem !important;
    }

    .service-type-card p {
        font-size: 0.85rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.6s linear infinite;
}

