/* Color Palette Variables */
:root {
    --blue-de-france: #0D85D8;
    --seasalt: #EEF0F2;
    --platinum: #DADDD8;
    --cultured: #F3F3F2;
    --outer-space: #ABADA9;
    --silver: #CBCCCD;
    --davys-grey: #4C4C4B;
    --ghost-white: #FAFAFF;
    --aerospace-orange: #FF4E00;
    --eerie-black: #1C1C1C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--eerie-black);
}

/* Hide features under development */
.hidden-feature {
    display: none !important;
}

/* Font Family Classes */
.orbitron {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.rationale-regular {
    font-family: "Rationale", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Ensure SVG text uses Inter font */
svg text {
    font-family: 'Inter', sans-serif;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* No JavaScript warning */
.noscript-warning {
    background: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.noscript-warning p {
    margin: 0;
    color: #856404;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.noscript-warning strong {
    color: #664d03;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue-de-france);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Header/Navigation */
.header {
    background: var(--ghost-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--platinum);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--eerie-black);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-de-france);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:active,
.nav-menu a:focus {
    color: var(--blue-de-france);
}

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

.nav-menu a.active {
    color: var(--blue-de-france);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--eerie-black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.btn-contact {
    background: var(--blue-de-france);
    color: white;
    border: none;
    padding: 12px 28px;
    min-height: 44px;
    min-width: 120px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 100;
}

.btn-contact:hover {
    background: #0a6bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.btn-contact:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 133, 216, 0.2);
}

.btn-contact:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .btn-contact {
        padding: 14px 32px;
        min-height: 48px;
    }
}

/* Hero Section */
.hero {
    background-image: url('../images/victor.png');
    background-size: cover;
    background-position: 85% center;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    min-height: 500px;
}

@media (min-width: 1200px) {
    .hero {
        background-position: 70% center;
    }
}

@media (min-width: 1500px) and (max-width: 2000px) {
    .hero {
        background-position: 55% 30%;
    }
}

@media (min-width: 2000px) and (max-width: 2500px) {
    .hero {
        background-position: 50% 25%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(238, 240, 242, 0.95) 0%,
        rgba(238, 240, 242, 0.85) 40%,
        rgba(238, 240, 242, 0.3) 70%,
        rgba(238, 240, 242, 0) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--blue-de-france);
    font-weight: 700;
}

.hero-subtitle {
    color: var(--davys-grey);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-description {
    color: var(--davys-grey);
    margin-bottom: 30px;
    line-height: 1.9;
    font-size: 16px;
    max-width: 650px;
}

.btn-cta {
    background: var(--blue-de-france);
    color: white;
    border: none;
    padding: 14px 32px;
    min-height: 48px;
    min-width: 180px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    font-family: inherit;
}

.btn-cta:hover {
    background: #0a6bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 133, 216, 0.2);
}

.btn-cta:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .btn-cta {
        padding: 16px 36px;
        min-height: 52px;
        font-size: 17px;
        width: 100%;
        max-width: 320px;
    }
}

/* ===================================
   A/B TESTING VARIANT STYLES
   =================================== */

/* Button color variants for A/B testing */
.btn-variant-green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.btn-variant-green:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%) !important;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3) !important;
}

.btn-variant-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.btn-variant-red:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3) !important;
}

.btn-variant-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
}

.btn-variant-purple:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4c2a8c 100%) !important;
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.3) !important;
}

.btn-variant-orange {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%) !important;
}

.btn-variant-orange:hover {
    background: linear-gradient(135deg, #e8590c 0%, #d44d0a 100%) !important;
    box-shadow: 0 8px 30px rgba(253, 126, 20, 0.3) !important;
}

/* Mobile hero section */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 435px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 14px;
    }
}


/* Services Section */
.services {
    background: white;
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--davys-grey);
    font-size: 16px;
    line-height: 1.8;
}

/* Services Tab Container */
.services-tab-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

/* Services Navigation */
.services-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--platinum);
    height: fit-content;
}

/* Staggered Entry Animation */
.services-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid var(--platinum);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    min-height: 70px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideInFromLeft 0.6s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delays based on data attributes */
.services-nav-item[data-animation-delay="0.1"] {
    animation-delay: 0.1s;
}

.services-nav-item[data-animation-delay="0.2"] {
    animation-delay: 0.2s;
}

.services-nav-item[data-animation-delay="0.3"] {
    animation-delay: 0.3s;
}

.services-nav-item[data-animation-delay="0.4"] {
    animation-delay: 0.4s;
}

.services-nav-item[data-animation-delay="0.5"] {
    animation-delay: 0.5s;
}

.services-nav-item[data-animation-delay="0.6"] {
    animation-delay: 0.6s;
}

.services-nav-item:hover {
    background: var(--seasalt);
    border-color: var(--blue-de-france);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.15);
}

.services-nav-item.active {
    background: var(--blue-de-france);
    border-color: var(--blue-de-france);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 133, 216, 0.3);
}

/* Icon Styling */
.services-nav-item .nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 50%;
}

.services-nav-item .nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.services-nav-item.active .nav-icon {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px;
}

.services-nav-item.active .nav-icon img {
    opacity: 1;
}

.services-nav-item:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.services-nav-item.active:hover .nav-icon {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.25);
}

/* Typography Hierarchy */
.services-nav-item .nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.services-nav-item .nav-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.services-nav-item .nav-subtitle {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--outer-space);
    transition: color 0.3s ease;
}

.services-nav-item.active .nav-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Ripple Effect */
.services-nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: rgba(13, 133, 216, 0.3);
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.services-nav-item.ripple::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Remove ripple class after animation */
@keyframes removeRipple {
    to {
        opacity: 0;
    }
}

/* Services Content Card */
.services-content-wrapper {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.services-content-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border: 1px solid var(--platinum);
    border-radius: 8px;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-content-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.services-content-card .content-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-content-card .content-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.services-content-card .content-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 20px;
}

.services-content-card .content-description {
    font-size: 18px;
    color: var(--davys-grey);
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

.services-content-card .content-details {
    font-size: 16px;
    color: var(--davys-grey);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Legacy styles for backwards compatibility */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--platinum);
    border-radius: 8px;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--eerie-black);
}

.service-description {
    color: var(--davys-grey);
    margin-bottom: 15px;
    font-size: 14px;
}

.service-link {
    color: var(--blue-de-france);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #0a6bb8;
}

/* Responsive Services Tab Interface */
@media (max-width: 1024px) {
    .services-tab-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .services-nav-item {
        padding: 14px 16px;
        min-height: 66px;
    }
    
    .services-nav-item .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .services-nav-item .nav-text {
        font-size: 15px;
    }
    
    .services-nav-item .nav-subtitle {
        font-size: 12px;
    }
    
    .services-content-card {
        padding: 40px;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-tab-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
    }
    
    .services-nav-item {
        padding: 12px 16px;
        min-height: 62px;
    }
    
    .services-nav-item:hover {
        transform: none;
    }
    
    .services-nav-item .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .services-nav-item .nav-text {
        font-size: 15px;
    }
    
    .services-nav-item .nav-subtitle {
        font-size: 12px;
    }
    
    .services-content-card {
        padding: 30px 25px;
    }
    
    .services-content-card .content-title {
        font-size: 28px;
    }
    
    .services-content-card .content-description {
        font-size: 16px;
    }
    
    .services-content-card .content-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-link {
        font-size: 16px;
        padding: 12px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-intro {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 435px) {
    .services-nav {
        padding: 10px;
    }
    
    .services-nav-item {
        padding: 10px 12px;
        min-height: 58px;
        gap: 10px;
    }
    
    .services-nav-item .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .services-nav-item .nav-text {
        font-size: 14px;
    }
    
    .services-nav-item .nav-subtitle {
        font-size: 11px;
    }
    
    .services-content-card {
        padding: 25px 20px;
    }
    
    .services-content-card .content-title {
        font-size: 24px;
    }
    
    .services-content-card .content-description {
        font-size: 15px;
    }
    
    .services-content-card .content-details {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-intro {
        font-size: 14px;
    }
}

/* About Section */
.about {
    background: var(--seasalt);
    padding: 80px 0;
}

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

.about-label,
.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--outer-space);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.about-title {
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 400;
}

.about-title .highlight {
    color: var(--blue-de-france);
    font-weight: 600;
}

.about-description {
    color: var(--davys-grey);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-bottom: 30px;
}

.about-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-de-france);
    font-weight: bold;
}

.testimonial-carousel {
    position: relative;
    min-height: 200px;
    margin-bottom: 25px;
    user-select: none;
}

.testimonial-card {
    background: var(--platinum);
    padding: 30px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    color: var(--davys-grey);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-title {
    color: var(--davys-grey);
    font-size: 14px;
}

/* Testimonial navigation arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--platinum);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--davys-grey);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.testimonial-nav:hover {
    background: white;
    color: var(--blue-de-france);
    border-color: var(--blue-de-france);
    box-shadow: 0 2px 8px rgba(13, 133, 216, 0.2);
}

.testimonial-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-nav:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

.testimonial-prev {
    left: -20px;
}

.testimonial-next {
    right: -20px;
}

/* Testimonial dots navigation */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 0;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--platinum);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.testimonial-dot:hover {
    background: var(--outer-space);
    transform: scale(1.2);
}

.testimonial-dot:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

.testimonial-dot.active {
    background: var(--blue-de-france);
    width: 24px;
    border-radius: 5px;
}

/* Pause indicator */
.testimonial-carousel.paused::after {
    content: "⏸ Paused";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-carousel.paused:hover::after {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Developing Process Section */
.process {
    background: var(--cultured);
    padding: 80px 0;
}

.process-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.process-timeline {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
}

.process-details {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.process-timeframe {
    color: var(--davys-grey);
    font-size: 16px;
    line-height: 1.8;
}

.process-timeframe strong {
    color: var(--blue-de-france);
    font-weight: 600;
}

@media (max-width: 768px) {
    .process {
        padding: 60px 0;
    }
    
    .process-content {
        margin: 30px 0;
    }
    
    .process-timeline {
        max-width: 100%;
    }
    
    .process-timeframe {
        font-size: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 435px) {
    .process-timeframe {
        font-size: 14px;
    }
}

/* Solutions Section */
.solutions {
    background: white;
    padding: 80px 0;
}

.solutions-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

.accordion-container {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--platinum);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--blue-de-france);
}

.accordion-header {
    width: 100%;
    background: var(--seasalt);
    border: none;
    padding: 20px 30px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .accordion-header {
        padding: 18px 24px;
        min-height: 64px;
    }
}

.accordion-header:hover {
    background: var(--cultured);
}

.accordion-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--eerie-black);
}

.accordion-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--blue-de-france);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 30px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-study-card {
    background: var(--ghost-white);
    border: 1px solid var(--platinum);
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    border-color: var(--blue-de-france);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.1);
}

.case-study-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 10px;
}

.case-study-card p {
    font-size: 14px;
    color: var(--davys-grey);
    line-height: 1.6;
    margin: 0;
}

/* Pricing Section */
.pricing {
    background: var(--seasalt);
    padding: 80px 0;
}

.pricing-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-intro {
    max-width: 800px;
    margin: 0 auto 25px;
    text-align: center;
    color: var(--davys-grey);
    font-size: 16px;
    line-height: 1.8;
}

.pricing-subtitle {
    color: var(--davys-grey);
    margin-bottom: 30px;
    text-align: center;
}

.pricing-selector {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.service-dropdown {
    background: var(--blue-de-france);
    color: white;
    border: none;
    padding: 14px 40px 14px 20px;
    min-height: 48px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    min-width: 300px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    transition: background-color 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .service-dropdown {
        padding: 16px 40px 16px 20px;
        min-height: 52px;
        font-size: 17px;
    }
}

.service-dropdown:hover {
    background-color: #0a6bb8;
}

.service-dropdown:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

.service-dropdown option {
    background: #4a4a4a;
    color: white;
    padding: 12px;
    font-family: "Inter", sans-serif;
}

.service-dropdown option:first-child {
    background: var(--blue-de-france);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--platinum);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--blue-de-france);
    transform: scale(1.05);
}

.pricing-plan {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--outer-space);
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--eerie-black);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--platinum);
    color: var(--davys-grey);
}

.btn-pricing {
    background: var(--blue-de-france);
    color: white;
    border: none;
    padding: 14px 40px;
    min-height: 48px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
}

.btn-pricing:hover {
    background: #0a6bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.btn-pricing:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 133, 216, 0.2);
}

.btn-pricing:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .btn-pricing {
        padding: 16px 40px;
        min-height: 52px;
        font-size: 17px;
    }
}

/* Link Button - Styled like a text link but functions as a button */
.link-button {
    background: none;
    border: none;
    color: var(--blue-de-france);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    display: inline;
    transition: color 0.2s ease;
}

.link-button:hover {
    color: #0a6bb8;
    text-decoration: none;
}

.link-button:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
    border-radius: 2px;
}

.link-button:active {
    color: #085a94;
}

/* Warranty Section */
.warranty {
    background: white;
    padding: 80px 0;
}

.warranty-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.warranty-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .warranty {
        padding: 60px 0;
    }
    
    .warranty-content {
        margin-top: 30px;
    }
    
    .warranty-image {
        max-width: 100%;
        width: 90%;
    }
}

@media (max-width: 435px) {
    .warranty-image {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: var(--blue-de-france);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    padding: 6px 0;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.footer-column a:hover {
    opacity: 1;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .footer-column a {
        padding: 10px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

.form-heading {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Footer Contact Form - Horizontal Layout */
.footer-contact-form {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.footer-contact-form .form-field-message {
    grid-column: 1 / -1;
}

.footer-contact-form .form-submit-wrapper {
    grid-column: 1 / -1;
}

.form-field {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.required-indicator {
    color: var(--aerospace-orange);
    font-weight: 700;
}

.form-help-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 0;
    font-style: italic;
}

.form-submit-wrapper {
    margin-top: 12px;
    padding-top: 0;
}

.form-privacy-notice {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.form-privacy-notice a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.form-privacy-notice a:hover {
    color: white;
}

.form-noscript-notice {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

.form-noscript-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.form-noscript-notice a:hover {
    text-decoration: none;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px;
    margin-bottom: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input.valid,
.form-textarea.valid {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.05);
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: rgba(244, 67, 54, 0.6);
    background: rgba(244, 67, 54, 0.05);
}

.form-input:required:not(:focus):not(.valid),
.form-textarea:required:not(:focus):not(.valid) {
    background-image: linear-gradient(to right, rgba(255, 78, 0, 0.2) 0%, transparent 8px);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 3px 100%;
}

/* Show checkmark for valid fields */
.form-input.valid {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-textarea.valid {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px top 12px;
    background-size: 20px;
    padding-right: 45px;
}

/* Show error icon for invalid fields */
.form-input.invalid {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cline x1='15' y1='9' x2='9' y2='15'%3e%3c/line%3e%3cline x1='9' y1='9' x2='15' y2='15'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-textarea.invalid {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cline x1='15' y1='9' x2='9' y2='15'%3e%3c/line%3e%3cline x1='9' y1='9' x2='15' y2='15'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px top 12px;
    background-size: 20px;
    padding-right: 45px;
}

/* Field error messages */
.field-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 12px;
    display: none;
    padding-left: 4px;
    animation: slideDown 0.2s ease;
}

.field-error.show {
    display: block;
}

.field-error::before {
    content: "⚠ ";
}

/* Character counter */
.char-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: right;
    margin-top: 4px;
    margin-bottom: 12px;
    display: none;
}

.char-counter.show {
    display: block;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.error {
    color: #ff6b6b;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .form-input,
    .form-textarea {
        padding: 16px 18px;
        min-height: 52px;
        font-size: 17px;
    }
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Better autocomplete styling */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0 1000px rgba(13, 133, 216, 0.2) inset;
    box-shadow: 0 0 0 1000px rgba(13, 133, 216, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.5);
    transition: background-color 5000s ease-in-out 0s;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

/* Better textarea on mobile */
@media (max-width: 768px) {
    .form-textarea {
        min-height: 100px;
    }
}

.btn-submit {
    background: white;
    color: var(--blue-de-france);
    border: none;
    padding: 16px 40px;
    min-height: 52px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-submit .btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    background: var(--ghost-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

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

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.btn-submit:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled .btn-icon {
    display: none;
}

/* Touch-friendly for mobile */
@media (max-width: 768px) {
    .btn-submit {
        padding: 16px 40px;
        min-height: 52px;
        font-size: 17px;
    }
}

/* Honeypot field - hidden from real users but visible to bots */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Progressive enhancement - hide JS-only elements when JS is disabled */
.no-js .testimonial-carousel .testimonial-card:not(:first-child) {
    display: block;
    position: relative;
    opacity: 1;
    visibility: visible;
    margin-bottom: 20px;
}

.no-js .accordion-item .accordion-content {
    max-height: none;
    padding: 30px;
}

.no-js .hamburger {
    display: none;
}

.no-js .nav-menu {
    position: static;
    width: auto;
    height: auto;
}

/* Form feedback messages */
.form-message {
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #4caf50;
}

.form-message.error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #f44336;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 800px) {
    .nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .btn-contact {
        order: 2;
        padding: 8px 16px;
        font-size: 14px;
        margin-left: auto;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--ghost-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        order: 4;
        pointer-events: none;
    }
    
    .nav-menu.active {
        right: 0;
        pointer-events: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--platinum);
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 16px 10px;
        min-height: 48px;
    }
    
    .hero {
        background-image: none;
        background-color: var(--seasalt);
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-grid {
        max-width: 100%;
    }
}

@media (max-width: 435px) {
    .btn-contact {
        display: none;
    }
    
    .nav-wrapper {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    
    .hamburger {
        justify-self: end;
        margin-left: auto;
    }
    
    /* Extra small mobile refinements */
    .logo img {
        height: 32px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .about-title {
        font-size: 24px;
    }
    
    .about-description {
        font-size: 14px;
    }
    
    .about-features li {
        font-size: 14px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .testimonial-quote {
        font-size: 14px;
    }
    
    .testimonial-name {
        font-size: 14px;
    }
    
    .testimonial-title {
        font-size: 12px;
    }
    
    .pricing-title {
        font-size: 28px;
    }
    
    .pricing-card {
        padding: 25px 15px;
    }
    
    .pricing-price {
        font-size: 36px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 13px;
    }
    
    .accordion-title {
        font-size: 16px;
    }
    
    .accordion-header {
        padding: 12px 15px;
        min-height: 56px;
    }
    
    .case-study-card {
        padding: 15px;
    }
    
    .case-study-card h4 {
        font-size: 15px;
    }
    
    .case-study-card p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        gap: 20px;
    }
    
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section mobile */
    .about {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .about-description {
        font-size: 15px;
    }
    
    .about-features {
        font-size: 15px;
    }
    
    .about-features li {
        padding: 8px 0 8px 25px;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Accordion mobile */
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-title {
        font-size: 18px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 20px;
    }
    
    /* Testimonial mobile adjustments */
    .testimonial-carousel {
        min-height: 240px;
    }
    
    .testimonial-prev {
        left: 5px;
    }
    
    .testimonial-next {
        right: 5px;
    }
    
    .testimonial-nav {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-quote {
        font-size: 15px;
    }
    
    .testimonial-dots {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .testimonial-dot {
        width: 8px;
        height: 8px;
    }
    
    .testimonial-dot.active {
        width: 20px;
    }
    
    /* Pricing mobile */
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-title {
        font-size: 32px;
    }
    
    .pricing-intro {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .service-dropdown {
        min-width: 100%;
        max-width: 350px;
        font-size: 15px;
        padding: 12px 35px 12px 18px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Form mobile improvements */
    .footer-contact-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .footer-contact-form .form-field-message {
        grid-column: 1;
    }
    
    .footer-contact-form .form-submit-wrapper {
        grid-column: 1;
    }
    
    .form-heading {
        font-size: 20px;
    }
    
    .form-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-help-text {
        font-size: 11px;
    }
    
    .form-field {
        margin-bottom: 0;
    }
    
    .btn-submit {
        font-size: 16px;
    }
    
    /* Container padding adjustment */
    .container {
        padding: 0 15px;
    }
    
    /* Ensure all clickable elements have adequate spacing on mobile */
    button,
    a,
    input,
    select,
    textarea {
        margin: 4px 0;
    }
}

/* Privacy Policy Page Styles */
.privacy-policy {
    background: var(--ghost-white);
    padding: 60px 0 80px;
    min-height: calc(100vh - 400px);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--eerie-black);
    margin-bottom: 15px;
}

.privacy-updated {
    color: var(--outer-space);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--platinum);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 20px;
    margin-top: 35px;
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--davys-grey);
    margin-bottom: 15px;
    margin-top: 25px;
}

.privacy-section p {
    color: var(--davys-grey);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.privacy-section ul {
    margin: 15px 0 20px 0;
    padding-left: 25px;
}

.privacy-section li {
    color: var(--davys-grey);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 16px;
}

.privacy-section a {
    color: var(--blue-de-france);
    text-decoration: underline;
}

.privacy-section a:hover {
    color: #0a6bb8;
}

.privacy-footer-note {
    font-style: italic;
    background: var(--seasalt);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--blue-de-france);
    margin-top: 30px;
}

.privacy-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--platinum);
    text-align: center;
}

/* Footer column description */
.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-cta-btn {
    margin-top: 15px;
}

/* Responsive privacy policy */
@media (max-width: 768px) {
    .privacy-content {
        padding: 40px 30px;
    }

    .privacy-content h1 {
        font-size: 32px;
    }

    .privacy-section h2 {
        font-size: 24px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 435px) {
    .privacy-content {
        padding: 30px 20px;
    }

    .privacy-content h1 {
        font-size: 28px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 50px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .nav-menu.active {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .testimonial-carousel {
        min-height: 180px;
    }
}

/* Prevent text size adjustment on orientation change */
@media screen and (orientation: landscape) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Global touch optimizations for all devices */
@media (hover: none) and (pointer: coarse) {
    /* Enhanced touch targets for touch-only devices */
    button,
    a:not(.skip-link),
    .service-link,
    .nav-menu a,
    .footer-column a {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* Disable hover effects on touch devices */
    .btn-cta:hover,
    .btn-contact:hover,
    .btn-pricing:hover,
    .btn-submit:hover {
        transform: none;
    }
    
    /* Enhance active/pressed states for touch feedback */
    .btn-cta:active,
    .btn-contact:active,
    .btn-pricing:active,
    .btn-submit:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Improve tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(13, 133, 216, 0.1);
    }
}

/* High DPI (Retina) display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper images and icons on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Contact Form Modal */
#contact-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

#contact-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.contact-modal-header {
    background: var(--blue-de-france);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.contact-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    transform-origin: center center;
    position: relative;
    flex-shrink: 0;
}

.contact-modal-close::before {
    content: '×';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    font-weight: 300;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.contact-modal-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.contact-modal-body {
    padding: 25px 30px;
}

.contact-modal-intro {
    color: var(--davys-grey);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

/* Modal Form Styles */
.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-modal-form .form-field {
    margin-bottom: 0;
}

.contact-modal-form .form-label {
    color: var(--eerie-black);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid var(--platinum);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    min-height: 40px;
}

.checkbox-label:hover {
    border-color: var(--blue-de-france);
    background: var(--seasalt);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--blue-de-france);
    flex-shrink: 0;
}

.checkbox-label:has(input:checked) {
    border-color: var(--blue-de-france);
    background: rgba(13, 133, 216, 0.05);
}

.checkbox-text {
    font-size: 14px;
    color: var(--eerie-black);
    font-weight: 500;
    line-height: 1.3;
}

/* Radio Button Group */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid var(--platinum);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    min-height: 40px;
}

.radio-label:hover {
    border-color: var(--blue-de-france);
    background: var(--seasalt);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--blue-de-france);
    flex-shrink: 0;
}

.radio-label:has(input:checked) {
    border-color: var(--blue-de-france);
    background: rgba(13, 133, 216, 0.05);
    box-shadow: 0 0 0 1px var(--blue-de-france);
}

.radio-text {
    font-size: 14px;
    color: var(--eerie-black);
    font-weight: 600;
}

.plan-price {
    color: var(--outer-space);
    font-weight: 400;
    font-size: 12px;
    display: block;
}

.modal-form-input,
.modal-form-textarea {
    width: 100%;
    padding: 10px 14px;
    min-height: 42px;
    border: 2px solid var(--platinum);
    background: white;
    color: var(--eerie-black);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-form-input:focus,
.modal-form-textarea:focus {
    outline: none;
    border-color: var(--blue-de-france);
    box-shadow: 0 0 0 3px rgba(13, 133, 216, 0.1);
}

.modal-form-input::placeholder,
.modal-form-textarea::placeholder {
    color: var(--outer-space);
}

.modal-form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.modal-btn-submit {
    background: var(--blue-de-france);
    color: white;
    border: none;
    padding: 12px 32px;
    min-height: 44px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
}

.modal-btn-submit .btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.modal-btn-submit:hover {
    background: #0a6bb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 133, 216, 0.3);
}

.modal-btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.modal-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 133, 216, 0.2);
}

.modal-btn-submit:focus {
    outline: 2px solid var(--blue-de-france);
    outline-offset: 2px;
}

.contact-modal-form .form-privacy-notice {
    color: var(--davys-grey);
    font-size: 10px;
    text-align: center;
    margin-top: 8px;
}

.contact-modal-form .form-privacy-notice a {
    color: var(--blue-de-france);
    text-decoration: underline;
}

.contact-modal-form .form-privacy-notice a:hover {
    color: #0a6bb8;
}

/* Modal Responsive */
@media (max-width: 768px) {
    #contact-modal {
        max-width: 95%;
        width: 95%;
    }

    .contact-modal-header {
        padding: 18px 25px;
    }

    .contact-modal-header h2 {
        font-size: 20px;
    }

    .contact-modal-body {
        padding: 20px;
    }

    .contact-modal-intro {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .modal-form-input,
    .modal-form-textarea {
        padding: 12px 14px;
        min-height: 44px;
        font-size: 16px;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .checkbox-label {
        padding: 10px 12px;
        min-height: 44px;
    }

    .checkbox-text {
        font-size: 13px;
    }

    .radio-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .radio-label {
        padding: 10px 14px;
        min-height: 44px;
    }

    .radio-text {
        font-size: 14px;
    }

    .plan-price {
        font-size: 12px;
    }
}

@media (max-width: 435px) {
    .contact-modal-header {
        padding: 16px 18px;
    }

    .contact-modal-header h2 {
        font-size: 18px;
    }

    .contact-modal-body {
        padding: 18px;
    }

    .contact-modal-intro {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .contact-modal-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

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

    .checkbox-label {
        padding: 10px 12px;
    }

    .checkbox-text {
        font-size: 13px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-label {
        padding: 10px 12px;
    }

    .radio-text {
        font-size: 13px;
    }
}

