/* ===========================================================
   City of Toledo — Public Site
   Palette: PH flag blue #0038A8, red #CE1126, gold #FCD116
   =========================================================== */
:root {
    --blue: #0038A8;
    --blue-dark: #002766;
    --blue-700: #073a9c;
    --red: #CE1126;
    --red-dark: #a30d1d;
    --gold: #FCD116;
    --gold-dark: #e0b400;
    --ink: #1a2230;
    --body: #455066;
    --muted: #7b8499;
    --line: #e6e9f0;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --bg-tint: #eef3fb;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(16, 32, 70, .06);
    --shadow: 0 14px 38px rgba(16, 32, 70, .10);
    --shadow-lg: 0 28px 60px rgba(16, 32, 70, .18);
    --container: 1200px;
    --t: .28s cubic-bezier(.4, .14, .3, 1);
    --grad: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
    --grad-gold: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 700; font-family: "Plus Jakarta Sans", sans-serif;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: var(--t); font-size: .98rem; line-height: 1; text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(0, 56, 168, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 56, 168, .42); }
.btn-gold { background: var(--grad-gold); color: var(--blue-dark); box-shadow: 0 10px 24px rgba(224, 180, 0, .35); }
.btn-gold:hover { color: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-dark); color: rgba(255, 255, 255, .9); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 1rem; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; align-items: center; gap: .6rem; }
.topbar-left .muted { color: rgba(255, 255, 255, .6); }
.topbar-left .sep { color: rgba(255, 255, 255, .4); }
.topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.topbar-right .hotline { color: var(--gold); font-weight: 700; }
.topbar-right .admin-link { background: rgba(255, 255, 255, .12); padding: .25rem .7rem; border-radius: 999px; }
.topbar-right .admin-link:hover { background: var(--gold); color: var(--blue-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-seal { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-text strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.32rem; color: var(--blue); letter-spacing: .01em; }

/* ---------- Nav ---------- */
.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: .35rem; padding: .65rem .9rem; border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--blue); background: var(--bg-tint); }
.main-nav > ul > li > a i { font-size: .65rem; transition: transform var(--t); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--t); }
.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > a i { transform: rotate(180deg); }
.dropdown li a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--body); font-weight: 500; font-size: .92rem; }
.dropdown li a:hover { background: var(--bg-tint); color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: var(--t); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero Carousel ---------- */
.hero { position: relative; }
.carousel { position: relative; height: clamp(460px, 74vh, 720px); overflow: hidden; background: var(--blue-dark); }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.carousel .slide.active { opacity: 1; }
.carousel .slide-bg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 9s ease-out both; }
.carousel .slide.active .slide-bg { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.carousel .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 19, 60, .88) 0%, rgba(0, 28, 80, .62) 45%, rgba(0, 28, 80, .25) 100%); }
.carousel .slide-content { position: absolute; inset: 0; display: flex; align-items: center; }
.slide-content .container { width: 100%; }
.slide-text { max-width: 640px; color: #fff; }
.slide-text .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(252, 209, 22, .18); color: var(--gold); border: 1px solid rgba(252, 209, 22, .4); padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.slide-text h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin-bottom: .8rem; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.slide-text p { font-size: 1.18rem; color: rgba(255, 255, 255, .92); margin-bottom: 1.8rem; max-width: 540px; }
.slide-text .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.carousel-nav { position: absolute; bottom: 28px; right: 0; left: 0; }
.carousel-nav .container { display: flex; justify-content: space-between; align-items: center; }
.carousel-dots { display: flex; gap: .55rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .4); border: 0; cursor: pointer; transition: var(--t); padding: 0; }
.carousel-dot.active { background: var(--gold); width: 34px; }
.carousel-arrows { display: flex; gap: .5rem; }
.carousel-arrows button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: var(--t); backdrop-filter: blur(4px); }
.carousel-arrows button:hover { background: #fff; color: var(--blue); }

/* slide animation in */
.carousel .slide.active .slide-text > * { animation: riseIn .7s both; }
.carousel .slide.active .slide-text > *:nth-child(2) { animation-delay: .12s; }
.carousel .slide.active .slide-text > *:nth-child(3) { animation-delay: .24s; }
.carousel .slide.active .slide-text > *:nth-child(4) { animation-delay: .36s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Quick Links Strip ---------- */
.quicklinks { margin-top: -52px; position: relative; z-index: 5; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; border: 1px solid var(--line); }
.ql-card { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: var(--radius-sm); transition: var(--t); color: var(--ink); }
.ql-card:hover { background: var(--bg-soft); transform: translateY(-3px); color: var(--ink); }
.ql-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; flex: 0 0 auto; }
.ql-card span { font-weight: 700; font-size: .96rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--bg-soft); }
.section.navy { background: var(--blue-dark); color: rgba(255, 255, 255, .85); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow-tag { display: inline-block; color: var(--red); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section.navy .section-head h2 { color: #fff; }
.section.navy .eyebrow-tag { color: var(--gold); }

.bar { width: 64px; height: 4px; border-radius: 4px; background: var(--grad-gold); margin: .9rem auto 0; }
.section-head.left .bar { margin-left: 0; }

/* ---------- Service Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; transition: var(--t); position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: var(--t); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.2rem; transition: var(--t); }
.service-card:hover .service-icon { background: var(--grad); color: #fff; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.service-card .more { font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; }
.service-card .more i { transition: transform var(--t); }
.service-card:hover .more i { transform: translateX(4px); }
.service-office { font-size: .78rem; color: var(--muted); display: block; margin-top: .2rem; }

/* ---------- Stats ---------- */
.stats { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff14' stroke-width='1'/%3E%3C/svg%3E"); opacity: .5; }
.stats .container { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1rem; }
.stat-icon { font-size: 2rem; color: var(--gold); margin-bottom: .6rem; }
.stat-num { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .95rem; color: rgba(255, 255, 255, .8); margin-top: .4rem; letter-spacing: .04em; }

/* ---------- Mayor Welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 380px 1fr; gap: 3.5rem; align-items: center; }
.mayor-photo { position: relative; }
.mayor-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; background: var(--bg-tint); }
.mayor-photo .frame { position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
/* About page: city hall is a wide panoramic aerial — show it landscape so the whole building is visible (not a portrait crop) */
.about-city-photo img { aspect-ratio: 16 / 9; }
.welcome-grid:has(.about-city-photo) { align-items: start; }
.mayor-badge { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .7rem 1.4rem; text-align: center; white-space: nowrap; }
.mayor-badge strong { display: block; color: var(--blue); font-size: 1rem; }
.mayor-badge span { font-size: .78rem; color: var(--muted); }
.welcome-text .signature { margin-top: 1.4rem; }
.welcome-text .signature strong { color: var(--ink); font-size: 1.1rem; display: block; }
.welcome-text .signature span { color: var(--red); font-weight: 600; }
.quote-mark { font-size: 3rem; color: var(--gold); line-height: .4; font-family: Georgia, serif; }

/* ---------- News Cards ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--grad); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-cat { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.news-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.news-body h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--blue); }
.news-body p { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.news-more { font-weight: 700; font-size: .9rem; color: var(--blue); display: inline-flex; gap: .4rem; align-items: center; }

.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 2.4rem; }

/* ---------- Tourism ---------- */
.tour-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); display: block; }
.tour-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tour-card:hover img { transform: scale(1.08); }
.tour-card .t-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 19, 60, .9) 0%, rgba(0, 19, 60, .15) 55%, transparent 100%); }
.tour-card .t-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; color: #fff; }
.tour-card .t-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.tour-card h3 { color: #fff; font-size: 1.3rem; margin: .3rem 0; }
.tour-card p { font-size: .88rem; color: rgba(255, 255, 255, .82); margin: 0; opacity: 0; max-height: 0; transition: var(--t); }
.tour-card:hover p { opacity: 1; max-height: 80px; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--grad); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(252, 209, 22, .25), transparent 70%); }
.page-banner.with-img { background-size: cover; background-position: center; }
.page-banner.with-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 19, 60, .92), rgba(0, 28, 80, .6)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .4rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.breadcrumb a { color: rgba(255, 255, 255, .9); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Officials ---------- */
.official-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--t); }
.official-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.official-photo { aspect-ratio: 1; background: var(--bg-tint); position: relative; overflow: hidden; }
.official-photo img { width: 100%; height: 100%; object-fit: cover; }
.official-photo .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue); font-size: 3.4rem; background: var(--bg-tint); }
.official-body { padding: 1.3rem; }
.official-body h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.official-pos { color: var(--red); font-weight: 700; font-size: .9rem; }
.official-com { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.featured-official { grid-column: span 2; }

/* ---------- Department list ---------- */
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: var(--t); }
.dept-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.dept-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dept-acr { width: 56px; height: 56px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: 0 0 auto; font-family: "Plus Jakarta Sans"; }
.dept-card h3 { font-size: 1.05rem; margin: 0; }
.dept-card .cat { font-size: .78rem; color: var(--red); font-weight: 700; }
.dept-card p { font-size: .9rem; color: var(--muted); }
.dept-meta { font-size: .85rem; color: var(--body); display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.dept-meta span i { color: var(--blue); width: 18px; }

/* ---------- Generic content / lists ---------- */
.prose { max-width: 820px; font-size: 1.04rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }

/* doc list (transparency, ordinances) */
.doc-list { display: grid; gap: .8rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; transition: var(--t); }
.doc-item:hover { box-shadow: var(--shadow-sm); border-color: var(--blue); }
.doc-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; }
.doc-info { flex: 1; }
.doc-info strong { display: block; color: var(--ink); font-size: 1rem; }
.doc-info span { font-size: .84rem; color: var(--muted); }
.doc-tag { font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-tint); color: var(--blue); }

/* tabs */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.tab { padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-weight: 600; cursor: pointer; transition: var(--t); font-size: .92rem; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }

/* bids table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 700px; }
table.data th { background: var(--bg-soft); text-align: left; padding: 1rem 1.2rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
table.data td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--bg-soft); }
.pill { font-size: .76rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.pill.open { background: #e3f6ec; color: #137a43; }
.pill.awarded { background: #e6efff; color: var(--blue); }
.pill.closed { background: #fdecec; color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem; margin-bottom: 1rem; }
.info-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.info-card strong { display: block; color: var(--ink); }
.info-card span { color: var(--muted); font-size: .92rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .92rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: var(--t); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 56, 168, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.alert { padding: 1rem 1.3rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; }
.alert-success { background: #e3f6ec; color: #137a43; border: 1px solid #b6e6c9; }
.alert-error { background: #fdecec; color: var(--red); border: 1px solid #f6c9c9; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--grad); border-radius: var(--radius); padding: 3.2rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta::after { content: "\f0e3"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 2rem; bottom: -1rem; font-size: 9rem; opacity: .1; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-3 { margin-top: 2.5rem; }
.section-cta { text-align: center; margin-top: 3rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t); z-index: 900; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--line); margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-grid { grid-template-columns: 320px 1fr; gap: 2.5rem; }
}
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); background: #fff; flex-direction: column; padding: 90px 1.2rem 2rem; transform: translateX(100%); transition: transform var(--t); box-shadow: var(--shadow-lg); overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    .main-nav > ul > li > a { padding: .9rem 1rem; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; max-height: 0; overflow: hidden; padding: 0 0 0 1rem; transition: max-height var(--t); }
    .has-dropdown.open > .dropdown { max-height: 400px; }
    .grid-3, .grid-4, .stats-grid, .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
    .mayor-photo { max-width: 360px; margin: 0 auto; }
    .featured-official { grid-column: span 2; }
    .cta { flex-direction: column; text-align: center; }
    .topbar-left .muted, .topbar-right a span { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .section { padding: 56px 0; }
    .grid-3, .grid-4, .stats-grid, .quicklinks-grid, .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .featured-official { grid-column: span 1; }
    .slide-text h1 { font-size: 2rem; }
    .carousel { height: clamp(440px, 72vh, 560px); }
    .topbar-right { gap: .9rem; }
}
/* ---- Mobile header & hero polish ---- */
@media (max-width: 768px) {
    /* Hero: darken vertically (the desktop overlay fades L→R, leaving full-width mobile text unreadable and letting the photo bleed through) */
    .carousel .overlay { background: linear-gradient(180deg, rgba(0, 19, 60, .45) 0%, rgba(0, 28, 80, .7) 52%, rgba(0, 19, 60, .92) 100%); }
    .slide-text { max-width: none; }
    .slide-text p { font-size: 1.04rem; max-width: none; }
    .slide-text .actions .btn { flex: 1 1 auto; justify-content: center; }
    /* Top utility bar: drop the redundant left block + the long email so it fits one line */
    .topbar { font-size: .78rem; }
    .topbar-inner { justify-content: flex-end; gap: .6rem; }
    .topbar-left { display: none; }
    .tb-email { display: none; }
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.site-footer { background: #0c1426; color: rgba(255, 255, 255, .68); padding: 64px 0 0; margin-top: 0; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; font-family: "Plus Jakarta Sans"; font-size: 1.1rem; }
.footer-brand span { font-size: .82rem; }
.footer-about p { font-size: .92rem; line-height: 1.7; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: var(--t); }
.footer-social a:hover { background: var(--gold); color: var(--blue-dark); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: rgba(255, 255, 255, .68); font-size: .92rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact p { font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact p i { color: var(--gold); margin-top: .25rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.4rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold); }
