/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* CSS Custom Properties - Brand Colors */
:root {
  /* Brand Colors */
  --color-blauer-blue: #2C5F8D;
  --color-dark-navy: #1A3A52;
  --color-teal-accent: #5B9BD5;
  
  /* Neutrals */
  --color-slate-gray: #54636E;
  --color-soft-cream: #F5F1E8;
  --color-warm-neutral: #8B7355;
  --color-accent-sage: #8B9D83;
  
  /* Semantic Colors */
  --color-primary: var(--color-blauer-blue);
  --color-primary-dark: var(--color-dark-navy);
  --color-accent: var(--color-teal-accent);
  --color-text: var(--color-slate-gray);
  --color-background: #FFFFFF;
  --color-background-alt: var(--color-soft-cream);
  --color-success: var(--color-accent-sage);
  
  /* Font Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Weights */
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1.125rem;  /* 18px - minimum body text */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 3rem;       /* 48px */
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base); /* 18px minimum */
    line-height: var(--leading-relaxed); /* 1.7 */
    color: var(--color-text);
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--leading-tight); /* 1.2 */
    color: var(--color-blauer-blue);
    font-weight: var(--weight-semibold);
}

h1 {
    font-size: var(--text-4xl); /* 48px */
    font-weight: var(--weight-bold); /* 700 */
}

h2 {
    font-size: var(--text-3xl); /* 36px */
    font-weight: var(--weight-semibold); /* 600 */
}

h3 {
    font-size: var(--text-2xl); /* 30px */
    font-weight: var(--weight-semibold); /* 600 */
}

h4 {
    font-size: var(--text-xl); /* 24px */
    font-weight: var(--weight-semibold); /* 600 */
}

/* Header and Navigation */
header {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(44, 95, 141, 0.1);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--color-blauer-blue);
    letter-spacing: 0.5px;
}

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

.logo-img {
    height: 3rem; /* 48px - Mobile */
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-img {
        height: 4rem; /* 64px - Tablet+ */
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 1rem; /* 16px */
    font-weight: var(--weight-regular);
    color: var(--color-slate-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-blauer-blue);
}

.nav-menu a.active {
    color: var(--color-blauer-blue);
    font-weight: var(--weight-semibold);
}

/* Underline animation on hover */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--color-teal-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-blauer-blue) 0%, var(--color-dark-navy) 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 2rem;
    }
}

.hero h1 {
    font-size: var(--text-3xl); /* 36px mobile */
    margin-bottom: 1rem;
    color: #fff;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: var(--text-4xl); /* 48px */
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem; /* 72px */
    }
}

.hero .tagline {
    font-size: var(--text-xl); /* 24px */
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: var(--weight-semibold);
}

.hero p {
    font-size: var(--text-lg); /* 20px */
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

/* Primary CTA Button */
.cta-button,
.btn-primary {
    display: inline-block;
    background-color: var(--color-blauer-blue);
    color: white;
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base); /* 18px */
    padding: 0.875rem 2rem; /* 14px 32px */
    border-radius: 0.5rem; /* 8px */
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover,
.btn-primary:hover {
    background-color: var(--color-teal-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(44, 95, 141, 0.2);
}

.cta-button:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--color-blauer-blue);
    border: 2px solid var(--color-blauer-blue);
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--color-soft-cream);
    border-color: var(--color-teal-accent);
    color: var(--color-teal-accent);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-white {
    background-color: white;
    padding: 4rem 0;
}

.section-cream {
    background-color: var(--color-soft-cream);
    padding: 4rem 0;
}

.section-navy {
    background-color: var(--color-dark-navy);
    color: white;
    padding: 4rem 0;
}

.section-navy h2,
.section-navy h3 {
    color: white;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .section-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.content-container {
    max-width: 75ch; /* 75 characters maximum for readability */
}

section h2 {
    font-size: var(--text-3xl); /* 36px */
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-blauer-blue);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

/* Card Component */
.service-card,
.card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem; /* 12px */
    padding: 2rem; /* 32px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover,
.card:hover {
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.15);
    border-color: var(--color-teal-accent);
    transform: translateY(-2px);
}

.service-card h3,
.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl); /* 24px */
    font-weight: var(--weight-semibold);
    color: var(--color-blauer-blue);
    margin-bottom: 1rem;
}

.service-card p,
.card-content {
    font-family: var(--font-body);
    font-size: var(--text-base); /* 18px */
    line-height: var(--leading-relaxed); /* 1.7 */
    color: var(--color-slate-gray);
}

/* Contact Form */
#contact {
    background-color: var(--color-soft-cream);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 1rem; /* 16px */
    font-weight: var(--weight-semibold);
    color: var(--color-slate-gray);
    margin-bottom: 0.5rem;
    display: block;
}

#contact-form input,
#contact-form textarea,
.form-input {
    font-family: var(--font-body);
    font-size: var(--text-base); /* 18px */
    padding: 0.875rem 1rem; /* 14px 16px */
    border: 2px solid #D1D5DB;
    border-radius: 0.5rem; /* 8px */
    background: white;
    color: var(--color-slate-gray);
    transition: all 0.2s ease;
    width: 100%;
}

#contact-form input:focus,
#contact-form textarea:focus,
.form-input:focus {
    outline: none;
    border-color: var(--color-blauer-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 0.875rem 2rem;
    background-color: var(--color-blauer-blue);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

#contact-form button:hover {
    background-color: var(--color-teal-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(44, 95, 141, 0.2);
}

/* Footer */
footer {
    background-color: var(--color-dark-navy);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
}

/* Accessibility - Focus States */
*:focus-visible {
    outline: 3px solid var(--color-teal-accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

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

/* Responsive Design */
@media (max-width: 767px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: var(--text-3xl); /* 36px */
    }
    
    .hero p,
    .hero .tagline {
        font-size: var(--text-base); /* 18px */
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 2.5rem; /* 40px on mobile */
    }
}

@media (min-width: 768px) {
    .logo img {
        height: 4rem; /* 64px - Tablet+ */
    }
}
