/*
Theme Name: AGD Website
Theme URI: https://www.treasury.gov.jm
Author: Sapphire Software Solutions
Description: Custom theme for the Accountant General's Department, Government of Jamaica.
Version: 1.0.0
License: Proprietary
Text Domain: agd-theme
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --navy:       #1F4E79;
  --navy-dark:  #163A5F;
  --navy-light: #2E6DA4;
  --gold:       #C9A227;
  --gold-light: #E8C547;
  --white:      #FFFFFF;
  --light-bg:   #F5F7FA;
  --border:     #D0D7DE;
  --body-text:  #1A1A2E;
  --success:    #1a7a4a;
  --error:      #C0392B;
  --font:       Arial, Helvetica, sans-serif;
  --container:  1200px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--white);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--navy-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem;  font-weight: 700; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary  { background: var(--gold);  color: var(--navy-dark); border-color: var(--gold);  }
.btn-primary:hover  { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover  { background: var(--navy); color: var(--white); }
.btn-white    { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover    { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-navy     { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover     { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section       { padding: 4rem 0; }
.section--light { background: var(--light-bg); }
.section--navy  { background: var(--navy); color: var(--white); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { color: var(--navy); margin-bottom: 0.5rem; }
.section--navy .section-header h2 { color: var(--white); }
.section-header p  { color: #555; font-size: 1.05rem; }
.section--navy .section-header p  { color: rgba(255,255,255,0.85); }
.section-divider { width: 60px; height: 4px; background: var(--gold); margin: 0.75rem auto 0; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.5rem; z-index: 9999; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER — GOJ TOP BAR
   ============================================================ */
.header-top-bar { background: var(--navy-dark); padding: 0.45rem 0; }
.header-top-bar .container { display: flex; align-items: center; gap: 0.65rem; }
.goj-coa-placeholder {
  width: 34px; height: 34px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: var(--navy-dark);
  text-align: center; flex-shrink: 0; line-height: 1.2;
}
.goj-text {
  color: rgba(255,255,255,0.9); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ============================================================
   HEADER — MAIN NAV BAR
   ============================================================ */
.site-header-main {
  background: var(--navy); padding: 0.7rem 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.site-header-main .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.site-branding {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; flex-shrink: 1; min-width: 0; max-width: 420px;
}
.agd-logo-placeholder {
  width: 46px; height: 46px; background: var(--gold); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--navy-dark);
  text-align: center; flex-shrink: 0; line-height: 1.3;
}
.site-branding-text .dept-name    { font-size: 1rem; font-weight: 700; color: var(--white); display: block; line-height: 1.25; }
.site-branding-text .dept-subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.7); display: block; letter-spacing: 0.2px; }

/* NAV */
.site-nav { display: flex; align-items: center; }
.site-nav { display: flex; align-items: center; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu li a {
  display: block; padding: 0.5rem 0.6rem;
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { color: var(--gold); background: rgba(255,255,255,0.08); }

/* Pensioners — gold pill badge */
.nav-menu li.nav-pensioners a {
  color: var(--navy-dark) !important;
  font-weight: 700;
  background: var(--gold) !important;
  border-radius: 3px;
}
.nav-menu li.nav-pensioners a:hover { background: var(--gold-light) !important; color: var(--navy-dark) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; width: 44px; height: 44px;
  background: transparent; border: 2px solid rgba(255,255,255,0.4);
  border-radius: 4px; gap: 5px; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: all 0.25s ease; transform-origin: center;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  background-size: cover; background-position: center;
  background-blend-mode: multiply;
  min-height: 520px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,58,95,0.85) 0%, rgba(22,58,95,0.5) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 4rem 1.25rem; }
.hero-content { max-width: 660px; }
.hero-eyebrow {
  display: inline-block; background: var(--gold); color: var(--navy-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 2px; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); font-size: 2.5rem; line-height: 1.15; margin-bottom: 1.25rem; }
.hero p  { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }
.hero .btn { font-size: 1.05rem; padding: 1rem 2.25rem; }

/* ============================================================
   IMPACT COUNTERS
   ============================================================ */
.counters-section { background: var(--navy); padding: 3rem 0; }
.counters-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; text-align: center;
}
.counter-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.counter-item:last-child { border-right: none; }
.counter-number {
  font-size: 3rem; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 0.5rem; display: block;
}
.counter-label {
  color: rgba(255,255,255,0.85); font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============================================================
   NOTICE CARDS (Homepage + Notices page)
   ============================================================ */
.notices-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.notice-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.5rem; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}
.notice-card:hover { box-shadow: 0 6px 20px rgba(31,78,121,0.12); transform: translateY(-2px); }
.notice-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.notice-category {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 0.2rem 0.6rem; border-radius: 2px;
}
.notice-category--tender  { background: #E3F0FF; color: #1565C0; }
.notice-category--ceo     { background: #FFF3E0; color: #BF360C; }
.notice-category--general { background: #E8F5E9; color: #2E7D32; }
.notice-date { font-size: 0.8rem; color: #666; }
.notice-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.35; }
.notice-card p  { font-size: 0.9rem; color: #444; flex: 1; margin-bottom: 1.25rem; line-height: 1.6; }
.notice-read-more {
  font-size: 0.875rem; font-weight: 700; color: var(--navy);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: auto;
}
.notice-read-more:hover { color: var(--gold); }
.notice-read-more::after { content: ' \2192'; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding: 3rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer-brand p {
  margin-top: 1rem; font-size: 0.85rem;
  line-height: 1.7; color: rgba(255,255,255,0.7);
}
.footer-heading {
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.875rem; transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-info { font-size: 0.875rem; line-height: 2.1; color: rgba(255,255,255,0.75); }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; font-size: 0.78rem; font-weight: 700;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--navy); padding: 2.5rem 0; }
.page-hero .breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 0.6rem; }
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 700px; margin: 0; }

/* ============================================================
   PENSIONERS PAGE — ACTION CARDS
   ============================================================ */
.action-cards-section { padding: 3rem 0; }
.action-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.action-card {
  background: var(--white); border: 2px solid var(--border); border-radius: 8px;
  padding: 2.25rem 1.75rem; text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.action-card:hover { border-color: var(--navy); box-shadow: 0 8px 28px rgba(31,78,121,0.14); }
.action-card-icon {
  width: 68px; height: 68px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.85rem;
}
.action-card h2 { color: var(--navy); font-size: 1.2rem; margin-bottom: 0.65rem; }
.action-card > p { color: #555; font-size: 0.95rem; margin-bottom: 1.25rem; }
.action-card .btn { width: 100%; text-align: center; display: block; font-size: 0.95rem; }

/* Life Certificate expand panel */
.life-cert-options {
  display: none; background: var(--light-bg); border-radius: 6px;
  padding: 1rem; margin-top: 1rem; text-align: left;
  border: 1px solid var(--border);
}
.life-cert-options.is-open { display: block; }
.life-cert-option-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 4px;
  text-decoration: none; color: var(--navy);
  font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem;
  transition: background var(--transition), color var(--transition);
}
.life-cert-option-link:hover { background: var(--navy); color: var(--white); }
.life-cert-option-link:last-child { margin-bottom: 0; }
.life-cert-option-link .opt-icon { font-size: 1.1rem; }

/* ============================================================
   PENSIONERS PAGE — MOBILE DRIVE SCHEDULE
   ============================================================ */
.mobile-drive-section { padding: 3rem 0; background: var(--light-bg); }
.mobile-drive-section .section-lead { font-size: 1rem; color: #555; margin-bottom: 2rem; }
.mobile-drive-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mobile-drive-table thead { background: var(--navy); }
.mobile-drive-table thead th {
  color: var(--white); text-align: left;
  padding: 0.875rem 1rem; font-size: 0.82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.mobile-drive-table tbody tr { border-bottom: 1px solid var(--border); }
.mobile-drive-table tbody tr:last-child { border-bottom: none; }
.mobile-drive-table tbody tr:nth-child(even) { background: #F8FAFE; }
.mobile-drive-table tbody td { padding: 0.875rem 1rem; font-size: 0.95rem; vertical-align: top; }
.mobile-drive-table tbody td:first-child { font-weight: 700; color: var(--navy); }
.table-note { margin-top: 1rem; font-size: 0.82rem; color: #666; font-style: italic; }

/* ============================================================
   PENSIONERS PAGE — FAQ ACCORDION
   ============================================================ */
.faq-section { padding: 3rem 0; }
.faq-section .section-lead { color: #555; margin-bottom: 2rem; font-size: 1rem; }
.faq-list { max-width: 800px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 0.75rem; overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; background: var(--white); cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--navy);
  border: none; width: 100%; text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--light-bg); }
.faq-question.is-open { background: var(--navy); color: var(--white); }
.faq-icon {
  width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.1rem; font-weight: 300; transition: transform var(--transition);
  line-height: 1;
}
.faq-question.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 1.1rem 1.25rem; background: var(--light-bg);
  font-size: 1rem; color: #444; line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-answer.is-open { display: block; }

/* ============================================================
   NOTICES PAGE
   ============================================================ */
.notices-page-section { padding: 3rem 0; }
.notices-filter { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-label { font-size: 0.85rem; font-weight: 700; color: #555; margin-right: 0.25rem; }
.filter-btn {
  padding: 0.5rem 1.25rem; border: 2px solid var(--border);
  background: var(--white); color: var(--body-text); border-radius: 4px;
  font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.notices-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.notice-card-full p { font-size: 0.9rem; line-height: 1.65; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 3rem 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.contact-form-wrap h2 { color: var(--navy); margin-bottom: 1.5rem; }

/* CF7 Form Styles */
.wpcf7-form .form-row { margin-bottom: 1rem; }
.wpcf7-form label {
  display: block; font-weight: 700; font-size: 0.875rem;
  color: var(--body-text); margin-bottom: 0.35rem;
}
.wpcf7-form .required-star { color: var(--error); margin-left: 2px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: 4px;
  font-size: 1rem; font-family: var(--font); color: var(--body-text);
  background: var(--white); transition: border-color var(--transition);
  appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,78,121,0.1); }
.wpcf7-form textarea { height: 140px; resize: vertical; }
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  background: var(--navy); color: var(--white); border: none;
  padding: 0.9rem 2.5rem; font-size: 1rem; font-weight: 700;
  border-radius: 4px; cursor: pointer; transition: background var(--transition);
  font-family: var(--font); margin-top: 0.5rem;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover { background: var(--navy-dark); }
.wpcf7-response-output {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  border-radius: 4px; font-size: 0.95rem; font-weight: 600; border: none !important;
}
.wpcf7-mail-sent-ok,
.sent-ok  { background: #E8F5E9; color: var(--success); border-left: 4px solid var(--success) !important; }
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng { background: #FFEBEE; color: var(--error); border-left: 4px solid var(--error) !important; }
.ticket-reference { font-size: 1rem; margin-top: 0.5rem; color: var(--navy); }
.ticket-reference strong { font-weight: 700; }

/* Contact Info */
.contact-info-wrap h2 { color: var(--navy); margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-icon {
  width: 36px; height: 36px; background: var(--navy); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem; flex-shrink: 0;
}
.contact-info-text { font-size: 0.95rem; line-height: 1.65; }
.contact-info-text strong {
  display: block; color: var(--navy); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem;
}
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: var(--white); padding: 0.6rem 1.25rem;
  border-radius: 4px; text-decoration: none; font-weight: 700;
  font-size: 0.9rem; margin-top: 0.75rem; transition: background var(--transition);
}
.whatsapp-btn:hover { background: #1ebe5d; color: var(--white); }
.map-embed { margin-top: 2rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 260px; }
.office-hours { font-size: 0.875rem; color: #444; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.office-hours strong { color: var(--navy); display: block; margin-bottom: 0.25rem; }

/* ============================================================
   GENERIC PAGE (About, Services, Publications placeholders)
   ============================================================ */
.generic-page { padding: 4rem 0; }
.generic-page .container { max-width: 900px; }
.placeholder-notice {
  background: var(--light-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: 4px;
  padding: 1.5rem; margin-top: 1.5rem;
}
.placeholder-notice p { margin: 0; color: #555; font-size: 0.95rem; }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap { padding: 6rem 0; text-align: center; }
.error-code { font-size: 7rem; font-weight: 700; color: var(--navy); line-height: 1; opacity: 0.12; }
.error-404-wrap h1 { color: var(--navy); margin-bottom: 1rem; }
.error-404-wrap p  { color: #555; font-size: 1.05rem; margin-bottom: 2rem; }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hp-hero {
  background: linear-gradient(135deg, #F0F4F8 0%, #ffffff 60%, #FFF8E7 100%);
  padding: 4rem 0 0;
  overflow: hidden;
  position: relative;
}
.hp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 560px;
}
.hp-hero__eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hp-hero__title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hp-hero__accent { color: var(--gold); }
.hp-hero__sub {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hp-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn--lg { font-size: 1rem; padding: 0.85rem 2rem; }
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.hp-hero__trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: inline-flex;
}
.hp-trust-badge { text-align: center; }
.hp-trust-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.hp-trust-lbl { font-size: 0.75rem; color: #666; }
.hp-trust-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero image */
.hp-hero__img-wrap {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}
.hp-hero__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 60px rgba(31,78,121,0.25);
}
.hp-hero__img-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.hp-img-badge__icon {
  background: #E8F5E9;
  color: #2e7d32;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hp-hero__wave {
  margin-top: 1rem;
  line-height: 0;
}
.hp-hero__wave svg { width: 100%; height: 60px; }

/* ============================================================
   HOMEPAGE — COUNTERS
   ============================================================ */
.hp-counters {
  background: var(--light-bg);
  padding: 3rem 0;
}
.hp-counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.hp-counter {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hp-counter:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.hp-counter__icon { display: block; font-size: 2rem; margin-bottom: 0.5rem; }
.hp-counter__num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.hp-counter__lbl { font-size: 0.85rem; color: #555; font-weight: 600; }

/* ============================================================
   HOMEPAGE — PENSIONERS FEATURE
   ============================================================ */
.hp-feature {
  padding: 5rem 0;
  background: #fff;
}
.hp-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hp-feature__img-stack {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}
.hp-feature__img--main {
  border-radius: 16px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(31,78,121,0.2);
}
.hp-feature__img--accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hp-feature__stat-bubble {
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
  line-height: 1.3;
}
.hp-feature__stat-bubble strong { display: block; font-size: 1.4rem; }
.hp-feature__stat-bubble span { font-size: 0.78rem; }

.hp-section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hp-section-tag--light { color: rgba(255,255,255,0.8); }
.hp-feature__content h2 {
  font-size: 2.2rem;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hp-feature__content p { color: #444; line-height: 1.8; margin-bottom: 1.5rem; font-size: 1.05rem; }
.hp-feature__list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}
.hp-feature__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.97rem;
  color: #333;
  border-bottom: 1px solid #F0F0F0;
}
.hp-check {
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   HOMEPAGE — SERVICES GRID
   ============================================================ */
.hp-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hp-service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hp-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(31,78,121,0.15);
  border-color: var(--navy);
  color: inherit;
}
.hp-service-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.hp-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.hp-service-card__desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.hp-service-card__arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

/* ============================================================
   HOMEPAGE — QUOTE BAND
   ============================================================ */
.hp-quote-band {
  background: var(--navy);
  padding: 5rem 0;
  overflow: hidden;
}
.hp-quote-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hp-quote-band__img {
  border-radius: 12px;
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.85;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.hp-quote-band__text .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hp-quote-band__text .btn-outline:hover { background: rgba(255,255,255,0.15); }
.hp-quote-band__text p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.8; }
.hp-quote {
  font-size: 1.55rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.hp-quote__accent { color: var(--gold); font-weight: 700; font-style: normal; }

/* ============================================================
   HOMEPAGE — CTA BANNER
   ============================================================ */
.hp-cta-banner {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}
.hp-cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-cta-banner__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hp-cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,58,95,0.88) 0%, rgba(31,78,121,0.82) 100%);
}
.hp-cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.hp-cta-banner__content h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hp-cta-banner__content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hamburger nav — activates at 1280px so all 7 items never overflow */
@media (max-width: 1280px) {
  .site-branding-text .dept-subtitle { display: none; }
  .hamburger { display: flex; }
  .site-nav { position: relative; }
  .nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: calc(100% + 0.75rem); right: 0;
    background: var(--navy-dark); min-width: 230px; border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3); padding: 0.5rem 0; z-index: 999;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { padding: 0.8rem 1.25rem; border-radius: 0; font-size: 0.95rem; }
  .nav-menu li.nav-pensioners a { border-radius: 0; margin: 0.25rem 0; }
}

/* Tablet layout */
@media (max-width: 1024px) {
  .hp-hero__inner       { grid-template-columns: 1fr; }
  .hp-hero__img-wrap    { display: none; }
  .hp-hero__title       { font-size: 2rem; }
  .hp-hero__trust       { flex-wrap: wrap; }
  .hp-counters__grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-feature__inner    { grid-template-columns: 1fr; }
  .hp-feature__img-col  { display: none; }
  .hp-services__grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-quote-band__inner { grid-template-columns: 1fr; }
  .hp-quote-band__img-col { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .notices-full-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .section { padding: 2.5rem 0; }
  .hp-hero__title       { font-size: 1.65rem; }
  .hp-hero__ctas        { flex-direction: column; }
  .hp-counters__grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-services__grid    { grid-template-columns: 1fr; }
  .hp-cta-banner        { padding: 4rem 0; }
  .hp-cta-banner__content h2 { font-size: 1.6rem; }

  /* Hero */

  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p  { font-size: 1rem; }

  /* Counters */
  .counters-grid { grid-template-columns: 1fr; }
  .counter-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .counter-item:last-child { border-bottom: none; }
  .counter-number { font-size: 2.5rem; }

  /* Cards */
  .notices-grid     { grid-template-columns: 1fr; }
  .action-cards-grid { grid-template-columns: 1fr; }

  /* Mobile Drive Table — card layout */
  .mobile-drive-table thead { display: none; }
  .mobile-drive-table,
  .mobile-drive-table tbody,
  .mobile-drive-table tr,
  .mobile-drive-table td { display: block; width: 100%; }
  .mobile-drive-table tr {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 6px; margin-bottom: 0.75rem; padding: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .mobile-drive-table td {
    padding: 0.4rem 0.75rem; font-size: 0.95rem; border: none;
  }
  .mobile-drive-table td::before {
    content: attr(data-label) ': ';
    font-weight: 700; color: var(--navy); font-size: 0.8rem;
  }
  .mobile-drive-table td:first-child {
    background: var(--navy); color: var(--white) !important;
    border-radius: 4px; margin-bottom: 0.4rem;
    font-size: 1rem; padding: 0.6rem 0.75rem;
  }
  .mobile-drive-table td:first-child::before { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-branding-text .dept-name { font-size: 0.85rem; }
  .site-branding-text .dept-subtitle { display: none; }
  .hero h1 { font-size: 1.5rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 0.75rem; }
  .notices-full-grid { grid-template-columns: 1fr; }
}
