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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F9FAFB; /* neutral */
}

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

a {
    color: #0077FF; /* secondary */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #1D2D50; /* primary */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
}

section {
    padding: 60px 0;
}

/* === Utility Classes === */
.cta-button {
    display: inline-block;
    background-color: #0077FF; /* secondary */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.cta-button:hover {
    background-color: #005ecc; /* Darker secondary */
    text-decoration: none;
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: #1D2D50; /* primary */
    padding: 11px 24px; /* Adjust padding for border */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #1D2D50; /* primary */
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.cta-button-outline:hover {
    background-color: #1D2D50; /* primary */
    color: #fff;
    text-decoration: none;
}


/* === Header === */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
header .logo {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

/* Menu Desktop */
header .nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header .nav-menu li {
    margin-left: 25px;
}

header .nav-menu li a {
    color: #1D2D50;
    font-weight: 500;
    transition: color 0.3s ease;
}

header .nav-menu li a:hover {
    color: #0077FF;
    text-decoration: none;
}

/* CTA Button */
.nav-cta {
    padding: 8px 18px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1D2D50;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    color: #1D2D50;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: #0077FF;
    text-decoration: none;
}

.mobile-menu .mobile-cta {
    margin-top: 10px;
    text-align: center;
    border: none;
    padding: 12px 25px;
}

/* === Hero Section === */
.hero-section {
    background-color: #1D2D50; /* primary */
    color: #F9FAFB; /* neutral */
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 {
    color: #F9FAFB; /* neutral */
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #DCE3EA; /* lightGrey */
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.hero-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* === Benefits Section === */
.benefits-section {
    background-color: #F9FAFB; /* neutral */
}

.benefit-items {
    display: grid; /* Use grid for better alignment */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 30px;
    text-align: center;
}

.benefit-item {
    padding: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    /* Placeholder - replace with actual image styling */
    background-color: #DCE3EA; /* lightGrey for placeholder */
    border-radius: 8px;
}

/* === Features Section === */
.features-section {
    background-color: #fff;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px; /* Increased spacing */
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 48%;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/10;
}

.feature-text {
    flex: 1;
}

/* === Pricing Section === */
.pricing-section {
    background-color: #1D2D50; /* primary */
    color: #F9FAFB; /* neutral */
}

.pricing-section h2 {
    color: #F9FAFB; /* neutral */
}

.pricing-subtitle {
    text-align: center;
    color: #DCE3EA; /* lightGrey */
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    align-items: stretch; /* Make cards same height */
    justify-content: center;
}

.pricing-option {
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #DCE3EA; /* lightGrey border */
    position: relative; /* For badge positioning */
    overflow: hidden; /* Hide badge overflow */
}

.pricing-option h3 {
    color: #1D2D50; /* primary */
    margin-bottom: 0.5rem;
}

.pricing-option .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1D2D50; /* primary */
    margin-bottom: 0.5rem; /* Reduced margin */
}

.pricing-option .price .period {
    font-size: 1rem;
    font-weight: normal;
    color: #555;
}

.pricing-option .savings {
    color: #4ADE80; /* detail */
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-option ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1; /* Pushes button down */
    padding-left: 10px; /* Indent list slightly */
}

.pricing-option ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start; /* Align checkmark with first line */
}

.pricing-option ul li .check {
    color: #4ADE80; /* detail */
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
    line-height: 1.4; /* Adjust line height for check */
}

.pricing-option .note {
    font-style: italic;
    color: #777;
    margin-top: 1rem; /* Space above note */
    font-size: 0.9rem;
}

.pricing-option .cta-button,
.pricing-option .cta-button-outline {
    margin-top: auto; /* Ensure button is at the bottom */
    width: 100%;
}

/* Recommended Plan Styling */
.pricing-option.recommended {
    border: 2px solid #4ADE80; /* detail */
    transform: scale(1.03); /* Slightly larger */
    z-index: 10;
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #4ADE80; /* detail */
    color: #1D2D50; /* primary */
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

/* === Contact Section === */
.contact-section {
    background-color: #F9FAFB; /* neutral */
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1D2D50; /* primary */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DCE3EA; /* lightGrey */
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0077FF;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

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

.contact-section .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-section .cta-button:hover {
    background-color: #005ecc;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

#form-status.sending {
    color: #f39c12;
}

#form-status.success {
    color: #2ecc71;
}

#form-status.error {
    color: #e74c3c;
}

/* === Footer === */
footer {
    background-color: #1D2D50; /* primary */
    color: #DCE3EA; /* lightGrey */
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .feature-item img {
        max-width: 70%;
        margin-bottom: 20px;
    }
    
    .pricing-options {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }

    /* Header mobile */
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    header .logo {
        height: 45px;
    }

    /* Hero section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }

    /* Benefits section */
    .benefit-items {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .benefit-item {
        padding: 25px 15px;
    }

    /* Features section */
    .feature-item {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .feature-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
        object-position: center;
    }

    /* Pricing section */
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-option {
        margin: 0;
    }

    .pricing-option.recommended {
        transform: scale(1);
    }
    
    /* Contact section */
    .contact-section form {
        padding: 25px;
        margin: 0 15px;
    }
    
    /* Sections padding */
    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .cta-button,
    .cta-button-outline {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
    }
    
    .hero-cta {
        padding: 18px 25px;
        font-size: 1.1rem;
    }
    
    /* Benefits */
    .benefit-item {
        padding: 20px 10px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Features */
    .feature-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
        object-position: center;
    }
    
    /* Pricing */
    .pricing-option {
        padding: 25px 20px;
    }
    
    .pricing-option .price {
        font-size: 2.2rem;
    }
    
    /* Contact form */
    .contact-section form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Header */
    header .logo {
        height: 40px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
}

/* === Touch and Hover Improvements === */
@media (hover: hover) {
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
    }
    
    .benefit-item:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
    
    .pricing-option:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
}

/* === Focus States for Accessibility === */
.cta-button:focus,
.cta-button-outline:focus,
.hamburger:focus {
    outline: 2px solid #0077FF;
    outline-offset: 2px;
}

/* === Loading States === */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0077FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}