:root {
  --navy: #0c2240;
  --navy-2: #1a3f6b;
  --teal: #2471b5;
  --teal-light: #4ccbe8;
  --ink: #15212e;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 34, 64, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }

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

.eyebrow { color: var(--teal); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #1d5f9a; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.nav.scrolled { backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(12,34,64,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.footer .brand { color: #fff; }
.footer .brand img { background: #fff; border-radius: 10px; padding: 4px; }
.brand-name { font-weight: 700; letter-spacing: .16em; font-size: 1.05rem; display: flex; align-items: baseline; gap: 8px; }
.brand-name small { font-weight: 500; letter-spacing: .22em; font-size: .72rem; color: var(--teal); }
.footer .brand-name small { color: var(--teal-light); }
.nav-links { display: flex; gap: 26px; }
.nav-links a.active { color: var(--teal); font-weight: 600; }
.nav-links a { white-space: nowrap; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { background: none; border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: .35em .95em; font: 600 .82rem var(--font); cursor: pointer; }
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* Hero */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 64px; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-title { margin-bottom: 32px; text-align: center; }
.about.about-row { grid-template-columns: 340px 1fr; gap: 32px 48px; align-items: stretch; }
/* Photo fills the height of the text column beside it */
.about-row > .about-photo { height: 100%; aspect-ratio: auto; min-height: 220px; }
.about-row .about-body > p:last-child { margin-bottom: 0; }
.about-row .about-body > p:first-child { margin-top: 0; }
.about-row > .mv { grid-column: 1 / -1; margin-top: 0; }
.section-banner { display: block; width: min(760px, 100%); margin: 0 auto 40px; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.about-body p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25em .8em; border-radius: 999px; margin-bottom: 14px; }
.tag-med { background: rgba(36,113,181,.1); color: var(--teal); }
.tag-out { background: rgba(76,203,232,.15); color: #13809b; }
.tag-pro { background: rgba(12,34,64,.08); color: var(--navy); }
.card { overflow: hidden; }
.card-img { display: block; width: calc(100% + 52px); margin: -26px -26px 18px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.card dl { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.card dt { font-size: .78rem; font-weight: 600; color: var(--teal); }
.card dd { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.custom-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.custom-cta p { margin: 0; font-weight: 500; }
.section-head > p:last-child { color: var(--muted); }
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solutions article { padding: 0 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.sol-img { display: block; width: calc(100% + 52px); margin: 0 -26px 22px; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--teal); }
.solutions h3 { font-size: 1.2rem; }
.solutions p { color: var(--muted); font-size: .93rem; margin: 0; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.mv > div { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; }
.mv h4 { color: var(--teal); margin-bottom: .3em; }
.mv p { font-size: .93rem; color: var(--muted); margin: 0; }
.laminate { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-top: 20px; box-shadow: var(--shadow); }
.sample { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.sample h4 { color: var(--teal); }
.sample ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.offices { display: grid; gap: 18px; margin-top: 28px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.office h4 { color: var(--teal); margin-bottom: .2em; }
.office-name { font-weight: 600; margin: 0 0 6px; }
.office .contact-info { margin-top: 8px; gap: 8px; font-size: .93rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(36,113,181,.1); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px dashed var(--line); }
.card li { font-size: .88rem; padding: 4px 0 4px 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translateY(-50%); }

.rd { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.rd-text p { color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 22px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-no { font-weight: 700; font-size: 1.4rem; color: var(--teal); min-width: 2em; }
.steps h4 { margin-bottom: .2em; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }


.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact > div > p { color: var(--muted); }
.contact-info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 16px; }
.contact-info span { color: var(--muted); min-width: 4.5em; }
.contact-info a, .contact-info em { font-style: normal; font-weight: 500; }
.contact-info a:hover { color: var(--teal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg-alt); padding: 32px; border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(36,113,181,.35); border-color: var(--teal); }
.form textarea { resize: vertical; }

.footer { background: #081a31; color: rgba(255,255,255,.6); padding: 32px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
/* Home page (same order as the current alkaidglobal.com home page) */
.home-hero { padding: 100px 0 0; background: var(--bg); }
.home-hero-box { background: linear-gradient(135deg, #eef3f9 0%, #e6eef7 100%); border-radius: 18px; padding: 72px 32px; text-align: center; position: relative; overflow: hidden; }
.home-hero-box::after { content: ""; position: absolute; inset: 0; background: url(logo-mark.png) right -60px bottom -80px / 340px no-repeat; opacity: .07; pointer-events: none; }
.home-hero-box > * { position: relative; z-index: 1; }
.home-hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: .5em; }
.home-hero .lead { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.1rem); margin: 0 auto; max-width: 46em; }
.home-hero .hero-cta { justify-content: center; margin: 32px 0 0; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-outline:hover { background: rgba(36,113,181,.06); }
.center-head { text-align: center; margin-bottom: 40px; }
.center-head h2 { color: var(--navy); margin: 0; }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px auto 0; max-width: 860px; padding-top: 28px; border-top: 1px solid rgba(12,34,64,.1); }
.home-stats dt { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--teal); }
.home-stats dd { margin: 0; color: var(--muted); font-size: .88rem; }
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.intro-text > p { color: var(--muted); font-size: 1.02rem; }
.intro-single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; }
.link-more { color: var(--teal); font-weight: 600; }
.link-more:hover { text-decoration: underline; }
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mini { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mini > div { padding: 12px 14px 14px; }
.mini .tag { font-size: .68rem; margin-bottom: 6px; }
.mini h3 { font-size: .92rem; line-height: 1.4; color: var(--navy); margin: 0; }
.center-lead { color: var(--muted); max-width: 44em; margin: 14px auto 0; }
.rd-grid .card-icon { margin-bottom: 14px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 4px 18px rgba(12,34,64,.05); }
.adv h3 { color: var(--teal); font-size: 1.1rem; }
.adv p { color: var(--muted); font-size: .92rem; margin: 0; }
.center-btn { text-align: center; margin-top: 36px; }
.cta-center { text-align: center; }
.cta-center p { max-width: 40em; margin: 0 auto 24px; }

/* Sub-page banner */
.page-hero { background: linear-gradient(100deg, rgba(12,34,64,.95) 0%, rgba(12,34,64,.85) 50%, rgba(26,63,107,.45) 100%), url(img/hero-fabric.jpg) center / cover, var(--navy); color: #fff; padding: 132px 0 64px; }
.page-hero .eyebrow { color: var(--teal-light); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .4em; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 40em; margin: 0; font-size: 1.05rem; }

.cta-band { background: linear-gradient(120deg, var(--teal) 0%, #1a5a94 100%); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.solutions article.plain { padding-top: 28px; border-top: 3px solid var(--teal); }
.solutions:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .intro { grid-template-columns: 1fr; }
  .solutions, .solutions:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .about, .rd, .contact { grid-template-columns: 1fr; gap: 32px; }
  .about.about-row { grid-template-columns: 260px 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  /* Narrow screens: links move to a second row that scrolls sideways if needed */
  html { scroll-padding-top: 116px; }
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .nav-links { order: 3; width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 8px 0 10px; border-bottom: 2px solid transparent; }
  .nav-links a.active { border-bottom-color: var(--teal); }
  .page-hero { padding-top: 150px; }
  .home-hero { padding-top: 130px; }
  .home-hero-box { padding: 48px 20px; }
  .section-banner { aspect-ratio: 5 / 2; margin-bottom: 28px; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .adv-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 6px; justify-content: space-between; }
  .nav-links a { font-size: .8rem; }
  .section { padding: 72px 0; }
  .cards, .mv { grid-template-columns: 1fr; }
  .custom-cta { flex-direction: column; align-items: flex-start; }
  .form { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 600px) {
  .about.about-row { grid-template-columns: 1fr; }
  .about-row > .about-photo { height: auto; aspect-ratio: 4 / 3; }
}
