/* Zahra Software Solutions: modern responsive stylesheet (no framework) */

:root {
  --navy: #0b1b33;
  --navy-2: #12294a;
  --ink: #14233b;
  --muted: #55657c;
  --line: #e3eaf3;
  --tint: #f3f8fe;
  --blue: #1d6fd1;
  --blue-dark: #1558a8;
  --sky: #35b4f0;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 12px 32px -12px rgba(11, 27, 51, .18);
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { display: block; width: auto; }
.brand-mark { height: 42px; }
.brand-word { height: 30px; }

.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: .55rem .9rem; border-radius: 999px; transition: background .2s, color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a.active:not(.btn) { background: var(--tint); color: var(--blue-dark); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #2b8fe0); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 111, 209, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(29, 111, 209, .8); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-sm { min-height: 42px; padding: .55rem 1.25rem; font-size: .92rem; margin-left: .4rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 3.5rem) 0 5rem; overflow: hidden; min-height: min(860px, 100svh); display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 36rem at 85% 0%, rgba(53, 180, 240, .28), transparent 60%),
    radial-gradient(44rem 30rem at 0% 100%, rgba(29, 111, 209, .16), transparent 60%),
    linear-gradient(180deg, #f6fbff 0%, #fff 100%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.1fr .9fr; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.eyebrow-light { color: #8fd3fa; }

h1 { font-size: clamp(2.3rem, 5.4vw + .5rem, 4.4rem); font-weight: 800; }
.grad { background: linear-gradient(120deg, var(--blue) 10%, var(--sky) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--muted); max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.8rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .85rem; font-weight: 500; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: min(420px, 100%); height: auto; position: relative; animation: float 7s ease-in-out infinite; }
.orb { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(53, 180, 240, .35), rgba(29, 111, 209, .08) 65%, transparent 70%); filter: blur(4px); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
h2 { font-size: clamp(1.9rem, 3.2vw + .6rem, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5em; }
.h3-lg { font-size: clamp(1.5rem, 2vw + .6rem, 2rem); line-height: 1.2; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: #bcd9f5; box-shadow: 0 2px 4px rgba(11, 27, 51, .05), 0 22px 40px -16px rgba(29, 111, 209, .3); }
.card p { color: var(--muted); margin: 0; }
.card-flat { box-shadow: none; background: var(--tint); border-color: transparent; }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #e3f1fd, #cfe8fb); margin-bottom: 1.2rem; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.about-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr 1fr; }
.about-grid p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--navy); color: #d7e3f4; overflow: hidden; isolation: isolate; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 27, 51, .88) 0%, rgba(11, 27, 51, .62) 50%, rgba(11, 27, 51, .28) 100%),
    url("../img/dream-pulse-header.jpg") center / cover no-repeat;
}
.contact h2 { color: #fff; text-shadow: 0 2px 18px rgba(11, 27, 51, .55); }
.contact-copy p { text-shadow: 0 1px 12px rgba(11, 27, 51, .6); color: #e8f0fb; }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.contact-copy p { font-size: 1.15rem; max-width: 30rem; }

.form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); background: var(--tint); border: 2px solid transparent; border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); }
.form-status { min-height: 1.5em; margin: 1rem 0 .2rem; font-weight: 500; text-align: center; }
.form-status.ok { color: #0a7d4b; }
.form-status.err { color: #b3261e; }
.fine { font-size: .72rem; line-height: 1.5; color: var(--muted); text-align: center; margin: .5rem 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; z-index: 60;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: min(440px, 100% - 2rem);
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: 0 24px 60px -16px rgba(11, 27, 51, .45);
  animation: cookie-in .35s ease both;
}
.cookie[hidden] { display: none; }
.cookie-title { font: 700 1.05rem/1.2 var(--head); color: var(--navy); margin: 0 0 .4rem; }
.cookie-text { font-size: .9rem; line-height: 1.55; color: var(--muted); margin: 0 0 1rem; }
.cookie-text strong { color: var(--navy); font-weight: 600; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie .btn { flex: 1; min-height: 46px; padding: .6rem 1rem; font-size: .95rem; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.linklike { background: none; border: 0; padding: .35rem .2rem; margin-left: .4rem; font: inherit; color: #c9d7ea; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: #fff; }

/* ---------- Legal / privacy page ---------- */
.page-head { padding: calc(var(--header-h) + 3rem) 0 2.5rem; background: linear-gradient(180deg, #eef7ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.1rem, 4vw + .5rem, 3.4rem); font-weight: 800; margin-bottom: .4rem; }
.page-head .lead { margin-bottom: .6rem; }
.updated { font-size: .85rem; color: var(--muted); margin: 0; }
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.legal h2 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .55rem; }
.legal strong { color: var(--navy); font-weight: 600; }
.legal a:not(.btn) { overflow-wrap: anywhere; }
.legal .back { margin-top: 2.5rem; }
a.linklike { display: inline; }

/* ---------- Footer ---------- */
.site-footer { background: #07142a; color: #9fb2cd; padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.brand-footer img { background: #fff; border-radius: 10px; padding: 4px 6px; height: 40px; width: auto; }
.footer-inner .brand-foot-text { color: #fff; font-family: var(--head); font-weight: 700; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n+3) { transition-delay: .16s; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .chips { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(260px, 58vw); }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 1.5rem); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-bg { background:
    linear-gradient(180deg, rgba(11, 27, 51, .88) 0%, rgba(11, 27, 51, .55) 45%, rgba(11, 27, 51, .3) 100%),
    url("../img/dream-pulse-header.jpg") center / cover no-repeat; }
  .contact-copy { text-align: center; }
  .contact-copy p { margin-inline: auto; }
}

/* ---------- Mobile nav + phones ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: rgba(255, 255, 255, .98); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(11, 27, 51, .3);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .site-nav .btn-sm { margin: .5rem 0 0; min-height: 50px; }
  .nav-open .site-header { background: #fff; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card { padding: 1.5rem; }
  .brand-mark { height: 38px; }
  .brand-word { height: 26px; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1500px) {
  .wrap { width: min(1280px, 100% - 4rem); }
}

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero-bg, .contact-bg, .form, .cookie { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
