/* =========================================================
   Aqar Baraqah Sdn Bhd — Ocean Blue theme
   ========================================================= */
:root {
  --ocean-950: #031c33;
  --ocean-900: #052a4a;
  --ocean-800: #063a63;
  --ocean-700: #0a4f86;
  --ocean-600: #0b63a8;   /* logo blue */
  --ocean-500: #1679c4;
  --ocean-400: #3a96d8;
  --ocean-300: #74b9e8;
  --ocean-100: #e3f1fb;
  --ocean-50:  #f2f8fd;
  --aqua:      #3cc4d6;

  --ink: #0f2236;
  --text: #3d5266;
  --muted: #6b7f92;
  --line: #dbe7f1;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(6, 58, 99, .06);
  --shadow: 0 12px 32px -12px rgba(6, 58, 99, .22);
  --shadow-lg: 0 24px 60px -20px rgba(3, 28, 51, .35);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean-600); text-decoration: none; }
a:hover { color: var(--ocean-800); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6em; line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ocean-800); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.2em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 99, 168, .6);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(11, 99, 168, .7); }
.btn-light { background: #fff; color: var(--ocean-800); }
.btn-light:hover { color: var(--ocean-900); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ocean-500); margin-bottom: .9em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor;
  vertical-align: middle; margin-right: 10px; transform: translateY(-2px);
}
.eyebrow-light { color: var(--ocean-300); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.0);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); transition: filter .3s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; white-space: nowrap; }
.brand-sub { font-size: .65rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.site-header.scrolled .brand { color: var(--ocean-800); }
.site-header.scrolled .brand-mark { filter: none; }

.nav-actions { display: flex; align-items: center; gap: 28px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
}
.lang-switch button {
  border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ocean-800); }
.site-header.scrolled .lang-switch { border-color: var(--line); background: var(--ocean-50); }
.site-header.scrolled .lang-switch button { color: var(--muted); }
.site-header.scrolled .lang-switch button[aria-pressed="true"] { background: var(--ocean-600); color: #fff; }
@media (max-width: 1140px) { .nav-actions { gap: 8px; } }
@media (max-width: 480px) {
  .brand { gap: 9px; }
  .brand-name { font-size: 1.1rem; letter-spacing: .02em; }
  .brand-sub { font-size: .58rem; letter-spacing: .24em; }
  .brand-mark { width: 34px; height: 34px; }
  .lang-switch button { padding: 5px 9px; }
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-menu a { white-space: nowrap; }
.nav-menu a:not(.btn) {
  color: rgba(255,255,255,.88); font-weight: 500; font-size: .94rem; position: relative; padding: 6px 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-menu a:not(.btn):hover { color: #fff; }
.site-header.scrolled .nav-menu a:not(.btn) { color: var(--ink); }
.site-header.scrolled .nav-menu a:not(.btn):hover { color: var(--ocean-600); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; position: relative; z-index: 110;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ocean-800); }
.nav-toggle[aria-expanded="true"] span { background: var(--ocean-800); }
.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); }

@media (max-width: 1140px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: #fff; transform: translateY(-100%); transition: transform .4s ease; visibility: hidden;
  }
  .nav-menu.open { transform: none; visibility: visible; }
  .nav-menu a:not(.btn), .site-header.scrolled .nav-menu a:not(.btn) { color: var(--ink); font-size: 1.25rem; }
  .nav-menu .btn { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 90px) 0 170px;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(60,196,214,.28), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(22,121,196,.45), transparent 60%),
    linear-gradient(160deg, var(--ocean-950) 0%, var(--ocean-800) 50%, var(--ocean-600) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-emblem {
  position: absolute; right: -120px; top: 50%; width: 640px; max-width: none; opacity: .07;
  transform: translateY(-55%); animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: translateY(-55%) rotate(360deg); } }
.hero-waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 160px; }
.hero-inner { position: relative; max-width: 1200px; }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05; max-width: 15ch; margin-bottom: .4em;
}
.hero h1 em { font-style: italic; color: var(--ocean-300); }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 58ch; color: rgba(255,255,255,.85); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 3.2em; }
.hero-points {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px;
}
.hero-points li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--aqua); }
.hero-points strong { color: #fff; font-size: 1.05rem; }
.hero-points span { color: rgba(255,255,255,.7); font-size: .88rem; }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .hero { padding: calc(var(--header-h) + 50px) 0 130px; }
  .hero-emblem { width: 420px; right: -180px; }
}
@media (prefers-reduced-motion: reduce) { .hero-emblem { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
@media (max-width: 700px) { .section { padding: 76px 0; } }
.section-tint { background: linear-gradient(180deg, var(--ocean-50), #fff); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-head-light h2 { color: #fff; }
.section-head-light p:last-child { color: rgba(255,255,255,.75); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-card {
  background: radial-gradient(circle at 30% 20%, var(--ocean-50), #fff 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 40px 72px;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; right: 24px; bottom: -36px; background: var(--ocean-800); color: #fff;
  border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.about-badge-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean-300); font-weight: 700; }
.about-badge-value { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.about-badge-value small { font-weight: 500; opacity: .8; }
.values { display: grid; gap: 18px; margin-top: 30px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value h3 { margin-bottom: .2em; font-size: 1.02rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.value-icon, .card-icon, .ci-icon {
  flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--ocean-100); color: var(--ocean-600);
}
.value-icon { width: 46px; height: 46px; }
.value-icon svg, .card-icon svg, .ci-icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-badge { right: 12px; }
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--ocean-500), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 54px; height: 54px; margin-bottom: 22px; transition: background .3s, color .3s; }
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--ocean-600); color: #fff; }
.card p { color: var(--muted); font-size: .96rem; }
.ticks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.ticks li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--ocean-500); border-bottom: 2px solid var(--ocean-500); transform: rotate(-45deg);
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Approach ---------- */
.section-ocean {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(60,196,214,.22), transparent 60%),
    linear-gradient(135deg, var(--ocean-900), var(--ocean-700));
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px); transition: background .3s, transform .3s;
}
.step:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.step-no { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--aqua); margin-bottom: 14px; }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.sectors-grid > div p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6em; }
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sector-list li {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-weight: 600; color: var(--ink); font-size: .95rem; transition: border-color .25s, box-shadow .25s;
}
.sector-list li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--ocean-600)); box-shadow: 0 0 0 4px var(--ocean-100);
}
.sector-list li:hover { border-color: var(--ocean-300); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .sectors-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .sector-list { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 20px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 52px 56px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(60,196,214,.35), transparent 60%),
    linear-gradient(120deg, var(--ocean-700), var(--ocean-500));
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.85); max-width: 56ch; }
@media (max-width: 600px) { .cta-inner { padding: 36px 24px; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff;
  transition: box-shadow .25s, border-color .25s;
}
.faq details[open] { border-color: var(--ocean-300); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ocean-100); color: var(--ocean-600); font-size: 1.2rem; font-weight: 500; transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.ci-icon { width: 48px; height: 48px; }
.contact-list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list address, .site-footer address { font-style: normal; }
.contact-list a, .contact-list span, .contact-list address { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--ocean-600); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--ocean-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ocean-400); background: #fff; box-shadow: 0 0 0 4px rgba(58,150,216,.15);
}
.form-note { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #127a55; }
.form-note.err { color: #b42318; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 26px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-950); color: rgba(255,255,255,.7); padding: 80px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 240px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--aqua); }
.footer-bottom { padding-top: 26px; font-size: .84rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom .reg { white-space: nowrap; }
.disclaimer { color: rgba(255,255,255,.45); font-size: .78rem; max-width: 90ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(3n+2), .steps .step:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3n), .steps .step:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
