/* CSS Variables */
:root {
    --trust-blue: #007BFF;
    --fresh-green: #28A745;
    --bold-orange: #FF7A00;
    --accent: var(--fresh-green);
    --light-gray: #F4F6F8;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Typography */
h1 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}

h2 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    line-height: 1.3; 
    margin-bottom: 1rem; 
}

h3 { 
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    line-height: 1.4; 
    margin-bottom: 0.75rem; 
}

p { 
    margin-bottom: 1rem; 
    color: var(--text-light); 
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--trust-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
}

/* Hide text on small screens if logo is wide */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .logo-img {
        max-width: 120px;
        height: 35px;
    }
}

/* Contact section wider container */
#contact .container {
    max-width: 1400px; /* Wider than default 1200px */
}

.contact-form {
    max-width: 1300px; /* Increased from 1200px */
    margin: 0 auto;
}

/* Google Form iframe styling */
.google-form-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--white);
    margin-bottom: 2rem;
}

.google-form {
    width: 100%;
    border: none;
    display: block;
    border-radius: var(--radius);
}

.form-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--text-light);
    background: var(--light-gray);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--trust-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.form-loading p {
    font-size: 1.1rem;
    margin: 0;
}

.contact-alternative {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.contact-alternative p {
    margin: 0;
    color: var(--text-light);
}

.contact-alternative a {
    color: var(--trust-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-alternative a:hover {
    text-decoration: underline;
}

/* Responsive iframe adjustments */
@media (max-width: 768px) {
    .google-form {
        height: 1100px;
    }
    
    .form-loading {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .google-form {
        height: 1000px;
    }
    
    .form-loading {
        height: 200px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
}

/* About section two-column layout */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-logo-section {
    flex: 0 0 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-large {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.about-text-section {
    flex: 0 0 600px;
    text-align: left;
}

.about-text-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-location {
    font-size: 1rem;
    color: var(--fresh-green);
    font-weight: 500;
    margin-bottom: 1rem;
    font-style: italic;
}

.about-tagline {
    color: var(--trust-blue);
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.3rem;
}

/* Responsive adjustments for about section */
@media (max-width: 968px) {
    .about-content {
        gap: 2rem;
    }
    
    .about-logo-section {
        flex: 0 0 500px;
    }
    
    .about-text-section {
        flex: 0 0 500px;
    }
    
    .about-logo-large {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-logo-section {
        flex: none;
    }
    
    .about-logo-large {
        max-height: 360px;
        max-width: 560px;
    }
    
    .about-text-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-logo-large {
        max-height: 300px;
        max-width: 440px;
    }
    
    .about-text-section p {
        font-size: 1rem;
    }
    
    .about-tagline {
        font-size: 1.1rem;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--trust-blue);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
}

.btn-secondary:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
}

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

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

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

/* Button Loading State */
.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Sections */
section {
    padding: 60px 0;
}

.section-gray {
    background: var(--light-gray);
}

/* Hero */
#hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.grid-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.grid-item:hover {
    border-color: var(--trust-blue);
    transform: scale(1.05);
}

/* Steps */
.steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

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

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--trust-blue);
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--light-gray);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check { 
    color: var(--accent); 
    font-size: 1.2rem; 
    font-weight: bold; 
}

.times { 
    color: #dc3545; 
    font-size: 1.2rem; 
    font-weight: bold; 
}

/* CTA Banner */
.cta-banner {
    background: var(--trust-blue);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-banner h2 {
    color: var(--white);
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    margin: 1rem 0 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
    border-color: #dc3545;
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus) {
    border-color: var(--fresh-green);
}

/* Form Validation */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.field-error::before {
    content: '⚠';
    margin-right: 0.25rem;
}

/* Form Status Messages */
#form-status {
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

#success-message,
#error-message {
    border-radius: var(--radius);
    padding: 1rem;
    border-width: 1px;
    border-style: solid;
}

#success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

#error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification-success {
    background: var(--fresh-green);
    color: white;
}

.notification-error {
    background: #dc3545;
    color: white;
}

.notification-info {
    background: var(--trust-blue);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }

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

    .mobile-menu {
        display: block;
    }

    .steps {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .cta-banner {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    #hero {
        padding: 60px 0;
    }

    section {
        padding: 40px 0;
    }

    .card {
        padding: 1.5rem;
    }

    .cta-banner {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* Focus Visible for Better Accessibility */
*:focus-visible {
    outline: 2px solid var(--trust-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --border: #000000;
    }
    
    .card {
        border: 1px solid var(--border);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}