/* ==========================================================================
   FAAFI CONNECT LTD — marketing site stylesheet
   ========================================================================== */

:root {
  /* FAAFI CONNECT parent brand: minimalist black + paper + gold */
  --ink:   #0B0B0B;
  --paper: #FAF8F3;
  --gold:  #C9A24A;
  --white: #FFFFFF;

  /* Faafi Footwear sub-brand */
  --fw-navy: #0D1F3C;
  --fw-gold: #C9A84C;

  --text: var(--ink);
  --text-muted: #4A4A4A;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 10px 30px -12px rgba(11, 11, 11, 0.18);
  --shadow-card-hover: 0 16px 36px -12px rgba(11, 11, 11, 0.26);

  --container-width: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold); }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

/* ---------- Focus states (WCAG-AA) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: 4.5rem 0; }
.section h2 { text-align: center; margin-bottom: 2.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -8px rgba(11, 11, 11, 0.4);
}
.btn-primary:hover { background: #1a1a1a; }
.btn-primary:focus-visible { outline-color: var(--gold); }

/* Hero sits on an ink band, so its button flips to a gold-outlined style */
.hero .btn-primary {
  background: transparent;
  color: var(--paper);
  border-color: var(--gold);
  box-shadow: none;
}
.hero .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(11, 11, 11, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger::before,
.hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(11, 11, 11, 0.08);
  display: none;
}
.primary-nav.is-open { display: block; }

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
}

.primary-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 11, 11, 0.06);
}
.primary-nav a:hover { color: var(--gold); }

@media (min-width: 780px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
  }
  .primary-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }
  .primary-nav a { border-bottom: none; padding: 0.5rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 162, 74, 0.14), transparent 45%),
    var(--ink);
}

.hero-inner { max-width: 720px; margin-inline: auto; }

.hero h1 { color: var(--paper); }

.hero .tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero .hero-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: rgba(250, 248, 243, 0.82);
}

/* ---------- Products ---------- */
/* Horizontal slider so more sub-brand cards can be added later without
   breaking the layout. Vertical padding keeps the hover lift/scale below
   from being clipped by the scroll container's own overflow box. */
.card-grid {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.5rem;
  padding-block: 24px;
  padding-inline: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-grid::-webkit-scrollbar { display: none; }
.card-grid:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.card {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1), box-shadow 250ms ease;
}
.card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 28px 48px -16px rgba(11, 11, 11, 0.32);
  z-index: 10;
}

.card h3 { color: var(--ink); }

/* Shared status chip — same neutral colour on every card, deliberately
   independent of each card's brand colour so it always reads as a label. */
.card .tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A1A;
  background: #F5F1E9;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Maal: full indigo canvas, its own brand identity — scoped locally,
   not a global color. The mark's background tile is dropped in markup
   so the M and node sit directly on this card's indigo fill. */
.card-maal {
  background: #2A1E70;
}
.card-maal h3 { color: #F3F4F6; }
.card-maal p { color: #B9AEE8; }
.card-maal .maal-logo {
  display: block;
  width: 60px;
  height: 60px;
}

/* Faafi Homes: full slate canvas with its violet accent — scoped
   locally, not a global color. Mark's background tile is dropped in
   markup so the house and window sit directly on this card's fill. */
.card-homes {
  background: #1F2937;
}
.card-homes h3 { color: #FFFFFF; }
.card-homes p { color: #C7CBD3; }
.card-homes .homes-logo {
  display: block;
  width: 60px;
  height: 60px;
}

/* Faafi Market: stays light (cream + orange brand, and the orange logo
   needs a light backdrop) — orange accent scoped locally, not global. */
.card-market {
  border-top: 3px solid #FF6610;
}
.card-market h3 { color: #FF6610; }
.card-market .market-logo {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 76px;
  object-fit: contain;
}

/* Faafi Footwear sub-brand card override */
.card-footwear {
  background: var(--fw-navy);
  color: var(--fw-gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.card-footwear h3,
.card-footwear p { color: var(--fw-gold); }
.card-footwear .fw-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-inline: auto;
}
.card-footwear .fw-name {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
}
.card-footwear .fw-tagline {
  font-style: italic;
  color: var(--fw-gold);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}


/* ---------- About ---------- */
.about {
  background: var(--white);
}
.about .container { max-width: 760px; text-align: center; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  max-width: 640px;
  margin-inline: auto;
}

address {
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .contact-list { grid-template-columns: 1fr 1fr; }
}

.contact-item dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-item dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.contact-item dd a { color: var(--ink); text-decoration-color: rgba(11,11,11,0.3); }
.contact-item dd a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p { color: rgba(250, 248, 243, 0.85); margin: 0.25rem 0; font-size: 0.9rem; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(250,248,243,0.4); }
.site-footer a:hover { color: var(--gold); }

/* ---------- Subpages (privacy / support templates) ---------- */
.page-header {
  padding-block: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.back-link:hover { color: var(--gold); }

.page-content {
  max-width: 720px;
  padding-block: 3rem 5rem;
}

.page-content .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.prose h2 {
  text-align: left;
  font-size: 1.25rem;
  margin-top: 2rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1em;
}
.prose li { margin-bottom: 0.4em; color: var(--text-muted); }
