/* =========================================================
   SHARED SITE STYLES ONLY
   Page-specific styles belong in their own CSS files.
   ========================================================= */

:root {
  --sky: #4aa9dc;
  --sky-pale: #e9f6fb;
  --sun: #f3c94d;
  --sun-pale: #fff4c9;
  --leaf: #6c8458;
  --leaf-deep: #435b45;
  --ink: #183547;
  --text: #4d5757;
  --muted: #888e8d;
  --ivory: #fbf8f0;
  --paper: #fffdf8;
  --white: #ffffff;
  --sand: #e8dfcf;
  --line: rgba(24, 53, 71, .12);

  --container: 1180px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --shadow-soft: 0 22px 60px rgba(32, 48, 45, .09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ivory);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.kicker {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.small-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  color: var(--leaf-deep);
  font-size: .77rem;
  font-weight: 700;
}

.section {
  padding-block: 96px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.25;
  font-weight: 500;
}

.section-head__note {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 240, .91);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__sun {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 7px rgba(243, 201, 77, .16);
}

.brand__name,
.brand__sub {
  display: block;
}

.brand__name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
}

.brand__sub {
  margin-top: -2px;
  color: var(--muted);
  font-size: .69rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #627071;
  font-size: .83rem;
}

.site-nav span {
  white-space: nowrap;
  cursor: default;
}

.status-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sun-pale);
  color: #6c5922;
  font-size: .78rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1ece1;
}

.site-footer__inner {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: var(--muted);
}

.site-footer__inner p {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.site-footer__copyright {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
}

.site-footer__role,
.site-footer__location {
  font-size: .76rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .section {
    padding-block: 76px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .status-pill {
    padding: 7px 10px;
    font-size: .7rem;
  }

  .section-head--split {
    display: block;
  }

  .section-head__note {
    margin-top: 14px;
  }

  .site-footer__inner {
    padding-block: 26px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}


/* =========================================================
   Shared header refinement — approved direction
   ========================================================= */
.site-header {
  background: rgba(255, 252, 244, .96);
}

.site-header__inner {
  min-height: 88px;
  grid-template-columns: minmax(235px, auto) 1fr auto;
}

.brand {
  display: block;
}

.brand__signature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__name {
  font-family: "Aref Ruqaa Ink", serif;
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}

.brand__sub {
  margin-top: 5px;
  color: var(--leaf-deep);
  font-size: .67rem;
  font-weight: 500;
}

.brand__branch {
  position: relative;
  width: 42px;
  height: 18px;
  flex: 0 0 auto;
  border-bottom: 1.5px solid #78905f;
  transform: rotate(-12deg);
  opacity: .9;
}

.brand__branch::before,
.brand__branch::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border: 1.5px solid #78905f;
  border-radius: 100% 0 100% 0;
  background: transparent;
}

.brand__branch::before {
  right: 8px;
  bottom: -1px;
  transform: rotate(38deg);
}

.brand__branch::after {
  left: 6px;
  bottom: 2px;
  transform: rotate(-35deg);
}

.site-nav {
  gap: clamp(15px, 1.7vw, 27px);
  font-size: .82rem;
  font-weight: 600;
  color: #334f5b;
}

.site-nav span {
  position: relative;
  padding-block: 7px;
}

.site-nav .is-current::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 34px;
  height: 2px;
  transform: translateX(50%);
  border-radius: 999px;
  background: var(--sun);
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 700px) {
  .brand__name {
    font-size: 1.65rem;
  }

  .brand__sub {
    display: block;
    font-size: .61rem;
  }

  .brand__branch {
    width: 32px;
  }
}


/* Mobile navigation */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(32,48,57,.12);
  border-radius:50%;
  background:#fffaf0;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}
.menu-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--ink);
  transition:transform .2s ease,opacity .2s ease;
}
@media (max-width:900px){
  .site-header{position:relative;z-index:50}
  .site-header__inner{
    position:relative;
    grid-template-columns:1fr auto;
  }
  .menu-toggle{display:flex}
  .site-nav{
    display:none;
    position:absolute;
    top:calc(100% + 1px);
    right:0;
    left:0;
    z-index:60;
    padding:18px 20px 22px;
    border:1px solid var(--line);
    border-top:0;
    border-radius:0 0 18px 18px;
    background:#fffaf0;
    box-shadow:0 18px 34px rgba(32,48,57,.12);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 20px;
    text-align:right;
  }
  .site-nav.is-open{display:grid}
  .site-nav span{
    padding:9px 6px;
    color:var(--ink);
    font-size:.88rem;
  }
  .menu-toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .menu-toggle.is-open span:nth-child(2){opacity:0}
  .menu-toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
}
@media (max-width:700px){
  .header-actions{gap:7px}
  .menu-toggle{width:38px;height:38px}
}


/* Mobile menu reliability fix */
@media (max-width:900px){
  .header-actions{position:relative;z-index:80}
  .menu-toggle{
    position:relative;
    z-index:90;
    pointer-events:auto;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .site-nav{
    z-index:85;
  }
}


/* Mobile menu v4 — explicit visible hamburger icon */
@media (max-width:900px){
  .menu-toggle{
    display:block !important;
    position:relative !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid rgba(32,48,57,.16) !important;
    border-radius:12px !important;
    background:#fffaf0 !important;
    box-shadow:none !important;
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    pointer-events:auto !important;
    z-index:100 !important;
  }

  .menu-toggle::before,
  .menu-toggle::after{
    content:"";
    position:absolute;
    left:10px;
    width:20px;
    height:2px;
    border-radius:999px;
    background:#203039;
    transition:transform .2s ease, top .2s ease;
  }

  .menu-toggle::before{
    top:13px;
    box-shadow:0 7px 0 #203039;
  }

  .menu-toggle::after{
    top:27px;
  }

  .menu-toggle.is-open::before{
    top:20px;
    box-shadow:none;
    transform:rotate(45deg);
  }

  .menu-toggle.is-open::after{
    top:20px;
    transform:rotate(-45deg);
  }

  .site-nav{
    top:100% !important;
    right:14px !important;
    left:14px !important;
    width:auto !important;
    margin-top:0 !important;
  }
}
