/* ============================================================
   BraidedbyAGB — Brand Design System
   FILE: /assets/css/brand.css
   Brand: African Hair Braiding Specialist · Farnborough, UK
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,600;1,400;1,600;1,700&display=swap');

/* ── Brand Colour Variables ── */
:root {
  /* Core brand palette (from official guidelines) */
  --color-primary:       #800080;   /* Magenta-Purple — logo, headers, primary CTAs */
  --color-primary-dark:  #660066;   /* Hover state for primary */
  --color-primary-light: #9b009b;   /* Lighter primary for gradients */
  --color-deep-purple:   #4B0082;   /* Deep purple — backgrounds, dark sections */
  --color-deep-purple-2: #3a0066;   /* Darker variation */
  --color-pink-1:        #FF1493;   /* Pink gradient start */
  --color-pink-2:        #C71585;   /* Pink gradient end */
  --color-gold:          #D4AF37;   /* Brand gold — stars, accents, emphasis */
  --color-gold-light:    #E8C94A;   /* Lighter gold for hover */

  /* Functional colours */
  --color-white:         #FFFFFF;
  --color-black:         #000000;
  --color-dark:          #1A0014;   /* Near-black with purple tint */
  --color-text:          #1A0014;
  --color-text-muted:    #6B5575;
  --color-text-light:    #9B8BA5;
  --color-bg-light:      #F9EEF9;   /* Very light purple tint for backgrounds */
  --color-bg-nude:       #FAF6F1;   /* Nude/ivory for light sections */
  --color-border:        #E8D8EE;

  /* Status colours */
  --color-success:       #1A6B3C;
  --color-warning:       #B8600A;
  --color-error:         #8B0000;
  --color-info:          #1A3A6B;

  /* Gradients */
  --gradient-primary:    linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep-purple) 100%);
  --gradient-pink:       linear-gradient(135deg, var(--color-pink-1) 0%, var(--color-pink-2) 100%);
  --gradient-hero:       linear-gradient(160deg, var(--color-deep-purple) 0%, #2a0050 50%, var(--color-primary) 100%);
  --gradient-gold:       linear-gradient(135deg, var(--color-gold) 0%, #B8960A 100%);
  --gradient-overlay:    linear-gradient(to bottom, rgba(75,0,130,0.3) 0%, rgba(128,0,128,0.7) 100%);

  /* ── Typography ── */
  --font-primary:   'Montserrat', sans-serif;   /* Headlines, CTAs, labels */
  --font-body:      'Lato', sans-serif;          /* Body copy, descriptions */
  --font-accent:    'Cormorant Garamond', serif; /* Brand call-outs only */

  /* Font sizes */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   1.875rem;   /* 30px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   3.75rem;    /* 60px */
  --text-hero:  clamp(2.5rem, 6vw, 5rem);

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Layout ── */
  --container-max:    1200px;
  --container-wide:   1400px;
  --border-radius:    4px;
  --border-radius-lg: 8px;
  --border-radius-xl: 16px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(128,0,128,0.08);
  --shadow-md:   0 4px 16px rgba(128,0,128,0.12);
  --shadow-lg:   0 8px 32px rgba(128,0,128,0.18);
  --shadow-xl:   0 16px 48px rgba(128,0,128,0.22);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.3);

  /* ── Transitions ── */
  --transition:      all 0.3s ease;
  --transition-fast: all 0.15s ease;

  /* ── Z-index ── */
  --z-nav:     100;
  --z-modal:   200;
  --z-toast:   300;
  --z-whatsapp: 150;
}

/* ── CSS Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

.font-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

.text-primary   { color: var(--color-primary) !important; }
.text-gold      { color: var(--color-gold) !important; }
.text-white     { color: var(--color-white) !important; }
.text-muted     { color: var(--color-text-muted) !important; }
.text-center    { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }

.section-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-gold);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-deep-purple);
  margin-bottom: var(--space-4);
}
.section-title.light { color: var(--color-white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--color-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg { padding: var(--space-5) var(--space-10); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-5); font-size: var(--text-xs); }

/* ── Cards ── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.card-body { padding: var(--space-6); }

/* ── Service Cards ── */
.service-card { position: relative; }
.service-card .card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card .badge-new {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
}
.service-card .service-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-deep-purple);
  margin-bottom: var(--space-2);
}
.service-card .service-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.service-card .service-duration {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Pipeline Recommendation Box ── */
.pipeline-recommendation {
  background: linear-gradient(135deg, var(--color-bg-light), #fff);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  position: relative;
}
.pipeline-recommendation::before {
  content: '✦ Recommended for this style';
  position: absolute;
  top: -0.7rem;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
}
.pipeline-recommendation .rec-product-name {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-deep-purple);
  margin-bottom: var(--space-1);
}
.pipeline-recommendation .rec-product-price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
}

/* ── Star Rating ── */
.star-rating { display: flex; gap: 2px; align-items: center; }
.star-rating .star { color: var(--color-gold); font-size: 1.1rem; }
.star-rating .star.empty { color: var(--color-border); }

/* ── Review Cards ── */
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
}
.review-card .reviewer-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-deep-purple);
}
.review-card .review-service {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
}
.review-card .review-text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin: var(--space-3) 0;
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-control {
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(128,0,128,0.1);
}
.form-control::placeholder { color: var(--color-text-light); }

/* Policy checkbox */
.policy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}
.policy-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.policy-checkbox label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  cursor: pointer;
}
.policy-checkbox label strong { color: var(--color-primary); }

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.badge-gold    { background: var(--color-gold);    color: var(--color-dark); }
.badge-primary { background: var(--color-primary); color: var(--color-white); }
.badge-success { background: #E8F6EE;              color: var(--color-success); border: 1px solid #A8D8B8; }
.badge-warning { background: #FFF3E0;              color: var(--color-warning); border: 1px solid #F5C584; }
.badge-error   { background: #FDE8E8;              color: var(--color-error);   border: 1px solid #F5A8A8; }

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-whatsapp);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-deep-purple);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-left: 4px solid var(--color-gold);
  z-index: var(--z-toast);
  transition: transform 0.4s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left-color: #25D366; }
.toast.error   { border-left-color: var(--color-error); }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-8) 0;
}
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden  { display: none !important; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid    { display: grid; }
.gap-4   { gap: var(--space-4); }
.gap-6   { gap: var(--space-6); }
.gap-8   { gap: var(--space-8); }
.mt-4    { margin-top: var(--space-4); }
.mt-6    { margin-top: var(--space-6); }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.w-full  { width: 100%; }

/* ── Responsive Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .btn-lg { padding: var(--space-4) var(--space-6); }
}
