/*
Theme Name: City of Parshall
Theme URI: https://parshallnd.com
Description: Official website theme for the City of Parshall, North Dakota - Gateway to Lake Sakakawea
Version: 1.0
Author: Onsharp
Author URI: https://onsharp.com
Text Domain: parshall
*/

:root {
    --primary: #1a5276;
    --primary-dark: #0e3651;
    --primary-light: #2980b9;
    --accent: #d4a843;
    --accent-dark: #b8922e;
    --accent-light: #f0d478;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-warm: #fdf8f0;
    --border: #dee2e6;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

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

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent-light); }
.top-bar-contact { display: flex; gap: 20px; align-items: center; }

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { height: 50px; width: auto; }
.site-logo-text h1 { font-size: 22px; color: var(--primary); margin: 0; line-height: 1.1; }
.site-logo-text .tagline { font-size: 12px; color: var(--text-light); font-style: italic; font-family: 'Inter', sans-serif; font-weight: 400; }

/* Navigation */
.main-nav ul { list-style: none; display: flex; gap: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
    display: block; padding: 10px 18px; color: var(--text); font-weight: 600; font-size: 15px;
    transition: all var(--transition); border-radius: var(--radius);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: var(--primary); background: rgba(26,82,118,0.06); }
.main-nav li ul {
    display: none; position: absolute; top: 100%; left: 0; background: var(--bg);
    min-width: 220px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
    border-top: 3px solid var(--accent); z-index: 100; list-style: none;
}
.main-nav li:hover > ul { display: block; }
.main-nav li ul li a { display: block; padding: 10px 18px; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--bg-light); }
.main-nav li ul li a:hover { background: var(--bg-light); color: var(--primary); }
.menu-toggle {
    display: none; background: none; border: 2px solid var(--primary);
    padding: 8px 12px; border-radius: var(--radius); cursor: pointer; color: var(--primary); font-size: 20px;
}

/* Hero */
.hero { position: relative; height: 500px; overflow: hidden; background: var(--primary-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(14,54,81,0.3) 0%, rgba(14,54,81,0.7) 100%);
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.hero-content { max-width: 700px; }
.hero-content h1 { font-size: 48px; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content .hero-tagline { font-size: 22px; color: var(--accent-light); font-style: italic; margin-bottom: 20px; font-family: 'Merriweather', serif; }
.hero-content p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 25px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; transition: background var(--transition); }
.hero-dot.active { background: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all var(--transition); cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,67,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

/* Quick Links */
.quick-links { background: var(--bg); padding: 0; margin-top: -50px; position: relative; z-index: 10; }
.quick-links-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.quick-link-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 15px; text-align: center; transition: all var(--transition);
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.quick-link-item:nth-child(4n) { border-right: none; }
.quick-link-item:nth-last-child(-n+4) { border-bottom: none; }
.quick-link-item:hover { background: var(--primary); color: #fff; }
.quick-link-item:hover .quick-link-icon { color: var(--accent-light); }
.quick-link-icon { font-size: 32px; color: var(--primary); margin-bottom: 10px; transition: color var(--transition); }
.quick-link-item span { font-weight: 600; font-size: 14px; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 32px; margin-bottom: 10px; }
.section-header .section-line { width: 60px; height: 3px; background: var(--accent); margin: 15px auto; border-radius: 2px; }
.section-header p { color: var(--text-light); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.welcome-text h2 { margin-bottom: 15px; font-size: 30px; }
.welcome-text p { margin-bottom: 15px; color: var(--text-light); }
.welcome-text .highlight { font-size: 18px; color: var(--primary); font-weight: 600; font-style: italic; }
.welcome-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.welcome-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 25px; }
.stat-item { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); font-family: 'Merriweather', serif; }
.stat-label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* News Cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-image { height: 200px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12px; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.news-card-body h3 { font-size: 18px; margin-bottom: 10px; }
.news-card-body h3 a { color: var(--primary-dark); }
.news-card-body h3 a:hover { color: var(--primary-light); }
.news-card-body p { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* Events */
.events-list { max-width: 800px; margin: 0 auto; }
.event-item { display: flex; gap: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius); margin-bottom: 15px; box-shadow: var(--shadow); transition: transform var(--transition); align-items: center; }
.event-item:hover { transform: translateX(5px); }
.event-date-box { min-width: 70px; text-align: center; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 10px; flex-shrink: 0; }
.event-date-box .event-month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.event-date-box .event-day { font-size: 28px; font-weight: 800; line-height: 1; font-family: 'Merriweather', serif; }
.event-details h3 { font-size: 17px; margin-bottom: 4px; }
.event-details p { font-size: 14px; color: var(--text-light); margin: 0; }
.event-details .event-location { font-size: 13px; color: var(--accent-dark); font-weight: 600; }

/* Attractions */
.attractions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.attraction-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 320px; box-shadow: var(--shadow); cursor: pointer; }
.attraction-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.attraction-card:hover img { transform: scale(1.1); }
.attraction-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14,54,81,0.9) 0%, rgba(14,54,81,0.1) 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; color: #fff;
}
.attraction-card-overlay h3 { font-size: 20px; color: #fff; margin-bottom: 5px; }
.attraction-card-overlay p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }
.attraction-tag { position: absolute; top: 15px; right: 15px; background: var(--accent); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }

/* Info Cards */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.info-card { background: var(--bg); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); transition: transform var(--transition); }
.info-card:hover { transform: translateY(-3px); }
.info-card h3 { font-size: 18px; margin-bottom: 12px; }
.info-card p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 50px 0; text-align: center; color: #fff; }
.cta-section h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 25px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h3 { color: var(--accent); font-size: 16px; margin-bottom: 18px; font-family: 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* Page Header */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 60px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: 36px; margin-bottom: 8px; }
.page-hero .breadcrumbs { color: rgba(255,255,255,0.6); font-size: 14px; }
.page-hero .breadcrumbs a { color: var(--accent-light); }

/* Page Content */
.page-content { padding: 50px 0; }
.page-content h2 { font-size: 26px; margin: 30px 0 15px; }
.page-content h3 { font-size: 20px; margin: 25px 0 10px; }
.page-content p { margin-bottom: 15px; color: var(--text-light); }
.page-content ul, .page-content ol { margin: 15px 0; padding-left: 25px; color: var(--text-light); }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 20px 0; }

.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar-widget { background: var(--bg-light); border-radius: var(--radius); padding: 25px; margin-bottom: 25px; }
.sidebar-widget h3 { font-size: 16px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }

/* Directory Table */
.directory-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.directory-table th { background: var(--primary); color: #fff; padding: 12px 15px; text-align: left; font-size: 14px; font-weight: 600; }
.directory-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
.directory-table tr:hover td { background: var(--bg-light); }

/* Contact Form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius);
    font-size: 15px; font-family: inherit; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav li ul { position: static; box-shadow: none; border-top: none; background: var(--bg-light); }
    .main-nav > ul > li > a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
    .hero { height: 350px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content .hero-tagline { font-size: 16px; }
    .quick-links { margin-top: -30px; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-grid, .content-with-sidebar { grid-template-columns: 1fr; }
    .news-grid, .attractions-grid, .info-cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 26px; }
    .top-bar { display: none; }
}
