/* ============================================================
   ALSULAIMAN GROUP — GREETING CARD PLATFORM
   Global Stylesheet
   css/global.css
   ============================================================

   TABLE OF CONTENTS
   ---------------------------------------------------------
   01. Reset & Variables
   02. Typography & Base
   03. Navigation
   04. Progress Bar (inner pages)
   05. Page Banner (inner pages — 400px)
   06. Buttons
   07. Section Utilities
   08. How It Works — Steps Grid
   09. Brand Grid (home + select brand page)
   10. CTA Banner (home)
   11. Footer
   12. Animations & Reveal
   13. Responsive
   ============================================================ */


/* ── 01. Reset & Variables ─────────────────────────────────── */


@import url("../fonts/stylesheet.css");

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

:root {
  /* Brand colours */
  --teal:        #00ABBA;
  --teal-dk:     #008a97;
  --teal-lt:     #e6f7f9;

  /* Neutrals */
  --white:       #ffffff;
  --offwhite:    #F2F2F2;
  --gray:        #535353;
  --dark:        #1a1a1a;
  --border:      #e0e0e0;

  /* Status */
  --green:       #22c55e;
  --green-lt:    #f0fdf4;

  /* Layout */
  --nav-h:       70px;
  --max-w:       1200px;
  --pad-x:       48px;

  /* Animation */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
   font-family: 'asg_primaryplain';
}


/* ── 02. Typography & Base ──────────────────────────────────── */

h1, h2, h3, h4 {
   font-family: 'asg_primaryplain';
  font-weight: 300;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

a {
  color: inherit;
}


/* ── 03. Navigation ─────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav-logo-text .en {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
}


/* ── 04. Progress Bar ───────────────────────────────────────── */

.progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 101;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
}

.progress-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 14px 0;
}

.prog-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prog-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.prog-dot.done     { background: var(--teal); color: var(--white); }
.prog-dot.active   { background: var(--teal); color: var(--white); }
.prog-dot.inactive { background: var(--offwhite); color: var(--gray); border: 1.5px solid var(--border); }

.prog-label          { font-size: 12px; font-weight: 500; }
.prog-label.done     { color: var(--teal); }
.prog-label.active   { color: var(--teal); }
.prog-label.inactive { color: var(--gray); }

.prog-line {
  flex: 1;
  height: 1px;
  margin: 0 16px;
  min-width: 40px;
}

.prog-line.done    { background: var(--teal); }
.prog-line.pending { background: var(--border); }


/* ── 05. Page Banner ────────────────────────────────────────── */

.page-banner {
  height: 400px;
  /* background: linear-gradient(135deg, #0d1b2a 0%, #132030 55%, #0a2e3a 100%); */
  background-color: #535353;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* margin-top: var(--nav-h); */
}

.page-banner::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  /* background: linear-gradient(135deg, rgba(0,171,186,0.1) 0%, rgba(0,171,186,0.03) 100%); */
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-banner-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent 60px, var(--teal) 100px, transparent 85%);
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

.page-banner-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-banner-eyebrow span:first-child {
  width: 30px;
  height: 2px;
  background:#00abba;
  flex-shrink: 0;
}

.page-banner-eyebrow span:last-child {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:#00abba;
}

.page-banner-title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.page-banner-title strong {
  font-weight: 600;
  color:#00abba;
}

.page-banner-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  line-height: 1.7;
}


/* ── 06. Buttons ────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.btn-primary:hover {
  background: var(--teal-dk);
  gap: 16px;
}

.btn-primary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-ghost {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--teal); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--teal);
  padding: 14px 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}

.btn-white:hover { background: var(--offwhite); gap: 16px; }

.btn-white svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 13px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  padding: 11px 20px;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-back:hover { border-color: var(--teal); color: var(--teal); }

.btn-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 13px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-next:hover { background: var(--teal-dk); gap: 16px; }

.btn-next svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--teal);
  color: var(--white);
  padding: 16px 24px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-download:hover { background: var(--teal-dk); }

.btn-download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-restart:hover { opacity: 0.7; }

.btn-restart svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Sticky CTA bar — shared by pages 02 & 03 */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 98;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}

.sticky-cta.visible { transform: translateY(0); }

.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}


/* ── 07. Section Utilities ──────────────────────────────────── */

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.sec-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.sec-h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.sec-h2 strong { font-weight: 600; }

.sec-sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
  max-width: 500px;
}


/* ── 08. How It Works — Steps Grid ─────────────────────────── */

.how {
  padding: 100px 0;
  background: var(--offwhite);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 52px;
}

.step {
  background: var(--white);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}

.step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.step:hover::after { transform: scaleX(1); }

.step:hover {
  box-shadow: 0 8px 32px rgba(0,171,186,0.1);
  transform: translateY(-4px);
}

.step-num {
  font-size: 64px;
  font-weight: 700;
  color: rgba(0,171,186,0.07);
  line-height: 1;
  position: absolute;
  top: 12px; right: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  transition: background 0.25s;
}

.step:hover .step-icon { background: var(--teal); }

.step-ttl {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  margin-top: 15px;
}

.step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
  font-weight: 300;
}


/* ── 09. Brand Grid ─────────────────────────────────────────── */

/* Shared brand card styles used on home + select brand page */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Home brand grid */
.brands {
  padding: 100px 0;
  background: var(--white);
}

.brands-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.big-nine {
  font-size: 96px;
  font-weight: 700;
  color: rgba(0,171,186,0.1);
  line-height: 1;
}

/* Brand card (home) */
.brand-card {
  background: var(--offwhite);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.brand-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s var(--ease);
}

.brand-card:hover {
  background: #fafafa;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  z-index: 1;
}

.brand-card:hover::after { transform: scaleY(1); }

.brand-logo {
  /* width: 100px;
  height: 58px; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  /* border: 1px solid var(--border);
  background: var(--white); */
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}

.brand-card:hover .brand-logo { border-color: rgba(0,171,186,0.3); }

/* Brand logo colour overrides */
.b-asg  { color: #1a2535; font-size: 10px; text-align: center; line-height: 1.3; }
.b-ikea { background: #0051a2; border-color: #0051a2; color: #ffda1a; font-size: 18px; }
.b-ck   { background: #cc0000; border-color: #cc0000; color: #fff; font-size: 11px; }
.b-flow { color: #e63a0b; font-style: italic; font-size: 16px; }
.b-sal  { color: #2e7d32; font-size: 13px; }
.b-ehr  { color: #1a2535; font-size: 11px; letter-spacing: 0.08em; }
.b-liv  { color: #e63a0b; font-size: 11px; }
.b-mus  { color: #33691e; font-size: 12px; }
.b-sarh { color: #1a2535; font-size: 13px; }

.brand-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  transition: color 0.25s;
}

.brand-card:hover .brand-name { color: var(--teal); }

/* Select brand page — slightly larger card */
.brand-card-lg {
  background: var(--white);
  border: 2px solid transparent;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.brand-card-lg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.brand-card-lg:hover,
.brand-card-lg.selected {
  border-color: rgba(0,171,186,0.2);
  box-shadow: 0 6px 28px rgba(0,171,186,0.12);
  transform: translateY(-3px);
}

.brand-card-lg:hover::before,
.brand-card-lg.selected::before { transform: scaleX(1); }

.brand-card-lg.selected { border-color: var(--teal); }

.brand-logo-wrap {
  width: 120px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--offwhite);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.25s;
}

.brand-card-lg:hover .brand-logo-wrap,
.brand-card-lg.selected .brand-logo-wrap { border-color: rgba(0,171,186,0.3); }

.brand-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s var(--ease);
}

.brand-card-lg.selected .brand-check {
  opacity: 1;
  transform: scale(1);
}

/* Brand grid — select page uses 16px gaps */
.brand-grid-lg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Selected brand strip (enter name page) */
.brand-strip {
  padding: 16px 32px;
  background: var(--teal-lt);
  border-bottom: 1px solid rgba(0,171,186,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-strip-logo {
  width: 48px;
  height: 32px;
  background: var(--white);
  border: 1px solid rgba(0,171,186,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #1a2535;
}

.brand-strip-info { flex: 1; }

.brand-strip-label {
  font-size: 10px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-strip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.brand-strip-change {
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand-strip-change:hover { opacity: 0.7; }


/* ── 10. CTA Banner (home) ──────────────────────────────────── */

.cta-banner {
  background: var(--teal);
  padding: 80px var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.cta-h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 36px;
}

.cta-h2 strong { font-weight: 600; }


/* ── 11. Footer ─────────────────────────────────────────────── */

footer {
  background: #535353;
  padding: 56px var(--pad-x) 24px;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.f-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
}

.f-logo-icon svg { width: 18px; height: 18px; fill: white; }

.f-logo-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

.f-col-ttl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.f-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-links li a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

.f-links li a:hover { color: var(--teal); }

.footer-btm {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.f-copy {
  font-size: 12px;
  color: #9F9F9F;
  font-weight: 300;
}

.f-ext a {
  font-size: 12px;
  color: #9F9F9F;
  text-decoration: none;
  transition: color 0.2s;
}

.f-ext a:hover { color: var(--teal); }


/* ── 12. Animations & Reveal ────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }


/* ── 13. Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .brands-head  { grid-template-columns: 1fr; }
  .big-nine     { display: none; }
}

@media (max-width: 900px) {
  :root { --pad-x: 20px; }

  .brand-grid    { grid-template-columns: repeat(2, 1fr); }
  .brand-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: 1fr 1fr; }

  .sticky-cta { padding: 12px 20px; }
}

@media (max-width: 768px) {
  .page-banner         { height: 280px; }
  .page-banner-title   { font-size: 26px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  footer      { padding: 40px 20px 20px; }

  .cta-banner { padding: 60px 20px; }

  nav { padding: 0 20px; }
  .progress-bar { padding: 0 20px; }
}

@media (max-width: 540px) {
  .steps-grid    { grid-template-columns: 1fr; }
  .brand-grid    { grid-template-columns: repeat(3, 1fr); }
  .brand-grid-lg { grid-template-columns: 1fr 1fr; gap: 10px; }
}


/* ── Footer: Social Icons ────────────────────────────────── */

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}


/* ── Footer: Contact List ────────────────────────────────── */

.f-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
}

.f-contact li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.f-contact li a:hover { color: var(--teal); }

.f-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
  opacity: 0.75;
}

.f-contact-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}


/* ── Brand card: logo as image ──────────────────────────── */

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.brand-card {
  text-decoration: none;
}


/* ══════════════════════════════════════════════════════════
   FOOTER — Social icons · Contact · Brand logo as image
══════════════════════════════════════════════════════════ */

/* Col 1 layout: logo + social side-by-side */
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 50%;
  max-width: 160px;
  display: block;
}

/* Social icons — sit right beside the logo */
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Contact list */
.f-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.f-contact li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.f-contact li a:hover { color: var(--teal); }

.f-contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
  opacity: 0.8;
}

.f-contact-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Brand card: logo image */
.brand-card {
  text-decoration: none;
}

.brand-logo {
  position: relative;
  overflow: hidden;
  max-height: 70px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.brand-logo-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.05em;
  font-family: 'Poppins', sans-serif;
}

/* Empty brands message */
.brands-empty {
  color: var(--gray);
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

/* Responsive: stack logo + social on small screens */
@media (max-width: 480px) {
  .footer-logo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-logo-img { width: 60%; }
}


/* ── Brand grid: centred last row ───────────────────────── */
/* Used when total brands don't fill the last row of 3 cols  */

.brand-grid-last {
  display: flex;
  justify-content: center;
  gap: 2px;            /* matches .brand-grid gap */
  margin-top: 2px;     /* matches .brand-grid gap */
}

/* Each card in the last row must match the width of a regular
   brand-card (1/3 of the grid). We calculate this from the
   section-wrap max-width minus padding minus gaps. */
.brand-grid-last .brand-card {
  /* same fixed width as one column in the 3-col grid */
  flex: 0 0 calc((100%) / 3 - 2px);
  max-width: calc((100%) / 3 - 2px);
}

/* On tablet (2-col layout) keep them centred but let them grow */
@media (max-width: 900px) {
  .brand-grid-last .brand-card {
    flex: 0 0 calc(50% - 2px);
    max-width: calc(50% - 2px);
  }
}

/* On mobile (3-col compact layout) reset to auto */
@media (max-width: 540px) {
  .brand-grid-last {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .brand-grid-last .brand-card {
    flex: unset;
    max-width: unset;
    width: 100%;
  }
}
