/* HAQ C&F Limited — shared styles */

:root {
  --cream: #F6EFE6;
  --cream-2: #EDE3D4;
  --ink: #0E2138;
  --ink-2: #1C3350;
  --terracotta: #C46B4E;
  --terracotta-deep: #A5543B;
  --brass: #C9A24A;
  --ocean: #0B4A5E;
  --ocean-deep: #082F3E;
  --mist: #B9C6D1;
  --line: rgba(14, 33, 56, 0.12);
  --line-strong: rgba(14, 33, 56, 0.25);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(48px, 7vw, 112px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(24px, 2.8vw, 40px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--terracotta);
}

.italic { font-style: italic; color: var(--terracotta-deep); }

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 120px 0; position: relative; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 239, 230, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
}
.nav-brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-brand .brand-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.nav-brand .brand-main { display: block; line-height: 1; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }

.nav-cta {
  padding: 10px 22px !important;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.3s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active { background: var(--terracotta); color: var(--cream) !important; transform: translateY(-1px); }
.nav-links a.nav-cta.active::after { display: none !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 32px; gap: 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--f-body);
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-wave {
  position: absolute; top: 0; left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-grid a, .footer-grid p {
  color: rgba(246, 239, 230, 0.7);
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--terracotta); }

.footer-brand-mark {
  display: flex; gap: 14px; align-items: center; margin-bottom: 18px;
}
.footer-brand-mark img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand-mark .fm-name { font-family: var(--f-display); font-size: 26px; }

.footer-bottom {
  border-top: 1px solid rgba(246, 239, 230, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(246, 239, 230, 0.5);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}

/* Page hero (non-home pages) */
.page-hero {
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 14ch; margin-bottom: 32px; }
.page-hero .lead {
  font-size: clamp(18px, 1.8vw, 22px);
  max-width: 58ch;
  color: var(--ink-2);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.5;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  box-shadow: 0 24px 48px -24px rgba(14, 33, 56, 0.18);
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--cream-2);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  padding-right: 48px;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after {
  content: "✦";
  color: var(--terracotta);
  font-style: normal;
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 42ch; color: var(--ink-2); font-size: 17px; }

/* Meta list */
.meta-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: baseline;
}
.meta-row:last-child { border-bottom: none; }
.meta-row .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  min-width: 120px;
}
.meta-row .v { flex: 1; }

/* Section divider */
.divider-dot { display: flex; align-items: center; gap: 12px; margin: 0 auto; justify-content: center; }
.divider-dot::before, .divider-dot::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-strong); }
.divider-dot .dot { width: 6px; height: 6px; background: var(--terracotta); border-radius: 50%; }
