/* ============================================
   Sint Maarten Ombudsman - Main Stylesheet
   Rebuilt & Restored 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --primary:     #1a3a5c;
  --primary-dk:  #122843;
  --accent:      #c9a84c;
  --accent-lt:   #e8c96e;
  --red:         #8b1a1a;
  --bg:          #f5f3ef;
  --white:       #ffffff;
  --text:        #2c2c2c;
  --text-lt:     #555555;
  --border:      #ddd8cc;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
  --radius:      4px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* ========== HEADER ========== */
#header {
  background: var(--primary-dk);
  color: var(--white);
  padding: 0;
  box-shadow: 0 3px 16px rgba(0,0,0,0.25);
}

#header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
}

#logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

#logo-seal {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

#site-title {
  font-family: 'Merriweather', serif;
}

#site-title h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

#site-title p {
  font-size: 0.82rem;
  color: var(--accent-lt);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

#header-contact {
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

#header-contact strong {
  color: var(--accent-lt);
  font-size: 0.9rem;
}

/* ========== NAVBAR ========== */
#navbar {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
}

#navbar-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-item > a, .nav-item > span {
  display: block;
  padding: 13px 16px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-item:hover > a,
.nav-item:hover > span,
.nav-item.active > a {
  background: var(--accent);
  color: var(--primary-dk);
  text-decoration: none;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--primary-dk);
  border-top: 3px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}

.dropdown a:hover {
  background: var(--primary);
  color: var(--accent-lt);
  text-decoration: none;
}

.nav-item:hover .dropdown {
  display: block;
}

/* Sub-dropdown */
.sub-dropdown-item {
  position: relative;
}

.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: var(--primary-dk);
  border-left: 3px solid var(--accent);
  box-shadow: 6px 4px 16px rgba(0,0,0,0.25);
}

.sub-dropdown-item:hover .sub-dropdown {
  display: block;
}

/* ========== HERO BANNER ========== */
#hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, #2a5a8c 100%);
  color: var(--white);
  padding: 36px 20px;
  border-bottom: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  border: 60px solid rgba(201,168,76,0.08);
  border-radius: 50%;
}

#hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

#hero-text {
  flex: 1;
}

#hero-text h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-lt);
  margin-bottom: 10px;
  font-style: italic;
}

#hero-quote {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  min-height: 1.7em;
  transition: opacity 0.4s;
}

#hero-cta {
  flex-shrink: 0;
}

#btn-complaint {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dk);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.15s;
}

#btn-complaint:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  text-decoration: none;
}

#btn-complaint small {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
  text-transform: none;
  margin-top: 3px;
  color: var(--primary);
}

/* ========== BREADCRUMB ========== */
#breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--text-lt);
}

#breadcrumb-inner {
  max-width: 980px;
  margin: 0 auto;
}

#breadcrumb a { color: var(--primary); }

/* ========== LAYOUT ========== */
#page-wrapper {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: start;
}

#page-wrapper.full-width {
  grid-template-columns: 1fr;
}

/* ========== MAIN CONTENT ========== */
#content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-header {
  background: var(--primary);
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 3px solid var(--accent);
}

.content-body {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.content-body p { margin-bottom: 14px; }
.content-body p:last-child { margin-bottom: 0; }
.content-body strong { color: var(--primary); }
.content-body h3 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-size: 1rem;
  margin: 20px 0 8px;
}

/* Homepage 2-col layout */
#home-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

#home-left {
  padding: 20px;
  border-right: 1px solid var(--border);
}

#home-right {
  padding: 20px;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.omb-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.omb-card .omb-name {
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  margin: 10px 0 4px;
}

.omb-card .omb-title {
  font-size: 0.8rem;
  color: var(--text-lt);
}

.omb-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #2a5a8c 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.read-more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.read-more:hover { color: var(--accent); text-decoration: none; }

/* News list */
.news-list { list-style: none; }

.news-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-item a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}
.news-item a:hover { color: var(--accent); text-decoration: none; }

.news-item p {
  font-size: 0.82rem;
  color: var(--text-lt);
  line-height: 1.5;
  margin-bottom: 5px !important;
}

.news-date {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
}

/* ========== SIDEBAR ========== */
#sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-header {
  background: var(--primary);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--accent);
}

.sidebar-body {
  padding: 14px;
  font-size: 0.84rem;
  color: var(--text-lt);
  line-height: 1.6;
}

.sidebar-body ul { list-style: none; }
.sidebar-body ul li { margin-bottom: 8px; }
.sidebar-body ul li a { color: var(--primary); font-size: 0.84rem; }
.sidebar-body ul li a:hover { color: var(--accent); }

.sidebar-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-style: italic;
}

.no-events {
  color: var(--text-lt);
  font-style: italic;
  font-size: 0.83rem;
}

/* ========== OMBUDSMAN BIO PAGE ========== */
.bio-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
}

.bio-photo {
  text-align: center;
}

.bio-avatar {
  width: 140px;
  height: 160px;
  background: linear-gradient(160deg, var(--primary) 0%, #2a5a8c 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 4rem;
  margin-bottom: 10px;
}

.bio-photo a {
  font-size: 0.78rem;
  color: var(--primary);
  display: block;
  text-align: center;
}

.bio-content { font-size: 0.93rem; line-height: 1.75; }
.bio-content p { margin-bottom: 14px; }
.bio-content p:last-child { margin-bottom: 0; }
.bio-content em { color: var(--text-lt); }

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card h3 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-lt);
  margin-bottom: 8px;
}

.info-card strong { color: var(--text); }
.info-card a { color: var(--primary); }

.complaint-form {
  padding: 24px;
  font-size: 0.93rem;
}

.complaint-form label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin: 14px 0 5px;
  font-size: 0.88rem;
}

.complaint-form input,
.complaint-form textarea,
.complaint-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.complaint-form input:focus,
.complaint-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.complaint-form textarea { height: 120px; resize: vertical; }

.btn-submit {
  margin-top: 20px;
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Source Sans 3', sans-serif;
}

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

/* ========== GENERIC INNER PAGE ========== */
.inner-content { padding: 24px; font-size: 0.93rem; line-height: 1.75; }
.inner-content p { margin-bottom: 14px; }
.inner-content ul { margin: 12px 0 14px 20px; }
.inner-content ul li { margin-bottom: 6px; }
.inner-content h3 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  margin: 18px 0 8px;
  font-size: 1rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--bg); }

.faq-q .arrow {
  font-size: 0.75rem;
  transition: transform 0.25s;
  color: var(--accent);
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 16px 20px;
  font-size: 0.88rem;
  color: var(--text-lt);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* Documents page */
.doc-list { list-style: none; padding: 20px 24px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.doc-item:last-child { border-bottom: none; }
.doc-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
}
.doc-info { flex: 1; }
.doc-info a { font-size: 0.9rem; color: var(--primary); font-weight: 600; display: block; }
.doc-info a:hover { color: var(--accent); }
.doc-info span { font-size: 0.78rem; color: var(--text-lt); }

/* ========== NEWS PAGE ========== */
.press-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.press-item:last-child { border-bottom: none; }
.press-item h3 { font-family: 'Merriweather', serif; font-size: 1rem; margin-bottom: 6px; }
.press-item h3 a { color: var(--primary); }
.press-item h3 a:hover { color: var(--accent); text-decoration: none; }
.press-meta { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.press-item p { font-size: 0.88rem; color: var(--text-lt); line-height: 1.65; margin: 0; }

/* ========== 404 PAGE ========== */
.page-404 {
  text-align: center;
  padding: 60px 40px;
}

.page-404 .num {
  font-family: 'Merriweather', serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.page-404 .num span { color: var(--accent); }

.page-404 h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--text-lt);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.page-404 .home-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.page-404 .home-btn:hover {
  background: var(--accent);
  text-decoration: none;
}

.page-404-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-404-links a {
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.page-404-links a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  text-decoration: none;
}

/* ========== FOOTER ========== */
#footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 22px 20px;
  font-size: 0.82rem;
  margin-top: 40px;
  border-top: 3px solid var(--accent);
}

#footer a { color: var(--accent-lt); }
#footer a:hover { color: var(--white); }

/* ========== BACK TO TOP ========== */
#back-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  border: none;
  transition: background 0.2s, transform 0.2s;
  z-index: 500;
}

#back-top:hover { background: var(--accent); transform: translateY(-3px); }
#back-top.visible { display: flex; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #page-wrapper { grid-template-columns: 1fr; }
  #home-cols { grid-template-columns: 1fr; }
  #home-left { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  #hero-inner { flex-direction: column; gap: 20px; text-align: center; }
  #header-inner { flex-direction: column; gap: 12px; text-align: center; }
  #header-contact { text-align: center; }
  #navbar-inner { flex-wrap: wrap; }
  .nav-item > a, .nav-item > span { padding: 10px 12px; font-size: 0.82rem; }
}
