/* ==========================================================================
   Sultan Enterprise main.css
   Tokens, base, typography, buttons, top bar, header, mobile menu, footer.
   Design: classic corporate white header, navy bands, deep-red actions,
   white bordered cards (client-approved reference layout).
   ========================================================================== */

@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0f1a2e;
  --navy-2: #16233b;
  --navy-3: #1d2d4a;
  --brand-navy: #14233f;
  --red: #b91c1c;
  --red-hover: #991b1b;
  --red-bright: #dc2626;
  --red-tint: #fef2f2;
  --red-line: #fecaca;
  --white: #fff;
  --light: #f8fafc;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --on-dark: #e2e8f0;
  --on-dark-soft: #94a3b8;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* typography */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--font-head); color: var(--ink); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.15; }
.h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); }
.h4 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { text-wrap: pretty; }
.lead { font-size: 1.125rem; color: var(--ink); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--ink); }
.eyebrow { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }

/* layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--short { padding-block: calc(var(--section) * 0.6); }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: var(--on-dark-soft); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--light .section-intro { color: var(--on-dark-soft); }
.section-intro { margin-top: 14px; font-size: 1.05rem; }
.section-head--center .section-intro { margin-inline: auto; max-width: 620px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 10px 20px -10px rgba(185, 28, 28, 0.7); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--red); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon { width: 20px; height: 20px; flex: none; }
.icon-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--red-tint); color: var(--red); border: 1px solid var(--red-line); flex: none; }
.icon-box .icon { width: 20px; height: 20px; }
.icon-box--sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-box--sm .icon { width: 16px; height: 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.25); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { margin-right: auto; flex: none; }
.brand img { width: 150px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 10px 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; color: var(--ink); text-decoration: none; position: relative; }
.has-dropdown .nav-link { padding-right: 2px; }
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.has-dropdown .nav-link::after { right: 2px; }
.nav-item:hover > .nav-link, .nav-item.is-active > .nav-link { color: var(--red); }
.nav-item.is-active > .nav-link::after, .nav-item:hover > .nav-link::after { transform: scaleX(1); }
.nav-caret { display: grid; place-items: center; width: 24px; height: 40px; color: var(--muted); }
.nav-caret .icon { width: 14px; height: 14px; transition: transform 0.3s; }
.nav-item:hover .nav-caret .icon, .nav-item.is-open .nav-caret .icon { transform: rotate(180deg); }
.header-cta { min-height: 44px; padding-inline: 20px; }
.dropdown { position: absolute; top: calc(100% + 16px); left: 0; min-width: 250px; z-index: 50; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.25s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.dropdown--wide { min-width: 320px; }
.nav-item.is-open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) { .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.dropdown__link { display: block; padding: 9px 14px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--light); color: var(--red); }
.dropdown__link[aria-current='page'] { color: var(--red); font-weight: 600; }

.menu-toggle { display: none; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.menu-toggle__bars { position: relative; width: 20px; height: 14px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease); }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--mm-top, 76px) 0 0 0; z-index: 90; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 32px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.m-list { flex: 1; }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); text-decoration: none; text-align: left; }
.m-toggle .icon { color: var(--red); transition: transform 0.3s; }
.m-toggle[aria-expanded='true'] .icon { transform: rotate(45deg); }
.m-sub { padding-bottom: 12px; }
.m-sub a { display: flex; align-items: center; min-height: 42px; padding-left: 14px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.95rem; }
.m-sub a:hover { color: var(--red); border-left-color: var(--red); }
.mobile-menu__foot { display: grid; gap: 8px; padding-top: 24px; }
.mobile-menu__contact { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.mobile-menu__contact .icon { color: var(--red); width: 18px; height: 18px; }
body.menu-open { overflow: hidden; }

/* footer */
.site-footer { background: var(--navy); color: var(--on-dark-soft); font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 0.9fr 1.1fr 1.3fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.brand-plate { display: inline-flex; align-items: center; background: transparent; padding: 0; border-radius: 0; }
.brand-plate img { width: 174px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer__h { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.site-footer ul a { display: inline-block; padding-block: 4px; text-decoration: none; transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.site-footer__contact p { display: flex; gap: 10px; margin-bottom: 12px; }
.site-footer__contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--red-bright); }
.site-footer__contact a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.float-wa { position: fixed; right: 20px; bottom: 80px; z-index: 80; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: var(--shadow-lg); }
.float-wa .icon { width: 26px; height: 26px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s, background-color 0.2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--red); }
