/* ==========================================================================
   Portfolio 3: Interactive Ward & Grassroots Community Portal (Ward Map Taste)
   Aesthetic: Warm Terracotta & Harvest Amber, Ward Tab Filters, Village Civic Board
   ========================================================================== */

:root {
  --terracotta: #c2410c;      /* Clay Terracotta */
  --terracotta-dark: #9a3412;
  --harvest-amber: #d97706;
  --leaf-green: #15803d;
  --cream-bg: #fffbeb;        /* Warm Harvest Ivory */
  --card-bg: #ffffff;
  --border: #fde68a;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(194, 65, 12, 0.06);
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Hind Siliguri', serif, sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-main);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.ward-header {
  background: #ffffff;
  border-bottom: 2px solid var(--terracotta);
  padding: 1rem 0;
}

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

.ward-brand h2 {
  font-size: 1.35rem;
  color: var(--terracotta-dark);
}

.ward-brand span {
  font-size: 0.8rem;
  color: var(--leaf-green);
  font-weight: 700;
}

/* Ward Hero */
.ward-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.ward-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.ward-hero h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ward-hero h1 span {
  color: var(--terracotta);
}

.ward-portrait-box {
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ward-portrait-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Interactive Ward Selector Tabs */
.ward-selector-bar {
  background: #ffffff;
  border-bottom: 1px solid #fcd34d;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.ward-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.ward-tab-btn {
  background: var(--cream-bg);
  border: 1px solid #fde68a;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.ward-tab-btn:hover,
.ward-tab-btn.active {
  background: var(--terracotta);
  color: #ffffff;
  border-color: var(--terracotta);
}

/* Ward Dynamic Content Card */
.ward-display-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.ward-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #fef3c7;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.ward-card-header h2 {
  font-size: 1.8rem;
  color: var(--terracotta);
}

.ward-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.detail-box {
  background: var(--cream-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.detail-box h4 {
  font-size: 1.1rem;
  color: var(--terracotta-dark);
  margin-bottom: 0.4rem;
}

.detail-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.ward-footer {
  background: #292524;
  color: #a8a29e;
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--terracotta);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-inner h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.ward-nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.ward-nav-menu a {
  color: #333;
  transition: color 0.2s;
}

.ward-nav-menu a:hover {
  color: var(--terracotta);
}

.btn-chair-call {
  background: var(--terracotta);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-toggle {
  display: none;
  background: #f5f5f4;
  border: 1px solid var(--border);
  color: var(--terracotta-dark);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 850px) {
  .header-flex { position: relative; }
  .mobile-toggle { display: flex; }
  
  .ward-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: 0.85rem;
  }

  .ward-nav-menu.active {
    display: flex !important;
  }

  .ward-nav-menu li {
    width: 100%;
  }

  .ward-nav-menu li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0eee9;
  }

  .ward-hero-grid, .ward-details-grid, .footer-inner { grid-template-columns: 1fr; }
}
