/* Color contrast verified: WCAG 2.1 AA compliant (2026-02-01) */

/* ============ CUSTOM PROPERTIES ============ */

:root {
    /* Brand colors */
    --color-primary: #00415d;
    --color-secondary: #027d5e;
    --color-accent: #fbb040;

    /* Semantic colors */
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-border: #e0e0e0;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Typography */
    --font-family: system-ui, sans-serif;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
}

/* ============ BASE STYLES ============ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background: var(--color-background);
}

/* ============ TYPOGRAPHY ============ */

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: var(--line-height-tight);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: var(--line-height-tight);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: var(--line-height-tight);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
}

/* ============ LAYOUT ============ */

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

section {
    padding: var(--space-xl) 0;
}

/* ============ LINK STYLES ============ */

a {
    color: var(--color-secondary);
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--color-primary);
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============ UTILITIES ============ */

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

/* ============ SKIP LINK ============ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============ HEADER ============ */

header {
    background: var(--color-background);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    height: 80px;
    width: auto;
}

@media (min-width: 768px) {
    .logo {
        height: 100px;
    }
}

/* ============ HERO ============ */

#hero {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
}

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

#hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--space-sm);
    opacity: 0.95;
}

.hero-location {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #hero {
        padding: var(--space-xl) var(--space-lg);
        text-align: left;
    }
}

/* ============================================
   SERVICES
   ============================================ */
#services {
    background-color: var(--color-background);
}

#services h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

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

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

.service-card h3 {
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ============================================
   PRODUCT
   ============================================ */
#product {
    background-color: #f8f9fa;
}

#product h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.product-feature {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.product-content h3 {
    color: var(--color-secondary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: var(--space-sm);
}

.product-content p {
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #e9a038;
    color: var(--color-primary);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.contact-intro {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.contact-email {
    display: inline-block;
    color: var(--color-accent);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    padding: 0.5rem 0;
    min-height: 44px;
}

.contact-email:hover,
.contact-email:focus {
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--color-text);
    color: white;
    padding: var(--space-md) 0;
    text-align: center;
}

footer p {
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

footer a {
    color: var(--color-accent);
    display: inline-block;
    padding: 0.5rem;
    min-height: 44px;
}

footer a:hover,
footer a:focus {
    color: white;
}

/* ============ REDUCED MOTION ============ */

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