/* MAOR BELL — site styles. Tokens follow the Maor Bell design system. */
:root {
  --navy-900: #0E2238;
  --navy-700: #1F4466;
  --gold-500: #D9A21B;
  --surface-0: #FFFFFF;
  --surface-100: #F7F6F2;
  --surface-200: #ECE9E1;
  --border: #D6D2C7;
  --ink: #14202B;
  --ink-muted: #55606B;
  --danger: #B3261E;
  --on-brand: #FFFFFF;
  --on-brand-muted: #E3E9EF;
  --on-brand-divider: rgba(255, 255, 255, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font: "Heebo", "Open Sans", system-ui, sans-serif;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-100);
}

img, svg { display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 10;
  background: var(--gold-500); color: var(--navy-900); font-weight: 800;
  padding: 12px 20px; border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 104px var(--gutter); }
.section--dark { background: var(--navy-900); color: var(--on-brand); }
.section--quiet { background: var(--surface-200); }

h1, h2, h3 { margin: 0; font-weight: 800; }
.section h2 { font-size: 40px; line-height: 48px; color: var(--navy-900); }
.section--dark h2 { color: var(--on-brand); }
.title-rule { display: inline-block; padding-bottom: 16px; border-bottom: 2px solid var(--gold-500); }
.lead { margin: 20px 0 0; font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 680px; }
.section--dark .lead { color: var(--on-brand-muted); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--radius-md);
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
}
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: #E4B23A; color: var(--navy-900); }
.btn--navy { background: var(--navy-900); color: var(--on-brand); }
.btn--navy:hover { background: var(--navy-700); color: var(--on-brand); }
.btn--ghost { color: var(--on-brand); border: 2px solid rgba(255, 255, 255, 0.6); font-weight: 700; }
.btn--ghost:hover { color: var(--on-brand); border-color: var(--on-brand); }
.btn--lg { font-size: 18px; padding: 16px 28px; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-brand); text-decoration: none; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: 3px; direction: ltr; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--on-brand);
  padding: 32px var(--gutter) 120px; border-bottom: 4px solid var(--gold-500);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav__links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.nav__links a { color: var(--on-brand); text-decoration: none; }
.nav__links a:hover { color: var(--on-brand-muted); text-decoration: underline; }
.hero__body { position: relative; z-index: 1; padding-top: 120px; }
.hero h1 { font-size: 80px; line-height: 88px; letter-spacing: -1px; max-width: 820px; }
.hero h1 span { display: block; }
.hero__sub { margin: 32px 0 0; max-width: 600px; font-size: 21px; line-height: 34px; font-weight: 500; color: var(--on-brand-muted); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.sunrise { position: absolute; left: 48px; bottom: 0; width: 440px; height: auto; }

/* Services */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.services { margin-top: 48px; padding: 0; list-style: none; }
.card {
  background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card h3 { font-size: 21px; line-height: 28px; color: var(--navy-900); }
.card p { margin: 0; font-size: 16px; line-height: 25px; color: var(--ink-muted); }
.card ul { margin: 0; padding: 0 18px 0 0; font-size: 15px; line-height: 26px; }
.card--cta { background: var(--navy-900); color: var(--on-brand); border-color: var(--navy-900); justify-content: space-between; gap: 16px; }
.card--cta h3 { color: var(--on-brand); line-height: 30px; }
.card--cta p { color: var(--on-brand-muted); font-weight: 500; }
.card--cta .btn { align-self: flex-start; }

/* Process */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { padding: 24px 0 24px 24px; border-top: 1px solid var(--on-brand-divider); }
.steps__num { font-size: 18px; font-weight: 800; color: var(--gold-500); }
.steps h3 { margin: 8px 0; font-size: 22px; line-height: 30px; }
.steps p { margin: 0; font-weight: 500; color: var(--on-brand-muted); }

/* Work */
.work { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.project { background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.project h3 { font-size: 24px; line-height: 32px; color: var(--navy-900); }
.project p { margin: 0; color: var(--ink-muted); }
.flow { background: var(--surface-200); border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--navy-900); }
.flow li { background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.flow li:last-child { background: var(--navy-900); color: var(--on-brand); border-color: var(--navy-900); }
.flow__arrow { background: none !important; border: 0 !important; padding: 0 !important; color: var(--navy-900) !important; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--surface-200); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 13px; font-weight: 700; }
.project--open { background: transparent; border: 2px dashed var(--border); justify-content: center; gap: 16px; }
.project--open a { font-weight: 800; }
.note { font-size: 14px; line-height: 22px; }

/* About */
.about { max-width: 760px; margin: 0 auto; }
.about p { margin: 24px 0 0; font-size: 20px; line-height: 34px; }
.about p + p { margin-top: 16px; font-size: 18px; line-height: 30px; color: var(--ink-muted); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__intro { flex: 1 1 320px; }
.contact__intro .btn { margin-top: 32px; }
.form { flex: 1 1 440px; background: var(--surface-0); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); min-height: 44px; background: var(--surface-0);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__hint { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field__error { color: var(--danger); font-size: 14px; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink-muted); border-radius: var(--radius-md); font-size: 15px; font-weight: 700; }
.chip input:checked + span { background: var(--navy-900); color: var(--on-brand); border-color: var(--navy-900); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { font-size: 18px; min-height: 52px; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form__status { margin: 0; font-weight: 700; }
.form__status--ok { color: var(--navy-900); background: var(--surface-200); border-radius: var(--radius-md); padding: 16px; }
.form__status--err { color: var(--danger); }
.form__legal { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Footer */
.footer { background: var(--navy-700); color: var(--on-brand); border-top: 2px solid var(--gold-500); padding: 40px var(--gutter); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700; }
.footer__links a { color: var(--on-brand); }
.footer__links span { color: var(--on-brand-muted); }
.footer .brand__name { font-size: 16px; }

/* Text pages (accessibility, privacy) */
.page-head { background: var(--navy-900); color: var(--on-brand); padding: 32px var(--gutter) 64px; border-bottom: 4px solid var(--gold-500); }
.page-head h1 { margin-top: 64px; font-size: 48px; line-height: 56px; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 104px; }
.prose h2 { margin-top: 40px; font-size: 24px; line-height: 32px; color: var(--navy-900); }
.prose p, .prose li { font-size: 17px; line-height: 30px; }
.prose .meta { color: var(--ink-muted); font-size: 15px; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; }
  .hero { padding: 24px var(--gutter) 200px; }
  .hero__body { padding-top: 64px; }
  .hero h1 { font-size: 44px; line-height: 52px; }
  .hero__sub { font-size: 18px; line-height: 30px; }
  .sunrise { width: 280px; left: 50%; transform: translateX(-50%); }
  .section { padding: 64px var(--gutter); }
  .section h2 { font-size: 32px; line-height: 40px; }
  .form, .project { padding: 24px; }
  .page-head h1 { font-size: 36px; line-height: 44px; margin-top: 40px; }
}
