/* =========================================================
   Alrawiya & Alebda Technical Services L.L.C
   Refined, light, teal-accented corporate landing page
   ========================================================= */

:root {
  --teal: #2a6b6b;
  --teal-700: #1f5151;
  --teal-300: #6e8f93;
  --teal-050: #eef5f4;
  --ink: #14201f;
  --slate: #46595a;
  --muted: #74858a;
  --line: #e6ecec;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 31, .04), 0 4px 14px rgba(20, 32, 31, .05);
  --shadow-md: 0 10px 30px rgba(20, 32, 31, .08);
  --shadow-lg: 0 24px 60px rgba(31, 81, 81, .16);

  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { flex: 0 0 auto; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(42, 107, 107, .28); }
.btn--primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(42, 107, 107, .34); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-300); color: var(--teal-700); transform: translateY(-2px); }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1rem; }
.btn--sm { --pad-y: 9px; --pad-x: 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 42px; height: 42px; object-fit: contain; }
.nav__name { display: flex; flex-direction: column; line-height: 1.1; }
.nav__name strong { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.nav__name em { font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--slate); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--teal); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section bits ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.kicker--light { color: rgba(255, 255, 255, .85); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
.section__head { max-width: 640px; margin-bottom: 54px; }
.section__intro { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-050); border: 1px solid #dcebe9; border-color: #d7e8e6;
  padding: 8px 16px; border-radius: 999px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(42,107,107,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 4px rgba(42,107,107,.15);} 50%{ box-shadow:0 0 0 7px rgba(42,107,107,.05);} }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__mesh {
  position: absolute; top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background:
    radial-gradient(closest-side, rgba(42,107,107,.16), transparent 70%),
    radial-gradient(closest-side, rgba(110,143,147,.18), transparent 70%);
  background-position: 30% 30%, 70% 70%;
  background-repeat: no-repeat;
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0,0) scale(1);} to { transform: translate(-4%, 4%) scale(1.08);} }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(42,107,107,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42,107,107,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; margin: 22px 0 0; }
.hero__title .accent { color: var(--teal); position: relative; }
.hero__title .accent::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.16em; background: rgba(42,107,107,.16); border-radius: 4px; z-index:-1; }
.hero__sub { margin-top: 22px; font-size: 1.16rem; color: var(--slate); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats { list-style: none; display: flex; gap: 38px; margin: 46px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--teal); }
.hero__stats span { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* Hero visual */
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
.hero__photo {
  position: relative; margin: 0; width: 100%; max-width: 440px;
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 45%; display: block; }
.badge {
  position: absolute; z-index: 3;
  background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--1 { top: 6%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.badge--2 { bottom: 14%; right: -10%; animation: floaty 5.6s ease-in-out infinite .4s; }
.badge--3 { bottom: -2%; left: 4%; animation: floaty 6.2s ease-in-out infinite .8s; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--teal), transparent); animation: scrolldrop 1.8s ease-in-out infinite; }
@keyframes scrolldrop { 0%{ transform: scaleY(0); transform-origin: top;} 50%{ transform: scaleY(1); transform-origin: top;} 51%{ transform: scaleY(1); transform-origin: bottom;} 100%{ transform: scaleY(0); transform-origin: bottom;} }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about__inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px 56px; align-items: start; }
.about__media { grid-column: 1 / -1; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.about__media img { width: 100%; height: clamp(240px, 38vw, 420px); object-fit: cover; object-position: center 35%; display: block; transition: transform .8s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.lead { font-size: 1.2rem; color: var(--ink); margin: 18px 0 18px; }
.about__main p { margin-bottom: 14px; }
.about__main strong { color: var(--teal-700); }
.about__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: sticky; top: 100px;
}
.about__card h3 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.creds li:last-child { border-bottom: 0; }
.creds__k { color: var(--muted); font-size: .9rem; }
.creds__v { font-family: var(--font-head); font-weight: 600; color: var(--ink); text-align: right; font-size: .92rem; }

/* ---------- Services ---------- */
.grid { display: grid; gap: 22px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d7e8e6; }
.card__media { position: relative; height: 190px; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,32,31,.18)); }
.card__body { padding: 36px 28px 30px; }
.card__icon {
  position: absolute; left: 24px; bottom: -26px; z-index: 2;
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(42,107,107,.32);
  transition: transform .35s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: translateY(-4px); }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card--cta { background: linear-gradient(155deg, var(--teal), var(--teal-700)); border: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px 30px; }
.card--cta h3 { color: #fff; }
.card--cta p { color: rgba(255,255,255,.85); }
.card--cta .btn--primary { background: #fff; color: var(--teal-700); box-shadow: none; align-self: flex-start; }
.card--cta .btn--primary:hover { background: #f0f6f5; }

/* ---------- Projects ---------- */
.projects { background: var(--bg-soft); }
.grid--projects { grid-template-columns: repeat(3, 1fr); }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project__media { position: relative; height: 200px; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.project:hover .project__media img { transform: scale(1.07); }
.project__body { padding: 24px 28px 28px; }
.project__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--teal-050); padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.project h3 { font-size: 1.2rem; font-weight: 700; }
.project__loc { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.projects__note { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; color: var(--slate); font-size: .98rem; }
.projects__note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.projects__note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* ---------- Why ---------- */
.why__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.why__head { position: sticky; top: 100px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__list li { display: flex; gap: 16px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.why__list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: #fff; }
.why__check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.why__list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.why__list p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(70px, 9vw, 130px); }
.contact__card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--teal), var(--teal-700));
  position: relative;
}
.contact__card::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(255,255,255,.06), transparent 45%);
  pointer-events: none;
}
.contact__left { padding: clamp(34px, 5vw, 56px); color: #fff; position: relative; z-index: 1; }
.contact__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.contact__lead { color: rgba(255,255,255,.85); margin: 16px 0 30px; max-width: 38ch; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1.1rem; }
.contact__k { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.contact__v { display: block; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1.02rem; }
a.contact__v:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact__right { background: #fff; padding: clamp(34px, 5vw, 56px); display: flex; align-items: center; position: relative; z-index: 1; }
.contact__cta { width: 100%; }
.contact__cta h3 { font-size: 1.4rem; font-weight: 700; }
.contact__cta p { color: var(--muted); margin: 10px 0 22px; }
.contact__cta .btn { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { background: #0f1a19; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.footer__brand strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1.05rem; }
.footer__brand span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-family: var(--font-head); font-size: .92rem; color: rgba(255,255,255,.7); transition: color .25s; width: max-content; }
.footer__links a:hover { color: #fff; }
.footer__meta p { font-size: .9rem; margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__bottom strong { color: rgba(255,255,255,.85); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: ring 2.4s infinite; }
@keyframes ring { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; min-height: 280px; }
  .hero__photo { max-width: 360px; aspect-ratio: 16 / 11; }
  .about__inner, .why__inner { grid-template-columns: 1fr; }
  .about__card, .why__head { position: static; }
  .grid--services, .grid--projects { grid-template-columns: repeat(2, 1fr); }
  .contact__card { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 8px; }
  .nav__name em { display: none; }

  .grid--services, .grid--projects { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stats strong { font-size: 1.4rem; }
  .badge--2 { right: 0; }
  .badge--1 { left: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
}

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