/* ===== Midland Borough - Main Stylesheet ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a3a5c;
  --blue: #2563a8;
  --light-blue: #e8f0f8;
  --gold: #c8922a;
  --red: #b22222;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --gray-mid: #dde3ea;
  --gray-dark: #555;
  --text: #222;
  --footer-bg: #1a2a3c;
}

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: #ccd8e8;
  font-size: 0.8rem;
  padding: 6px 0;
  text-align: right;
}
.top-bar .container { display: flex; justify-content: flex-end; }
.top-bar a { color: #ccd8e8; }
.top-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding: 14px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.header-logo img { max-height: 80px; }
.header-contact {
  text-align: right;
  font-size: 0.9rem;
  color: var(--gray-dark);
}
.header-contact strong { color: var(--navy); }

/* ===== NAV ===== */
nav {
  background: var(--navy);
  position: relative;
}
nav .container { display: flex; flex-wrap: wrap; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li { position: relative; }
nav ul li a {
  display: block;
  padding: 13px 18px;
  color: #d8e6f5;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
/* Dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
nav ul li:hover ul { display: flex; flex-direction: column; }
nav ul li ul li a {
  padding: 10px 18px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a3a5c;
  height: 420px;
}
.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { display: block; }
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  padding: 40px 30px 28px;
}
.hero-caption h2 { font-size: 2rem; margin-bottom: 6px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-caption p { font-size: 1.05rem; opacity: 0.92; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.hero-dots {
  position: absolute;
  bottom: 14px; right: 18px;
  display: flex; gap: 7px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.hero-dot.active { background: #fff; }

/* ===== QUICK ICONS ===== */
.quick-icons {
  background: var(--light-blue);
  border-bottom: 2px solid var(--gray-mid);
  padding: 28px 0;
}
.quick-icons .container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.quick-icon-card {
  background: #fff;
  border: 1px solid var(--gray-mid);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 22px 28px;
  text-align: center;
  min-width: 180px;
  flex: 1;
  max-width: 240px;
  transition: box-shadow 0.2s, border-top-color 0.2s;
}
.quick-icon-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-top-color: var(--gold); }
.quick-icon-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 12px; }
.quick-icon-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.quick-icon-card a {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
}
.quick-icon-card a:hover { background: var(--blue); text-decoration: none; }

/* ===== CTA BUTTONS ===== */
.cta-bar {
  background: var(--navy);
  padding: 18px 0;
  text-align: center;
}
.cta-bar .container { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-cta-primary { background: var(--gold); color: #fff; }
.btn-cta-primary:hover { background: #b07a1e; text-decoration: none; }
.btn-cta-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ===== MAIN CONTENT ===== */
.content-wrapper { display: flex; gap: 30px; padding: 36px 0; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.main-content h1 {
  font-size: 1.85rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.main-content h2 { font-size: 1.3rem; color: var(--navy); margin: 22px 0 10px; }
.main-content h3 { font-size: 1.1rem; color: var(--navy); margin: 18px 0 8px; }
.main-content h4 { font-size: 1rem; color: var(--navy); margin: 14px 0 6px; }
.main-content p { margin-bottom: 14px; }
.main-content ul { padding-left: 22px; margin-bottom: 14px; }
.main-content ul li { margin-bottom: 5px; }
.main-content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.main-content table td { padding: 8px 12px; border: 1px solid var(--gray-mid); font-size: 0.92rem; }
.main-content table tr:nth-child(even) td { background: var(--gray-light); }

hr { border: none; border-top: 1px solid var(--gray-mid); margin: 24px 0; }

.notice-box {
  background: var(--light-blue);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  margin: 18px 0;
  border-radius: 0 4px 4px 0;
}
.notice-box p { margin: 0; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-widget h4 {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-widget ul { list-style: none; padding: 12px 14px; }
.sidebar-widget ul li { border-bottom: 1px solid var(--gray-mid); padding: 6px 0; font-size: 0.88rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--navy); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 580px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.88rem; margin-bottom: 4px; color: var(--gray-dark); font-family: Arial, sans-serif; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: 3px;
  font-size: 0.92rem;
  font-family: Georgia, serif;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select { background: #fff; }
.btn-submit {
  background: var(--navy);
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 3px;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: Arial, sans-serif;
}
.btn-submit:hover { background: var(--blue); }
.form-note { font-size: 0.82rem; color: var(--gray-dark); margin-bottom: 18px; }

/* ===== MAP EMBED ===== */
.map-embed { margin: 24px 0; }
.map-embed iframe { width: 100%; height: 300px; border: none; border-radius: 4px; }

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  color: #a0b4c8;
  padding: 38px 0 18px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-col { flex: 1; min-width: 160px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #a0b4c8; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  color: #6a8299;
  font-size: 0.78rem;
}
.footer-bottom a { color: #8aafc8; }

/* ===== CONTAINER ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { height: 260px; }
  .hero-caption h2 { font-size: 1.4rem; }
  .content-wrapper { flex-direction: column; }
  .sidebar { width: 100%; }
  nav ul li ul { position: static; display: none; }
  nav ul li:hover ul { display: flex; }
  .header-logo img { max-height: 60px; }
  .footer-grid { flex-direction: column; }
}
