/* ===== TownieGuide — Global Styles ===== */

:root {
  --green: #2E7D52;
  --green-light: #E8F5EE;
  --green-dark: #1B5E3A;
  --gold: #D4A843;
  --gold-light: #FDF6E3;
  --cream: #FDFAF5;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --border: #E0D8CC;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; }

/* ===== Header / Nav ===== */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
}

.logo span { color: var(--gold); }

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--green); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== Cities Dropdown ===== */

.dropdown {
  position: relative;
  margin-left: 1.5rem;
}

.dropdown summary {
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::marker { display: none; content: ''; }

.dropdown summary:hover { color: var(--green); }
.dropdown summary.active { color: var(--green); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  margin-left: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.dropdown-menu a.current {
  color: var(--green);
  font-weight: 600;
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.hero-cta:hover { background: #c49a38; color: var(--text); }

/* ===== Container ===== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Section ===== */

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ===== Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== City Cards (homepage) ===== */

.city-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.city-card:hover { transform: translateY(-2px); }

.city-card .city-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.city-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.city-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Tab Nav (city page) ===== */

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--green); }

.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Info Table ===== */

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th {
  background: var(--green);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) { background: var(--green-light); }

/* ===== Lead Form ===== */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  box-shadow: var(--shadow);
}

.form-wrap h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.form-wrap .form-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--green-dark); }

/* ===== Tips List ===== */

.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.tips-list li strong {
  color: var(--green-dark);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #e8bc5a; }

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; }

  .mobile-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--green);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0.75rem;
  }

  nav.open { display: flex; }
  nav a { margin-left: 0; font-size: 1.05rem; }

  .dropdown { margin-left: 0; }
  .dropdown summary { font-size: 1.05rem; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--green-light);
    padding: 0.25rem 0 0 1rem;
    margin-top: 0.5rem;
    min-width: auto;
  }

  .tab-btn { padding: 0.75rem 1rem; font-size: 0.9rem; }

  .info-table { font-size: 0.85rem; }
  .info-table th, .info-table td { padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .card { padding: 1.25rem; }
  .form-wrap { padding: 1.25rem; }
}
