/*
Theme Name: Harat Saida Municipality V4 Wide Hero
Theme URI: https://hostnews.example/
Author: HOSTNEWS
Author URI: https://hostnews.example/
Description: Arabic RTL municipal WordPress theme for بلدية حارة صيدا.
Version: 4.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: harat-saida-municipality
Tags: rtl-language-support, custom-logo, government, municipality, responsive
*/

:root {
  --navy: #06264a;
  --navy-dark: #021d39;
  --navy-deep: #01172e;
  --gold: #d7a52e;
  --gold-dark: #bd8921;
  --gray: #f4f7fb;
  --line: #dce4ef;
  --text: #13233c;
  --muted: #67758a;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(4, 32, 67, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1280px, calc(100% - 34px));
  margin-inline: auto;
}

.top-bar {
  background: linear-gradient(90deg, var(--navy), var(--navy-dark));
  color: var(--white);
  font-size: 14px;
}

.top-bar-inner,
.top-info,
.top-actions,
.header-inner,
.brand,
.main-navigation ul,
.header-tools,
.button-row,
.footer-bottom,
.footer-social {
  display: flex;
  align-items: center;
}

.top-bar-inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 18px;
}

.top-info,
.top-actions {
  gap: 20px;
}

.active-lang,
.top-actions a:hover {
  color: var(--gold);
}

.social-dot,
.footer-social a {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 104px;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  gap: 14px;
  flex: 0 0 auto;
  max-width: 290px;
}

.brand img,
.custom-logo-link,
.custom-logo {
  display: block;
}

.custom-logo-link {
  flex: 0 0 auto;
}

.custom-logo {
  width: auto;
  max-width: 92px;
  max-height: 92px;
  object-fit: contain;
}

.logo-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(#ffffff, #f3f6fa);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.site-title {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
}

.main-navigation {
  flex: 1;
  min-width: 0;
}

.main-navigation ul {
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  position: relative;
  padding: 38px 0 34px;
  color: #101827;
  font-size: 15px;
  font-weight: 800;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gold-dark);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 25px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

.header-tools {
  gap: 12px;
}

.search-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 26px;
  background: var(--white);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 7px;
  background: #1f9d55;
  color: var(--white);
  font-weight: 800;
}

.hero {
  min-height: 430px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4, 32, 67, 0.16), rgba(4, 32, 67, 0.03)),
    url("assets/images/hero.jpg") center / cover no-repeat;
}

.hero-shell {
  padding: 38px 0;
}

.hero-panel {
  width: min(570px, 100%);
  padding: 34px 42px 30px;
  border-radius: 8px;
  background: rgba(2, 29, 57, 0.88);
  color: var(--white);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.18;
  font-weight: 900;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
}

.button-row {
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 900;
}

.btn-primary {
  background: linear-gradient(180deg, #e5b84a, var(--gold));
  color: var(--navy);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.slider-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.9;
}

.slider-dots .active {
  background: var(--gold);
}

.services-strip {
  padding: 14px 0 10px;
  background: var(--white);
  box-shadow: 0 7px 20px rgba(4, 32, 67, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 105px;
  padding: 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(4, 32, 67, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.service-icon.navy {
  background: var(--navy);
}

.service-icon.gold {
  background: linear-gradient(180deg, #e1b84e, var(--gold-dark));
}

.service-card h3 {
  margin: 0 0 2px;
  color: #101827;
  font-size: 18px;
}

.service-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.service-card a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.dashboard-section,
.contact-section {
  padding: 16px 0 0;
  background: #f7f9fc;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
}

.panel,
.mayor-message,
.contact-panel,
.map-placeholder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(4, 32, 67, 0.07);
}

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.panel-header a,
.text-link {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.news-grid,
.announcement-grid {
  display: grid;
  gap: 16px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.news-card-content {
  padding: 12px 14px 16px;
}

.date {
  color: var(--muted);
  font-size: 12px;
}

.news-card h3,
.announcement-card h3 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.55;
}

.announcement-grid {
  grid-template-columns: repeat(2, 1fr);
}

.announcement-card {
  position: relative;
  min-height: 134px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
}

.announcement-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background: #d92929;
}

.gold-dot {
  background: var(--gold);
}

.mayor-section {
  padding: 46px 0;
  background: #f7f9fc;
}

.mayor-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
}

.mayor-layout img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

.mayor-message,
.contact-panel {
  padding: 30px;
}

.mayor-message h2,
.contact-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 30px;
}

.mayor-message p,
.contact-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 46px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.contact-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.map-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("assets/images/town.jpg") center / cover no-repeat;
  color: var(--navy);
  font-weight: 900;
}

.site-footer {
  background: radial-gradient(circle at top, #08345f 0%, var(--navy-deep) 58%);
  color: var(--white);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1.1fr 1.25fr;
  gap: 26px;
  padding: 38px 0 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.footer-contact ul,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  gap: 10px;
}

.newsletter input,
.newsletter button {
  width: 100%;
  min-height: 42px;
  border-radius: 7px;
  border: 0;
  font-family: inherit;
}

.newsletter input {
  margin: 8px 0;
  padding: 0 14px;
  text-align: right;
}

.newsletter button {
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.footer-bottom {
  min-height: 56px;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.credit strong {
  color: var(--gold);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-navigation ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    max-width: none;
  }

  .main-navigation a {
    padding: 8px 0;
  }

  .main-navigation a::after {
    bottom: 0;
  }

  .services-grid,
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .mayor-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-bar-inner,
  .top-info,
  .top-actions,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-info,
  .top-actions {
    gap: 8px;
  }

  .top-bar-inner {
    padding: 10px 0;
  }

  .site-title {
    font-size: 25px;
  }

  .header-tools,
  .button-row {
    width: 100%;
  }

  .whatsapp-link,
  .btn {
    width: 100%;
  }

  .hero {
    min-height: 490px;
  }

  .hero-panel {
    padding: 28px 22px;
  }

  .services-grid,
  .news-grid,
  .announcement-grid,
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}
