/*
Theme Name: Midwest Event Services
Description: A professional WordPress theme for endurance race timing and management company featuring grey color scheme and Garamond typography
Author: Midwest Event Services
Version: 1.0
Text Domain: midwest
*/

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Global Font and Base Styles */
* {
    font-family: 'EB Garamond', 'Times New Roman', serif !important;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', 'Times New Roman', serif !important;
    color: #333333 !important;
    background-color: #f8f8f8 !important;
    line-height: 1.6 !important;
    font-size: 18px !important;
    margin: 0;
    padding: 0;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'EB Garamond', 'Times New Roman', serif !important;
    color: #2c2c2c !important;
    font-weight: 600 !important;
}

h1 { font-size: 2.5rem !important; color: #1a1a1a !important; }
h2 { font-size: 2.1rem !important; color: #262626 !important; }
h3 { font-size: 1.8rem !important; color: #333333 !important; }

/* Links */
a {
    color: #4a4a4a !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: #666666 !important;
    text-decoration: none !important;
}

/* Header and Navigation */
.site-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0;
}

.site-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.site-description {
    color: #cccccc !important;
    font-style: italic !important;
    margin: 0;
}

/* Navigation Menu */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #e0e0e0 !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border-radius: 4px;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.85) 0%, rgba(74, 74, 74, 0.85) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="heroGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23555;stop-opacity:1" /><stop offset="50%" style="stop-color:%23777;stop-opacity:1" /><stop offset="100%" style="stop-color:%23666;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23heroGrad)" width="1200" height="600"/><g><path d="M0,400 C200,350 400,450 600,400 C800,350 1000,450 1200,400 L1200,600 L0,600 Z" fill="%23888" opacity="0.6"/><path d="M0,450 C300,400 600,500 900,450 C1050,425 1125,475 1200,450 L1200,600 L0,600 Z" fill="%23999" opacity="0.4"/></g><g fill="%23aaa" opacity="0.7"><circle cx="150" cy="200" r="3"/><circle cx="300" cy="150" r="2"/><circle cx="450" cy="250" r="4"/><circle cx="600" cy="180" r="3"/><circle cx="750" cy="220" r="2"/><circle cx="900" cy="160" r="3"/><circle cx="1050" cy="240" r="4"/><circle cx="200" cy="320" r="2"/><circle cx="400" cy="280" r="3"/><circle cx="650" cy="340" r="2"/><circle cx="850" cy="300" r="3"/><circle cx="1000" cy="360" r="2"/></g><g stroke="%23bbb" stroke-width="1" fill="none" opacity="0.8"><path d="M0,250 Q300,200 600,250 T1200,230"/><path d="M0,300 Q400,250 800,300 T1200,280"/><path d="M0,180 Q200,150 400,180 T800,160 Q1000,140 1200,160"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.1) 0%, transparent 70%),
                radial-gradient(ellipse at bottom right, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white !important;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: #555;
    color: white !important;
    padding: 1rem 2rem;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #777;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white !important;
}

/* Stats Section */
.stats {
    background-color: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 4px solid #666;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c2c2c;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Content Areas */
.site-content {
    background-color: #ffffff !important;
    padding: 2rem !important;
    margin: 1rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

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

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #666;
}

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

.service-card h3 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Post/Article Styling */
.post, .article, .entry {
    background-color: #ffffff !important;
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-left: 4px solid #666666 !important;
}

.entry-title, .post-title {
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 0.5rem !important;
}

.entry-meta, .post-meta {
    color: #777777 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    font-style: italic !important;
}

.entry-content, .post-content {
    color: #333333 !important;
    line-height: 1.7 !important;
}

/* Sidebar */
.sidebar {
    background-color: #f5f5f5 !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
}

.widget {
    background-color: #ffffff !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08) !important;
    border-top: 3px solid #888888 !important;
}

.widget-title {
    color: #2c2c2c !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    border-bottom: 1px solid #eeeeee !important;
    padding: 0.5rem 0 !important;
}

.widget ul li:last-child {
    border-bottom: none !important;
}

/* Buttons */
.btn, .button, input[type="submit"], button {
    background-color: #555555 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-family: 'EB Garamond', serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block;
}

.btn:hover, .button:hover, input[type="submit"]:hover, button:hover {
    background-color: #777777 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
    border: 2px solid #dddddd !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-family: 'EB Garamond', serif !important;
    transition: border-color 0.3s ease !important;
    width: 100%;
    margin-bottom: 1rem;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
    border-color: #888888 !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(136, 136, 136, 0.3) !important;
}

/* Footer */
.site-footer {
    background-color: #2c2c2c !important;
    color: #cccccc !important;
    padding: 2rem 0 !important;
    margin-top: 3rem !important;
    border-top: 3px solid #4a4a4a !important;
}

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

.footer-section h3 {
    color: white !important;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section li {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Technology Section */
.technology {
    padding: 4rem 0;
    background-color: #f5f5f5;
    text-align: center;
}

.tech-highlight {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.tech-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white !important;
}

.tech-highlight p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white !important;
}

.tech-highlight a {
    color: white !important;
    text-decoration: underline !important;
}

.tech-highlight a:hover {
    color: #e0e0e0 !important;
    text-decoration: none !important;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.about-highlights {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #666;
}

.about-highlights h3 {
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.about-highlights ul {
    list-style: none;
    padding: 0;
}

.about-highlights li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.about-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

/* Two Column Layout */
.content-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Pagination */
.pagination {
    text-align: center !important;
    margin: 2rem 0 !important;
}

.pagination a, .pagination span {
    display: inline-block !important;
    padding: 8px 12px !important;
    margin: 0 4px !important;
    background-color: #f5f5f5 !important;
    color: #555555 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.pagination a:hover {
    background-color: #666666 !important;
    color: #ffffff !important;
}

.pagination .current {
    background-color: #555555 !important;
    color: #ffffff !important;
}

#contact .footer-section h3 {
    color: #2c2c2c !important;  /* Dark grey for headings */
}

#contact .footer-section a,
#contact .footer-section p, 
#contact .footer-section li {
    color: #555 !important;  /* Medium grey for text - matches "Our Specialties" */
}

/* Comments */
.comments-area {
    background-color: #f9f9f9 !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin-top: 2rem !important;
}

.comment {
    background-color: #ffffff !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 6px !important;
    border-left: 3px solid #cccccc !important;
}

.comment-author {
    color: #444444 !important;
    font-weight: 600 !important;
}

.comment-meta {
    color: #777777 !important;
    font-size: 0.9rem !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .site-content {
        margin: 0.5rem !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px !important; }
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .about-content { grid-template-columns: 1fr; }
    .content-sidebar { grid-template-columns: 1fr; }
    .main-navigation ul { flex-direction: column; gap: 1rem; }
    .header-content { text-align: center; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.7rem !important; }
    h3 { font-size: 1.5rem !important; }
    .site-content { margin: 0 !important; padding: 1rem !important; border-radius: 0 !important; }
    .post, .article, .entry { padding: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .sidebar { margin-top: 2rem !important; padding: 1rem !important; }
    .widget { padding: 1rem !important; }
    .main-navigation a { padding: 10px 12px !important; font-size: 0.9rem !important; }
}

@media (max-width: 480px) {
    body { font-size: 15px !important; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    .site-title { font-size: 1.5rem !important; }
    .post, .article, .entry { padding: 1rem !important; }
    .btn, .button, input[type="submit"], button { padding: 10px 16px !important; font-size: 0.9rem !important; }
    .pagination a, .pagination span { padding: 6px 10px !important; font-size: 0.9rem !important; }
}

/* Print Styles */
@media print {
    body { background-color: #ffffff !important; color: #000000 !important; }
    .site-header, .main-navigation, .sidebar, .site-footer, .comments-area { display: none !important; }
}

