/* ==========================================================================
   Romblon LGU — Public Website Theme
   ========================================================================== */
:root {
  --rom-primary: #0a3d6b;        /* deep navy — flag blue */
  --rom-primary-dark: #062a4a;
  --rom-primary-light: #1659a0;
  --rom-accent: #f6b51d;          /* gold */
  --rom-accent-dark: #d99a05;
  --rom-red: #c8102e;             /* heritage red */
  --rom-green: #228957;           /* marble-vein green */
  --rom-bg: #f6f8fb;
  --rom-bg-alt: #eef3f9;
  --rom-text: #1c2733;
  --rom-text-muted: #5b6675;
  --rom-border: #e2e8f0;
  --rom-radius: 14px;
  --rom-shadow: 0 8px 24px rgba(10, 61, 107, .07);
  --rom-shadow-lg: 0 18px 50px rgba(10, 61, 107, .14);
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--rom-text);
  background: #fff;
  scroll-behavior: smooth;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--rom-primary-dark); letter-spacing: -.01em; }
.display-1, .display-2, .display-3, .display-4, .display-5 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
a { color: var(--rom-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rom-primary-light); }

.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; transition: all .15s ease; }
.btn-primary { background: var(--rom-primary); border-color: var(--rom-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--rom-primary-light); border-color: var(--rom-primary-light); transform: translateY(-1px); box-shadow: var(--rom-shadow); }
.btn-outline-primary { color: var(--rom-primary); border-color: var(--rom-primary); }
.btn-outline-primary:hover { background: var(--rom-primary); }
.btn-accent { background: var(--rom-accent); color: var(--rom-primary-dark); border: none; }
.btn-accent:hover { background: var(--rom-accent-dark); color: #fff; }

.text-primary, .text-rom { color: var(--rom-primary) !important; }
.bg-primary { background-color: var(--rom-primary) !important; }
.text-accent { color: var(--rom-accent-dark) !important; }
.bg-rom-light { background-color: var(--rom-bg) !important; }

/* ===== Topbar ===== */
.topbar {
  background: var(--rom-primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--rom-accent); }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--rom-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.brand-seal { width: 64px; height: 64px; object-fit: contain; }
.brand-prefix { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rom-text-muted); font-weight: 600; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--rom-primary-dark); line-height: 1.1; }
.brand-tagline { font-size: .82rem; color: var(--rom-accent-dark); font-weight: 600; font-style: italic; }

@media (max-width: 575px) {
  .brand-seal { width: 48px; height: 48px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tagline { font-size: .72rem; }
  .brand-prefix { font-size: .65rem; }
}

/* ===== Primary nav ===== */
.primary-nav {
  background: linear-gradient(135deg, var(--rom-primary) 0%, var(--rom-primary-light) 100%);
  border-radius: 0;
}
.nav-main { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.nav-main .nav-item { position: relative; }
.nav-main .nav-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-size: .92rem;
  padding: .9rem 1rem;
  border-radius: 0;
  transition: background .15s, color .15s;
}
.nav-main .nav-link:hover, .nav-main .nav-link:focus, .nav-main .nav-link.active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-main .dropdown-menu {
  border-radius: 8px;
  border: 0;
  margin-top: 0;
  box-shadow: var(--rom-shadow-lg);
  padding: .5rem;
}
.nav-main .dropdown-item { padding: .55rem .9rem; border-radius: 6px; font-weight: 500; }
.nav-main .dropdown-item:hover { background: var(--rom-bg); color: var(--rom-primary); }

.search-form input.form-control { background: rgba(255,255,255,.95); border: 0; }
.search-form { gap: .25rem; }

/* ===== Mobile menu ===== */
.mobile-menu li a {
  display: block;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--rom-border);
  color: var(--rom-text);
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu li a:hover { background: var(--rom-bg); color: var(--rom-primary); }

/* ===== Hero / Slider ===== */
.hero-slider { position: relative; }
.hero-slide {
  position: relative;
  min-height: clamp(360px, 65vh, 640px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6, 42, 74, .85) 0%, rgba(10, 61, 107, .65) 50%, rgba(0,0,0,.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 3rem 1rem; }
.hero-eyebrow { display: inline-block; padding: .35rem .8rem; background: var(--rom-accent); color: var(--rom-primary-dark); border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1rem, 1.4vw, 1.25rem); opacity: .9; margin-bottom: 1.75rem; }
.hero-actions .btn { padding: .8rem 1.6rem; font-size: 1rem; }

.carousel-indicators [data-bs-target] { width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); }
.carousel-indicators .active { background: var(--rom-accent); }
.carousel-control-prev, .carousel-control-next { width: 8%; opacity: .55; }

/* ===== Announcement ticker ===== */
.announcement-bar {
  background: var(--rom-accent);
  color: var(--rom-primary-dark);
  padding: .65rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--rom-accent-dark);
}
.announcement-bar .label { background: var(--rom-primary); color: #fff; padding: .2rem .65rem; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: .75rem; }
.announcement-bar a { color: var(--rom-primary-dark); font-weight: 600; }
.announcement-bar a:hover { color: var(--rom-primary); }

/* ===== Section helpers ===== */
.section { padding: 4rem 0; }
.section-light { background: var(--rom-bg); }
.section-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--rom-primary-dark); margin-bottom: .35rem; }
.section-eyebrow { color: var(--rom-accent-dark); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.section-subtitle { color: var(--rom-text-muted); max-width: 720px; }
.section-divider { width: 60px; height: 4px; background: var(--rom-accent); border-radius: 4px; margin-top: 1rem; }

/* ===== Cards ===== */
.card-rom {
  background: #fff;
  border: 1px solid var(--rom-border);
  border-radius: var(--rom-radius);
  box-shadow: var(--rom-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-rom-fill { height: 100%; }
.card-rom:hover { transform: translateY(-4px); box-shadow: var(--rom-shadow-lg); }
.card-rom .card-img-top { aspect-ratio: 16/9; object-fit: cover; }
.card-rom .card-body { padding: 1.25rem 1.4rem 1.4rem; }

/* ===== Service tile ===== */
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rom-border);
  border-radius: var(--rom-radius);
  padding: 1.5rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  position: relative;
}
.service-tile:hover { transform: translateY(-4px); border-color: var(--rom-primary); box-shadow: var(--rom-shadow-lg); color: inherit; }
.service-tile .icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rom-primary), var(--rom-primary-light));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-tile h5 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--rom-primary-dark); }
.service-tile p { color: var(--rom-text-muted); font-size: .92rem; margin: 0; }

/* ===== Quick action / Cta ===== */
.quick-actions {
  background: linear-gradient(120deg, var(--rom-primary), var(--rom-primary-light));
  color: #fff;
  border-radius: var(--rom-radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.quick-actions::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(246,181,29,.3) 0%, transparent 70%);
  border-radius: 50%;
}
.quick-actions h2 { color: #fff; }

/* ===== News ===== */
.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--rom-radius); overflow: hidden; box-shadow: var(--rom-shadow); transition: all .2s ease; border: 1px solid var(--rom-border); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--rom-shadow-lg); }
.news-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--rom-bg-alt); }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .img-wrap img { transform: scale(1.05); }
.news-card .body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { font-size: .8rem; color: var(--rom-text-muted); display: flex; gap: .75rem; margin-bottom: .5rem; }
.news-card .badge-cat { background: var(--rom-bg-alt); color: var(--rom-primary); padding: .25rem .6rem; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.news-card h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .65rem; }
.news-card h3 a { color: var(--rom-primary-dark); text-decoration: none; }
.news-card h3 a:hover { color: var(--rom-primary); }
.news-card p { color: var(--rom-text-muted); font-size: .92rem; margin: 0 0 1rem; }
.news-card .read-more { margin-top: auto; font-weight: 700; color: var(--rom-primary); font-size: .9rem; }

/* Featured news big card */
.news-feature {
  position: relative;
  border-radius: var(--rom-radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.news-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 60%); }
.news-feature .body { position: relative; z-index: 1; padding: 1.5rem 1.75rem 1.75rem; width: 100%; }
.news-feature h3 { color: #fff; font-size: 1.6rem; line-height: 1.2; margin-bottom: .5rem; }
.news-feature h3 a { color: #fff; }
.news-feature p { color: rgba(255,255,255,.9); }

/* ===== Officials ===== */
.official-card {
  background: #fff;
  border: 1px solid var(--rom-border);
  border-radius: var(--rom-radius);
  overflow: hidden;
  text-align: center;
  transition: all .2s ease;
  height: 100%;
}
.official-card:hover { transform: translateY(-4px); box-shadow: var(--rom-shadow-lg); border-color: var(--rom-accent); }
.official-card .photo { aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(135deg, var(--rom-bg-alt), var(--rom-bg)); position: relative; }
.official-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.official-card .photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--rom-primary); opacity: .25;
}
.official-card .info { padding: 1.25rem 1rem 1.5rem; }
.official-card h5 { color: var(--rom-primary-dark); margin-bottom: .25rem; font-size: 1.05rem; }
.official-card .position { color: var(--rom-accent-dark); font-weight: 600; font-size: .85rem; margin: 0; }

/* Mayor / VM hero card */
.exec-hero {
  background: #fff;
  border-radius: var(--rom-radius);
  overflow: hidden;
  box-shadow: var(--rom-shadow);
  border: 1px solid var(--rom-border);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .exec-hero { grid-template-columns: 280px 1fr; }
}
.exec-hero .photo { aspect-ratio: 1/1; background: var(--rom-bg-alt); overflow: hidden; }
.exec-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.exec-hero .body { padding: 1.5rem 1.75rem; }
.exec-hero .salutation { color: var(--rom-accent-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.exec-hero h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: .25rem 0 .25rem; }
.exec-hero .position { color: var(--rom-primary); font-weight: 600; }

/* ===== Tourism ===== */
.tour-card {
  position: relative;
  border-radius: var(--rom-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  background: var(--rom-bg-alt);
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: all .2s ease;
}
.tour-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 42, 74, .9), transparent 55%); }
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--rom-shadow-lg); color: #fff; }
.tour-card .body { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }
.tour-card .cat { display: inline-block; padding: .25rem .6rem; background: var(--rom-accent); color: var(--rom-primary-dark); border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.tour-card h4 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 0 0 .25rem; color: #fff; }
.tour-card p { font-size: .88rem; opacity: .9; margin: 0; }

/* ===== Stats ===== */
.stat-card { background: #fff; border-radius: var(--rom-radius); padding: 1.5rem; text-align: center; border: 1px solid var(--rom-border); box-shadow: var(--rom-shadow); }
.stat-card .value { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--rom-primary); line-height: 1; margin-bottom: .25rem; }
.stat-card .label { color: var(--rom-text-muted); font-size: .9rem; font-weight: 600; }

/* ===== Banners ===== */
.page-banner {
  background: linear-gradient(120deg, var(--rom-primary-dark) 0%, var(--rom-primary) 60%, var(--rom-primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-banner::after { content: ''; position: absolute; right: -100px; bottom: -100px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(246,181,29,.35) 0%, transparent 70%); border-radius: 50%; }
.page-banner h1 { color: #fff; font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .25rem; }
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner .breadcrumb a, .page-banner .breadcrumb-item { color: rgba(255,255,255,.85); font-size: .88rem; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ===== Forms ===== */
.form-control, .form-select { border-radius: 8px; padding: .65rem .85rem; border-color: var(--rom-border); }
.form-control:focus, .form-select:focus { border-color: var(--rom-primary); box-shadow: 0 0 0 .2rem rgba(10, 61, 107, .12); }
.form-label { font-weight: 600; color: var(--rom-primary-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--rom-primary-dark); color: rgba(255,255,255,.78); padding: 3.5rem 0 0; margin-top: 3rem; }
.site-footer .footer-seal { width: 56px; height: 56px; object-fit: contain; }
.site-footer .footer-title { color: #fff; text-transform: uppercase; font-size: .82rem; letter-spacing: .12em; margin-bottom: .85rem; font-weight: 700; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .4rem; }
.site-footer .footer-links a { color: rgba(255,255,255,.78); font-size: .9rem; }
.site-footer .footer-links a:hover { color: var(--rom-accent); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .82rem; color: rgba(255,255,255,.6); }
.site-footer .footer-extra a { color: rgba(255,255,255,.7); margin-left: 1rem; }
.site-footer .footer-extra a:hover { color: var(--rom-accent); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  background: var(--rom-primary); color: #fff;
  border-radius: 50%;
  box-shadow: var(--rom-shadow);
  z-index: 999;
}
.back-to-top:hover { background: var(--rom-primary-light); color: #fff; transform: translateY(-2px); }
.back-to-top.show { display: inline-flex; }

/* ===== Article body ===== */
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--rom-text); }
.article-body h2, .article-body h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { max-width: 100%; border-radius: 8px; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }

/* ===== Tables ===== */
.table-rom { background: #fff; border-radius: var(--rom-radius); overflow: hidden; box-shadow: var(--rom-shadow); }
.table-rom thead th { background: var(--rom-primary); color: #fff; font-weight: 600; border: 0; padding: .85rem 1rem; }
.table-rom td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--rom-border); }
.table-rom tr:hover { background: var(--rom-bg); }

/* Helpers */
.divider { height: 1px; background: var(--rom-border); margin: 2.5rem 0; }
.tag { display: inline-block; padding: .25rem .65rem; background: var(--rom-bg-alt); color: var(--rom-primary); border-radius: 999px; font-size: .78rem; font-weight: 600; margin-right: .35rem; }
.shadow-rom { box-shadow: var(--rom-shadow) !important; }
.rounded-rom { border-radius: var(--rom-radius) !important; }
