/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Desktop smooth scrolling */
@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Enhanced desktop scrolling */
    body {
        scroll-behavior: smooth;
    }
    
    /* Smooth desktop animations */
    .hero, .features, .pricing, .faq, .contact {
        transition: transform 0.3s ease-out;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve touch targets */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth momentum scrolling on iOS */
    .scroll-container {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Performance optimizations for mobile */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Smooth animations */
    .hero, .features, .pricing, .faq, .contact {
        will-change: transform;
    }
    
    /* Better mobile typography */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Design Toggle Button */
.design-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.design-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.design-toggle.modern {
    background: #f1f5f9;
    color: #1e293b;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 24px;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    background-color: #20BA5A;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .design-toggle {
        top: 15px;
        right: 15px;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Enhanced mobile navigation */
    .header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0.8);
        transition: all 0.3s ease;
    }
    
    /* Smooth mobile scrolling improvements */
    .hero, .features, .pricing, .faq, .contact {
        scroll-margin-top: 80px;
    }
    
    /* Better touch interactions */
    .btn, .nav-link, .faq-question {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active, .nav-link:active, .faq-question:active {
        transform: scale(0.98);
    }
}

/* Quote Form Mobile Responsiveness */
@media (max-width: 768px) {
    #quoteForm {
        padding: 1.5rem !important;
    }
    
    #quoteForm .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    #quoteForm input,
    #quoteForm textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    font-weight: 400;
}

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

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    background-color: #000000;
    color: #ffffff;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
}

.mobile-availability {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #f87171;
    text-decoration: none;
}

@media (min-width: 768px) {
    .mobile-availability { display: none; }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.logo-icon {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.75rem;
    background-color: #ef4444;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    border-radius: 0.5rem;
    display: block;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: #f87171;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-cta:hover {
    background-color: #1f2937;
    border-color: #4b5563;
}

.nav-icon {
    width: 1rem;
    height: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
}

.hero-content {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        padding: 5rem 0;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid #374151;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.badge-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: #ef4444;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #dc2626;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #374151;
    color: #ffffff;
    background: transparent;
}

.btn-secondary:hover {
    background-color: #1f2937;
    border-color: #4b5563;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (min-width: 640px) {
    .hero-features {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 1rem;
    height: 1rem;
    color: #ef4444;
}

.hero-image {
    position: relative;
}

.hero-photo {
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #374151;
    display: block;
    background-color: #111827;
}

.availability-card {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    min-width: 260px;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.postcode-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.postcode-input {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 10rem;
    transition: border-color 0.2s;
}

.postcode-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.postcode-btn {
    border-radius: 0.5rem;
    background-color: #ef4444;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.postcode-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.card-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Features Section */
.features {
    background-color: #f8fafc;
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-description {
    color: #64748b;
    max-width: 32rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.feature-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Spec Section */
.spec {
    padding: 3.5rem 0;
}

.spec-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .spec-content {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.spec-item {
    display: flex;
    gap: 0.5rem;
}

.spec-icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.insurance-card {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.insurance-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.insurance-description {
    font-size: 0.875rem;
    color: #64748b;
}

.spec-image {
    border-radius: 1rem;
    background-color: #f1f5f9;
    aspect-ratio: 4/3;
    display: grid;
    place-items: center;
    color: #94a3b8;
}

/* Gallery Section */
.gallery {
    background-color: #f8fafc;
    padding: 3.5rem 0;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    overflow: hidden;
    transition: all 0.2s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gallery-item:first-child {
    aspect-ratio: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
    justify-content: flex-start;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}

.gallery-item:first-child .gallery-image {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Pricing Section */
.pricing {
    padding: 3.5rem 0;
}

.pricing-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: grid;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
}

@media (min-width: 768px) {
    .pricing-card {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem;
    }
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.pricing-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.pricing-feature {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pricing-icon {
    width: 1rem;
    height: 1rem;
}

.quote-form {
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.form-title {
    font-weight: 500;
    margin-bottom: 1rem;
}

.form {
    display: grid;
    gap: 0.75rem;
}

.form-input,
.form-textarea {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    border-radius: 0.5rem;
    background-color: #1e293b;
    color: #ffffff;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.form-submit:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* Pricing breakdown styles */
.pricing-breakdown {
    margin: 1.5rem 0;
    display: grid;
    gap: 1.5rem;
}

.daily-rate, .delivery-rates {
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.daily-rate h4, .delivery-rates h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
}

.rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.rate-grid {
    display: grid;
    gap: 0.75rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.rate-item:last-child {
    border-bottom: none;
}

.distance {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.price {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
}

/* FAQs Section */
.faqs {
    background-color: #f8fafc;
    padding: 3.5rem 0;
}

.faqs-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .faqs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.faq-card {
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.faq-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-card.active {
    border-color: #ef4444;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.faq-question {
    font-weight: 500;
    padding: 1.25rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    color: #1e293b;
}

.faq-question:hover {
    color: #ef4444;
}

.faq-card.active .faq-question {
    color: #ef4444;
    border-bottom-color: #e2e8f0;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.2s ease;
    color: #ef4444;
}

.faq-card.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin: 0;
    display: none;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.footer-content {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.footer-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
}

.footer-legal {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-legal p:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Social Media Links */
.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.social-link:hover {
    color: #ef4444;
    transform: translateY(-1px);
}

.social-link:last-child {
    margin-right: 0;
}

.social-link svg {
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

.social-link:hover svg {
    transform: scale(1.1);
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.postcode-input:focus,
.postcode-btn:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Mobile menu toggle (if needed) */
@media (max-width: 767px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .availability-card {
        position: static;
        margin-top: 1rem;
        min-width: auto;
    }
    
    /* Mobile-specific adjustments for new sections */
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .gallery img {
        max-height: 250px !important;
    }
    
    #cookieBanner .container {
        flex-direction: column;
        text-align: center;
    }
    
    #cookieBanner button {
        width: 100%;
    }
}