/* ===== Osos Alignment Consulting — landing page ===== */
:root {
  --navy: #13243f;
  --navy-deep: #0d1a2e;
  --navy-soft: #243a5e;
  --gold: #b0894c;
  --gold-bright: #c9a35f;
  --cream: #f7f3ec;
  --cream-deep: #efe8db;
  --ink: #1c2738;
  --muted: #5c6678;
  --line: rgba(19, 36, 63, 0.12);
  --white: #ffffff;
  --shadow-lg: 0 30px 60px -28px rgba(13, 26, 46, 0.45);
  --shadow-sm: 0 12px 30px -18px rgba(13, 26, 46, 0.4);
  --radius: 18px;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(176, 137, 76, 0.18);
}

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

h1, h2, h3, .brand-text strong { font-family: "El Messiri", "Tajawal", serif; line-height: 1.25; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.8rem; border-radius: 100px; font-weight: 700; font-size: 1rem;
  font-family: "Tajawal", sans-serif; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 18px 36px -16px rgba(176, 137, 76, .7); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-wa { background: #1faf54; color: #fff; box-shadow: 0 14px 30px -16px rgba(31,175,84,.8); }
.btn-wa:hover { background: #1c9c4b; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--white); padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--gold); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 500; color: var(--navy); font-size: 0.98rem; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  transition: color .25s ease, background .25s ease;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--navy);
  color: var(--gold);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft)); color: var(--cream); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(176,137,76,.28), transparent 60%),
    radial-gradient(45% 45% at 10% 90%, rgba(176,137,76,.14), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.eyebrow {
  display: inline-block; font-size: 0.85rem; letter-spacing: .04em; color: var(--gold-bright);
  border: 1px solid rgba(201,163,95,.4); padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.6rem;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
.lede { margin: 1.5rem 0 2.2rem; font-size: 1.12rem; color: rgba(247,243,236,.82); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-ghost { color: var(--cream); }
.hero-actions .btn-ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.hero-pillars { list-style: none; display: flex; gap: 1.5rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-pillars li { position: relative; padding-inline-start: 1.4rem; color: var(--cream); font-weight: 700; font-family: "El Messiri", serif; font-size: 1.15rem; }
.hero-pillars li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,163,95,.28);
  border-radius: var(--radius); padding: 2rem 1.8rem; backdrop-filter: blur(6px);
}
.hero-card h2 { font-size: 1.4rem; color: var(--gold-bright); margin-bottom: 1.4rem; }
.method { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.method li { display: flex; align-items: center; gap: 1rem; font-size: 1.02rem; color: rgba(247,243,236,.92); }
.method .num { font-family: "El Messiri", serif; font-size: 1.3rem; color: var(--gold); min-width: 2.2rem; }
.method li + li { border-top: 1px dashed rgba(255,255,255,.12); padding-top: 1.1rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 56ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-weight: 700; color: var(--gold); letter-spacing: .05em; font-size: 0.9rem; margin-bottom: 0.8rem; }
.kicker.light { color: var(--gold-bright); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--navy); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.offer-cards { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.offer-title { font-size: 1.25rem; color: var(--navy); margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip { background: var(--cream-deep); color: var(--navy); border-radius: 100px; padding: 0.55rem 1.1rem; font-weight: 500; font-size: 0.96rem; border: 1px solid var(--line); }

/* Services */
.services { background: var(--cream-deep); }
.service-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.7rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service header { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.service-index { font-family: "El Messiri", serif; font-size: 1.7rem; color: var(--gold); }
.service h3 { font-size: 1.35rem; color: var(--navy); }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.service li { position: relative; padding-inline-start: 1.4rem; color: var(--ink); font-size: 0.98rem; }
.service li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* Packages */
.packages { background: var(--cream); }
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; }
.package {
  --accent: var(--gold);
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 2rem 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.package:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.package-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); margin-bottom: 1.1rem;
}
.package-icon svg { width: 28px; height: 28px; }
.package h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.package-for { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.package-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.4rem; }
.package-list li { position: relative; padding-inline-start: 1.7rem; color: var(--ink); font-size: 0.97rem; }
.package-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 18px; height: 18px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.package-result {
  margin-top: auto; background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.96rem; color: var(--navy); font-weight: 500;
}
.package-result span { display: block; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.15rem; }

.package--found    { --accent: #c0563f; }
.package--comply   { --accent: #2f7b78; }
.package--operate  { --accent: #d08a2e; }
.package--organize { --accent: #3f7d52; }

.package-note {
  margin-top: 2.2rem; text-align: center; background: var(--white);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; color: var(--muted); font-size: 0.98rem;
}
.package-note strong { color: var(--navy); }

/* Why */
.why { background: linear-gradient(155deg, var(--navy-deep), var(--navy)); color: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.why-col h2 { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.6rem; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ticks li { position: relative; padding-inline-start: 2rem; color: rgba(247,243,236,.9); font-size: 1.05rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.35em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  background-color: var(--gold);
}

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.client-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.4rem; text-align: center; font-weight: 700; color: var(--navy); font-size: 1.1rem;
  font-family: "El Messiri", serif; box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease;
}
.client-card:hover { transform: translateY(-5px); border-color: var(--gold); }

/* Contact */
.contact { background: var(--cream-deep); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: stretch; }
.contact-info {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--cream);
  border-radius: var(--radius); padding: 2.6rem 2.2rem; box-shadow: var(--shadow-lg);
}
.contact-info h2 { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.contact-lede { color: rgba(247,243,236,.82); margin-bottom: 2rem; }
.contact-channels { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2.2rem; }
.contact-channels li { display: flex; flex-direction: column; gap: 0.2rem; border-inline-start: 3px solid var(--gold); padding-inline-start: 1rem; }
.ch-label { font-size: 0.82rem; color: var(--gold-bright); letter-spacing: .03em; }
.contact-channels a, .contact-channels span:not(.ch-label) { font-size: 1.08rem; color: var(--cream); font-weight: 500; }
.contact-channels a:hover { color: var(--gold-bright); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.contact-actions .btn-ghost { color: var(--cream); }
.contact-actions .btn-ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 2.4rem 2.2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 500; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: "Tajawal", sans-serif; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.8rem 1rem; transition: border-color .25s ease, box-shadow .25s ease; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3b2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,76,.15);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-weight: 500; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #1faf54; }
.form-status.err { color: #c0392b; }

.contact-email-card { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.email-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(176, 137, 76, .12); color: var(--gold); margin-bottom: 1.4rem; }
.email-card-title { font-size: 1.4rem; color: var(--navy); margin-bottom: 0.7rem; }
.email-card-text { color: var(--navy); opacity: .82; line-height: 1.9; margin-bottom: 1.8rem; max-width: 34ch; }
.contact-email-card .btn-gold { margin-bottom: 1.1rem; }
.email-card-address { font-weight: 600; color: var(--gold); letter-spacing: .3px; }
.email-card-address:hover { color: var(--gold-bright); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--cream); padding: 3rem 0 2.2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 1rem; max-width: 46ch; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: var(--white); border-radius: 12px; padding: 5px; }
.footer-brand p { color: rgba(247,243,236,.78); font-size: 0.98rem; }
.footer-meta { display: flex; flex-direction: column; gap: 0.4rem; text-align: end; color: rgba(247,243,236,.7); font-size: 0.92rem; }
.footer-meta a { color: var(--gold-bright); font-weight: 700; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #1faf54; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31,175,84,.7);
  transition: transform .25s ease;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(31,175,84,.5); animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { to { box-shadow: 0 0 0 16px rgba(31,175,84,0); } }

/* Reveal animation — never hides text colour. Content stays fully opaque;
   only a gentle vertical shift animates in, so a stuck/failed transition can
   never leave text invisible (fixes "text only appears on mouse-move"). */
.reveal { transform: translateY(22px); transition: transform .7s ease; will-change: transform; }
.reveal.in { transform: none; }

/* ===== Responsive ===== */

/* Tablet landscape & small laptops (incl. iPad landscape ~1024px) */
@media (max-width: 1080px) {
  .nav-links { gap: 1.05rem; }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { padding: 0.5rem 1rem; }
  .hero-inner { gap: 2.4rem; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .why-grid, .contact-grid { gap: 2.2rem; }
}

/* Tablet portrait (iPad ~768px) & large phones */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1.2rem 6%; gap: 0.4rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow-sm);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.3rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 0.5rem; padding: 0.85rem 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-inner, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .service-stack { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 600px) {
  .service-stack { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .contact-info { padding: 1.9rem 1.4rem; }
  .contact-form-wrap { padding: 1.9rem 1.4rem; }
  .hero-card { padding: 1.6rem 1.3rem; }
  .lede { max-width: none; }
  .wa-float { inset-block-end: 16px; inset-inline-end: 16px; width: 52px; height: 52px; }
}

/* Small phones */
@media (max-width: 380px) {
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text em { font-size: 0.66rem; }
  .hero-pillars { gap: 0.9rem 1.2rem; }
  .contact-channels a, .contact-channels span:not(.ch-label) { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { transform: none; transition: none; }
}
