/* ========================================
   Marcean — Typography-driven single page
   Modernised for 2026 best practices
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f7f6f3;
  --color-bg-alt: #edeae4;
  --color-bg-dark: #0c0f14;
  --color-fg: #1a1a1a;
  --color-fg-muted: #6b6560;
  --color-fg-light: #f7f6f3;
  --color-accent: #b08d57;
  --color-accent-hover: #967640;
  --color-whatsapp: #25d366;
  --color-border: #d9d4cc;
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1000px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --color-fg-light-muted: rgba(255, 255, 255, 0.65);
  --color-fg-light-dimmed: rgba(255, 255, 255, 0.6);
  --color-accent-bg: rgba(176, 141, 87, 0.12);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-accent);
  color: #fff;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5rem;
}

/* --- Scroll-driven reveal animation --- */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section .container {
  margin: auto;
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(12, 15, 20, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
}

.header__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-fg-light);
  transition: opacity 0.2s ease;
}

.header__logo:hover {
  opacity: 0.8;
}

/* --- Sections --- */
.section {
  min-height: 80vh;
  display: flex;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-fg-light);
}

.section--light {
  background: var(--color-bg);
  color: var(--color-fg);
}

.section--alt {
  background: var(--color-bg-alt);
  color: var(--color-fg);
}

.section--alt .lead {
  color: var(--color-fg-muted);
}

.section--alt .contact-email-line {
  color: var(--color-fg-muted);
}

.section--alt .contact-email {
  color: var(--color-fg);
  text-decoration-color: rgba(26, 26, 26, 0.3);
}

.section--alt .contact-email:hover {
  text-decoration-color: var(--color-fg);
}

.section--hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* --- Jumbo Typography --- */
.jumbo {
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.jumbo--section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.jumbo--light {
  color: var(--color-fg-light);
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
  padding: 0.4rem 1rem;
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid rgba(176, 141, 87, 0.2);
  border-radius: 100px;
  width: fit-content;
}

/* --- Lead text --- */
.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-fg-light-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

/* --- Card Base Component --- */
.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.card--bg-alt {
  background: var(--color-bg-alt);
}

.card--bg-light {
  background: var(--color-bg);
}

.card--interactive {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  background-color: var(--color-fg);
  color: var(--color-fg-light);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  background-color: var(--color-accent);
  color: #0c0f14;
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 24px rgba(176, 141, 87, 0.3);
}

.btn__icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* --- Brand List (What We Source) --- */
.brand-list {
  display: grid;
  gap: 1rem;
}

.brand {
  /* Base card styling via HTML classes */
}

.brand:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 16px rgba(176, 141, 87, 0.08);
}

.brand__name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.brand__desc {
  font-size: 0.95rem;
  color: var(--color-fg-muted);
  line-height: 1.65;
  max-width: 520px;
  text-wrap: pretty;
}

.brand__enquire {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.2s var(--ease-out);
}

.brand__enquire:hover {
  gap: 0.6rem;
}

.brand--featured {
  border-color: var(--color-accent);
  position: relative;
}

.brand__badge {
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* --- Steps (How It Works) --- */
.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.step__number {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  border-radius: 50%;
  line-height: 1;
}

.step__title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.step__desc {
  font-size: 0.95rem;
  color: var(--color-fg-light-dimmed);
  line-height: 1.65;
  text-wrap: pretty;
}

/* --- Feature List (Why Marcean) --- */
.feature-list {
  display: grid;
  gap: 1rem;
}

.feature {
  /* Base card styling via HTML classes */
}

.feature:hover {
  border-color: color-mix(in srgb, var(--color-border) 50%, var(--color-accent));
  box-shadow: 0 2px 16px rgba(176, 141, 87, 0.06);
}

.feature__title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.95rem;
  color: var(--color-fg-muted);
  line-height: 1.65;
  max-width: 520px;
  text-wrap: pretty;
}

/* --- Contact --- */
.contact-email-line {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-email {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  color: var(--color-fg-light);
  text-decoration-color: var(--color-fg-light);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  background: var(--color-bg-dark);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 520px;
  text-wrap: pretty;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- WhatsApp Floating CTA --- */
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(37, 211, 102, 0.25); }
  50% { box-shadow: 0 2px 24px rgba(37, 211, 102, 0.4); }
}

.whatsapp-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.25);
  animation: whatsapp-pulse 3s ease-in-out infinite;
  transition: transform 0.2s var(--ease-spring);
}

.whatsapp-cta:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* --- Footer Links --- */
.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* --- Legal Pages --- */
.section--legal-hero {
  min-height: auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.jumbo--legal {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-fg-light-muted);
}

.section--legal {
  min-height: auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.legal-content {
  max-width: 640px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--color-fg-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--color-fg-muted);
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(176, 141, 87, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover {
  text-decoration-color: var(--color-accent);
}

.legal-content strong {
  color: var(--color-fg);
  font-weight: 600;
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-fg-muted);
  line-height: 1.6;
}

.legal-table th {
  font-weight: 600;
  color: var(--color-fg);
  font-size: 0.85rem;
}

.legal-form-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.legal-form-box p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section .container {
    animation: none;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
  }

  .section {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
  }

  .section--hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .step {
    gap: 1rem;
    padding: 1.25rem;
  }

  .brand,
  .feature {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 360px;
  }

  .whatsapp-cta {
    bottom: 1rem;
    right: 1rem;
  }
}
