/* Kawkab Gaza — shared site styles */

:root{
  --bg:#ffffff;
  --ink:#0b1f3a;
  --muted:#556070;
  --line:#e6e9ef;
  --card:#f7f9fc;

  --brand:#2a9d8f;     /* teal */
  --brand2:#e9c46a;    /* gold */
  --danger:#b42318;

  --max:1120px;
  --radius:14px;
  --shadow:0 10px 30px rgba(11,31,58,.08);
}
/* ===== Mobile Responsiveness Safety Net ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* prevents accidental horizontal scroll */
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* If you use any container/wrapper */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* If you use flex layouts anywhere */
.flex, .row, .header, .nav, .grid {
  flex-wrap: wrap; /* prevents items forcing a wide layout */
}

.flex > *, .row > *, .grid > * {
  min-width: 0; /* critical: prevents long text from forcing overflow */
}

/* Optional: tame long words/URLs that can blow up width */
p, a, li, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .container { padding-left: 14px; padding-right: 14px; }

  /* Common navigation patterns */
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* If you have columns */
  .two-col, .columns, .layout {
    display: block;
  }

}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
}

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

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

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  z-index:9999;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width: 220px;     /* optional: gives the logo space */
  flex:0 0 auto;
}

/* Prefer targeting a dedicated class on the logo <img> */
.brand-logo{
  height:52px;          /* "big logo" */
  width:auto;
  max-width:320px;      /* prevents the logo from eating the whole header */
  display:block;
}

/* Fallback if you did NOT add class="brand-logo" in HTML */
.brand img{
  height:52px;
  width:auto;
  max-width:320px;
  display:block;
}

@media (max-width: 860px){
  .brand{ min-width: 160px; }
  .brand-logo,
  .brand img{
    height:42px;        /* slightly smaller on mobile */
    max-width:240px;
  }
}
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  font-size:14px;
  color:var(--ink);
  padding:8px 10px;
  border-radius:10px;
  white-space:nowrap;
}
.nav a.active{
  background:rgba(42,157,143,.10);
  border:1px solid rgba(42,157,143,.22);
  text-decoration:none;
}
.nav .lang{
  border:1px solid var(--line);
  background:#fff;
}
.nav .lang:hover{
  text-decoration:none;
  border-color:rgba(42,157,143,.35);
}

.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-size:14px;
}
.menu-btn:hover{ cursor:pointer; }

@media (max-width: 860px){
  .menu-btn{ display:inline-flex; }
  .nav{
    display:none;
    width:100%;
    padding:10px 0 2px;
    border-top:1px solid var(--line);
  }
  .nav.open{ display:flex; }
  .header-inner{
    flex-wrap:wrap;
  }
}

/* Hero */
.hero{
  padding:56px 0 22px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(1200px 420px at 20% 0%, rgba(233,196,106,.25), transparent 55%),
    radial-gradient(1200px 420px at 85% 0%, rgba(42,157,143,.22), transparent 55%);
}
.hero h1{
  margin:0 0 10px;
  font-size:40px;
  letter-spacing:-.02em;
}
.hero p{
  margin:0 0 18px;
  max-width: 72ch;
  color:var(--muted);
  font-size:16px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
  font-size:14px;
}
.btn:hover{ text-decoration:none; border-color:rgba(42,157,143,.35); }
.btn.primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn.primary:hover{ filter:brightness(.98); }
.btn.ghost{
  background:transparent;
}

/* Content blocks */
.section{ padding:26px 0; }
.grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 6;
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h2{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0 0 12px; color:var(--muted); }
.card .btn{ margin-top:6px; }

@media (max-width: 860px){
  .hero h1{ font-size:32px; }
  .card{ grid-column: span 12; }
}

/* Page */
.page{
  padding:30px 0 44px;
}
.page h1{
  margin:0 0 10px;
  font-size:30px;
}
.page .lead{
  color:var(--muted);
  max-width: 78ch;
  margin:0 0 18px;
}
.page h2{
  margin:22px 0 10px;
  font-size:18px;
}
.page ul{ margin:10px 0 0 18px; }
.note{
  border:1px solid rgba(233,196,106,.55);
  background: rgba(233,196,106,.12);
  padding:12px 14px;
  border-radius: 12px;
  color:#3b3b3b;
}
/* ===== Contact Form ===== */
.contact-form-section {
  margin-top: 24px;
}

.contact-form {
  width: 100%;
  max-width: 720px;
  margin-top: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 10px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.muted {
  opacity: 0.75;
}

.fineprint {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 0 26px;
  color:var(--muted);
  font-size:14px;
}
.footer-inner{
  display:flex;
  gap:14px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.footer-links a{ color:var(--muted); }
.footer-links a:hover{ color:var(--ink); }
.footer-social{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.footer-social a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

.footer-social a:hover{
  color:var(--brand);
  text-decoration:underline;
}
.footer-social{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}

.footer-social a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

.footer-social a:hover{
  color:var(--brand);
  text-decoration:underline;
}

.footer-social .ico{
  width:16px;
  height:16px;
  fill:currentColor;
  flex:0 0 auto;
}
/* Default hover stays brand */
.footer-social a:hover { color: var(--brand); }

/* Platform-specific hover colors */
.footer-social a[data-platform="facebook"]:hover { color: #1877F2; }  /* Facebook */
.footer-social a[data-platform="x"]:hover { color: #111827; }        /* X (near-black) */
.footer-social a[data-platform="instagram"]:hover { color: #E1306C; }/* Instagram */

/* RTL support */
[dir="rtl"] body{
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}
[dir="rtl"] ul{ margin:10px 18px 0 0; }
