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

:root {
    /* Color palette based on logo color #30477f */
    --primary-blue: #30477f;        /* Base logo color - deep ocean blue */
    --dark-blue: #30477f;           /* Same as logo - unified color for headers */
    --light-blue: #5a73b8;          /* Lighter tint for hover states */
    --accent-teal: #2d9896;         /* Complementary teal-cyan accent */
    --coral-accent: #e07856;        /* Warm coral complement for CTAs */
    --bg-light: #f5f7fa;            /* Subtle blue-gray background */
    --bg-white: #ffffff;            /* Pure white for cards */
    --text-dark: #30477f;           /* Logo blue for body text */
    --text-light: #5a6c8f;          /* Muted blue-gray for secondary text */
    --border-color: #d4dce8;        /* Soft blue-gray borders */
    --section-alt: #e8eef6;         /* Light blue-tinted sections */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-main: Verdana, Geneva, Tahoma, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

html {
    /* Offset anchor scroll position to account for sticky header */
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

/* ===========================
   Skip Navigation Link
   =========================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

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

/* ===========================
   Focus Styles for Keyboard Navigation
   =========================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Header & Navigation
   =========================== */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item a:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;  /* Increased from 0.5rem to ensure 44x44px minimum touch target */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #1e2d52;
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
    background-color: var(--section-alt);
}

section h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-md);
}

section p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

section ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* ===========================
   Content with Image Layouts
   =========================== */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.content-with-image.reverse .text-content {
    order: 2;
}

.content-with-image.reverse .image-content {
    order: 1;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-content ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.text-content li {
    margin-bottom: var(--spacing-xs);
}

.note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

.wholesale-notice {
    font-size: 1rem;
    color: var(--accent-teal);
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

.wholesale-notice a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Contact Page Header
   =========================== */
.category-header {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.category-header p {
    color: #1e2d52;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

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

.btn-submit {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

/* ===========================
   Stock List Section & Button
   =========================== */

.btn-stock {
    background-color: var(--coral-accent);
    color: var(--bg-white) !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-stock:hover {
    background-color: #c05f42;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .logo img {
        height: 50px;  /* Reduce logo size on tablets/mobile to prevent hamburger menu cutoff */
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item a {
        display: block;
        width: 100%;
        padding: 1rem;  /* Increased from 0.5rem 1rem to meet 44x44px touch target minimum */
    }
    
    .content-with-image,
    .content-with-image.reverse {
        grid-template-columns: 1fr;
    }
    
    .content-with-image.reverse .text-content,
    .content-with-image.reverse .image-content {
        order: initial;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Utility Classes for Content Layout */
.content-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.content-medium {
    max-width: 900px;
    margin: 0 auto;
}

.card-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-box h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.card-box p {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-box {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.info-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.info-list li {
    margin-bottom: 0.5rem;
}

.text-spacing {
    margin-bottom: 2rem;
}

.btn-link {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 2rem;
}

/* Form Error Messages */
.form-error {
    background-color: #fef2f0;
    border: 1px solid #d65d44;
    color: #b94332;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-error.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.form-success {
    background-color: #eef9f8;
    border: 1px solid #2d9896;
    color: #1f6765;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-success.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Select Dropdown Styling */
.form-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

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

.faq-item h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    line-height: 1.7;
    color: var(--text-dark);
}

/* Process and Coral Types Sections */
.process-section h3,
.coral-types-section h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .logo img {
        height: 40px;  /* Further reduce logo on small phones to ensure hamburger menu visibility */
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Honeypot Anti-Spam Field - Must be completely hidden from human users */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}
