/* Macific Holdings — corporate site styles */

:root {
  --navy-900: #060f26;
  --navy-800: #0a1734;
  --navy-700: #112552;
  --navy-600: #1a3372;
  --blue-400: #4f7bef;
  --blue-300: #8fabff;
  --paper: #f6f6f3;
  --paper-2: #ecece7;
  --ink: #0d1424;
  --ink-muted: #56607a;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(13, 20, 36, 0.12);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: "Fustat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light { color: var(--blue-300); }

.muted { color: var(--ink-muted); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(6, 15, 38, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand--logo img { display: block; height: 26px; width: auto; transition: filter 0.3s var(--ease); }
.site-header--inverse .brand--logo img { filter: invert(1); }

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-400), #9fb6ff);
  display: grid;
  place-items: center;
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { background: #fff; color: var(--navy-900); border-color: #fff; }

/* dark header variant on light pages */
.site-header--inverse .brand { color: var(--ink); }
.site-header--inverse .nav-link { color: var(--ink); border-color: var(--line-dark); }
.site-header--inverse .nav-link:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.site-header--inverse.is-solid { background: rgba(246, 246, 243, 0.9); border-bottom-color: var(--line-dark); }
.site-header--inverse.is-solid .brand { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 190px 0 110px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transform: scale(1.05);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 15, 38, 0.96) 12%, rgba(6, 15, 38, 0.7) 52%, rgba(6, 15, 38, 0.45) 100%);
}

.hero .wrap { position: relative; }

.hero h1 { margin: 22px 0 0; max-width: 16ch; }

.hero h1 em {
  font-style: normal;
  color: var(--blue-300);
}

.hero__lede {
  margin-top: 26px;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: #fff; color: var(--navy-900); }
.btn--primary:hover { background: var(--blue-300); }

.btn--ghost { border-color: var(--line); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }

.hero__meta {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.hero__meta strong { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section--tight { padding: 88px 0; }
.section--alt { background: var(--paper-2); }

.section__head { max-width: 62ch; }
.section__head h2 { margin-top: 18px; max-width: 20ch; }
.section__head p { margin-top: 22px; color: var(--ink-muted); }

.about__grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(6, 15, 38, 0.6);
}

.about__media img { width: 100%; height: 100%; object-fit: cover; }

.pillars { display: grid; gap: 14px; }

.pillar {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 123, 239, 0.45);
  box-shadow: 0 24px 50px -34px rgba(6, 15, 38, 0.55);
}

.pillar__idx {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--blue-400);
  font-weight: 700;
}

.pillar h3 { margin: 10px 0 8px; }
.pillar p { color: var(--ink-muted); font-size: 0.97rem; }

/* ---------- Products ---------- */

.products {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.products::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(79, 123, 239, 0.3), transparent 65%);
  pointer-events: none;
}

.products .section__head h2 { color: #fff; }
.products .section__head p { color: rgba(255, 255, 255, 0.7); }
.products .wrap { position: relative; }

.product-card {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.product-card__media { min-height: 380px; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body {
  padding: 48px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.product-card__body h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 22px 0 14px;
  letter-spacing: -0.03em;
}

.product-card__body p { color: rgba(255, 255, 255, 0.72); }

.product-card__owner {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Closing ---------- */

.closing { text-align: center; }
.closing .inner { max-width: 60ch; margin: 0 auto; }
.closing h2 { margin: 20px auto 0; }
.closing p { margin-top: 24px; color: var(--ink-muted); }

.closing__loc {
  margin-top: 34px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 10px 20px;
  background: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 74px 0 34px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.footer__brand { max-width: 36ch; }
.footer__brand .brand { margin-bottom: 16px; }
.brand--logo img { display: block; height: 32px; width: auto; }
.footer__brand p { font-size: 0.95rem; }
.footer__brand .loc { margin-top: 10px; color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; font-style: normal; }

.footer__links { display: grid; gap: 12px; align-content: start; }
.footer__links a { text-decoration: none; font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Legal page ---------- */

.legal-hero {
  background: var(--paper);
  padding: 170px 0 50px;
  border-bottom: 1px solid var(--line-dark);
}

.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 18px; }
.legal-hero .updated { margin-top: 20px; font-size: 0.92rem; color: var(--ink-muted); }
.legal-hero .intro { margin-top: 18px; max-width: 70ch; color: var(--ink-muted); }

.legal-body { padding: 70px 0 110px; }
.legal-body .wrap { max-width: 860px; }

.legal-body section + section { margin-top: 44px; }
.legal-body h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.legal-body p { margin-top: 14px; color: var(--ink-muted); font-size: 1rem; }
.legal-body ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-muted); }
.legal-body li { margin-bottom: 8px; }

.legal-contact {
  display: block;
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: #fff;
  font-style: normal;
}

.legal-contact strong { display: block; color: var(--ink); }

.back-home { margin-top: 56px; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .pillar:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card__media { min-height: 260px; }
  .product-card__body { padding: 34px 26px; }
  .hero { padding: 150px 0 80px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__top { flex-direction: column; }
}
