/* ─── DESIGN TOKENS (Tellself Brand System) ─────── */
:root {
  /* — Surfaces — */
  --surface-bright:       #fefdfb;
  --surface:              #f3efe8;
  --surface-dim:          #e5dbcd;
  --cont-lowest:          #fefdfb;
  --cont-low:             #f7f4ed;
  --cont:                 #eee8dd;
  --cont-high:            #eae2d7;
  --cont-highest:         #dccfbc;

  /* — Core Brand — */
  --primary:              #84522f;
  --on-primary:           #fff8f0;
  --primary-container:    #edd5ba;
  --on-primary-container: #4a2a15;
  --secondary:            #0277b6;
  --on-secondary:         #f0f9ff;

  /* — Text / On Surface — */
  --on-surface:           #2b2b2b;
  --on-surface-variant:   #4c463a;
  --outline:              #7e7669;
  --outline-variant:      #e7ded1;

  /* — Extended Accent Palette — */
  --extra1:      #f7c965; --extra1-on: #745107; --extra1-cont: rgba(247,201,101,0.18);
  --extra2:      #75cbd3; --extra2-on: #244d51; --extra2-cont: rgba(117,203,211,0.18);
  --extra3:      #879869; --extra3-on: #252d17; --extra3-cont: rgba(135,152,105,0.18);
  --extra4:      #7e8dcd; --extra4-on: #152259; --extra4-cont: rgba(126,141,205,0.18);
  --extra5:      #fa685b; --extra5-on: #5b0f08; --extra5-cont: rgba(250,104,91,0.18);

  /* — Typography — */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Work Sans', sans-serif;
  --font-serif:   'Lora', serif;
  --font-mono:    'Recursive', monospace;

  /* — Radius — */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* — Elevation — */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.65;
  color: var(--on-surface);
  background-color: var(--surface-bright);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageFadeIn 400ms ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  background-color: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 250ms ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-surface);
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
}

.logo-divider {
  width: 1px;
  height: 18px;
  background-color: var(--outline-variant);
}

.logo-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--outline);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: color 200ms ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Language selector */
.language-selector {
  position: relative;
  flex-shrink: 0;
}

.language-button {
  background: var(--cont-lowest);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 200ms ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.language-button:hover {
  background-color: var(--cont-low);
  border-color: var(--outline);
  color: var(--primary);
}

.dropdown-arrow {
  font-size: 8px;
  color: var(--outline);
  transition: transform 200ms ease;
}

.language-button.active .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--cont-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  display: none;
  z-index: 1000;
  overflow: hidden;
  padding: 6px 0;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  display: block;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  transition: background-color 200ms ease;
}

.language-option:hover {
  background-color: var(--cont-low);
}

.language-option.active {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 600;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--outline-variant);
}

/* Background photo with blur */
.hero-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.03);
}

/* Warm gradient scrim: opaque at bottom, fades to lighter at top */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(30, 18, 8, 0.88) 0%,
    rgba(30, 18, 8, 0.60) 35%,
    rgba(30, 18, 8, 0.25) 65%,
    rgba(30, 18, 8, 0.10) 100%
  );
}

/* All hero content above bg and scrim */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: rgba(237, 213, 186, 0.5);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 58px;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.search-wrapper {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 17px 56px 17px 24px;
  background-color: var(--cont-lowest);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--on-surface);
  transition: all 220ms ease;
  outline: none;
  box-shadow: var(--shadow-md);
}

.search-input::placeholder {
  color: var(--outline);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(132,82,47,0.12);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
  font-size: 22px;
  pointer-events: none;
  user-select: none;
}

/* ─── CATEGORIES ─────────────────────────────────── */
.categories {
  background-color: var(--surface-bright);
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--outline);
  text-align: center;
  margin-bottom: 10px;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--on-surface);
  text-align: center;
  margin-bottom: 44px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--cont-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms ease;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--cont-highest);
  box-shadow: var(--shadow-md);
}

/* Brand extended palette for category icons */
.category-card:nth-child(1) .category-icon { background: var(--extra1-cont); }
.category-card:nth-child(1) .category-icon .material-symbols-outlined { color: var(--extra1-on); }
.category-card:nth-child(2) .category-icon { background: var(--extra3-cont); }
.category-card:nth-child(2) .category-icon .material-symbols-outlined { color: var(--extra3-on); }
.category-card:nth-child(3) .category-icon { background: var(--extra2-cont); }
.category-card:nth-child(3) .category-icon .material-symbols-outlined { color: var(--extra2-on); }
.category-card:nth-child(4) .category-icon { background: var(--extra4-cont); }
.category-card:nth-child(4) .category-icon .material-symbols-outlined { color: var(--extra4-on); }
.category-card:nth-child(5) .category-icon { background: var(--extra5-cont); }
.category-card:nth-child(5) .category-icon .material-symbols-outlined { color: var(--extra5-on); }

.category-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-container);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-3deg);
}

.category-icon img {
  width: 26px;
  height: 26px;
}

.category-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--on-primary-container);
}

.category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.1px;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.category-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1px;
  line-height: 1.55;
  color: var(--outline);
}

/* ─── FAQ SECTION ────────────────────────────────── */
.faq-section {
  background-color: var(--surface);
  padding: 80px 0 96px;
  border-top: 1px solid var(--outline-variant);
}

.search-results-text,
.no-results {
  text-align: center;
  margin-bottom: 32px;
  color: var(--outline);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: none;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-header .section-heading {
  margin-bottom: 0;
  text-align: left;
  flex: 1;
}

.expand-all-button {
  background-color: var(--cont-lowest);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.25px;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms ease;
  white-space: nowrap;
}

.expand-all-button:hover {
  background-color: var(--primary-container);
  border-color: var(--primary-container);
  color: var(--on-primary-container);
}

.expand-icon {
  font-size: 11px;
  transition: transform 200ms ease;
}

.expand-all-button.expanded .expand-icon {
  transform: rotate(45deg);
}

.faq-group {
  margin-bottom: 48px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group {
  scroll-margin-top: 130px;
}

.faq-group-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.25px;
  color: var(--on-surface);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-group-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--primary-container);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background-color: var(--cont-lowest);
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: var(--on-surface);
  transition: background-color 200ms ease, color 200ms ease;
  user-select: none;
}

.faq-question:hover {
  background-color: var(--cont-low);
}

.faq-question.active {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

.faq-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cont-low);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--outline);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease, color 200ms ease;
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
  background: rgba(254,253,251,0.5);
  color: var(--on-primary-container);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--cont-lowest);
  transition: max-height 300ms ease, padding 220ms ease;
  padding: 0 20px;
  border-top: 1px solid transparent;
}

.faq-answer.active {
  max-height: 1200px;
  padding: 20px 20px 24px;
  border-top-color: var(--outline-variant);
}

.faq-answer p {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 22px;
  margin: 12px 0;
}

.faq-answer li {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.faq-answer li::marker {
  color: var(--primary);
}

.faq-answer strong {
  color: var(--on-surface);
  font-weight: 600;
}

.faq-answer-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--outline-variant);
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--outline);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background-color 150ms ease;
  text-decoration: none;
}

.faq-link-btn:hover {
  color: var(--primary);
  background-color: var(--primary-container);
}

.faq-link-btn .material-symbols-outlined {
  font-size: 16px;
}

.faq-link-btn.copied {
  color: var(--primary);
}

/* ─── CONTACT ────────────────────────────────────── */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--outline-variant);
}

.contact-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.03);
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(20, 12, 5, 0.82) 0%,
    rgba(30, 16, 6, 0.75) 50%,
    rgba(15, 8, 3, 0.88) 100%
  );
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.contact-mascot {
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.12);
  transform: scale(1.2);
  clip-path: inset(0 round 22px);
}

.card-eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 14px;
  display: block;
  opacity: 0.85;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-filled {
  display: inline-block;
  background-color: var(--on-primary);
  color: var(--primary);
  padding: 15px 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-filled:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background-color: var(--surface-dim);
  padding: 32px 0;
  border-top: 1px solid var(--outline-variant);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 200ms ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo img {
  height: 26px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--outline);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--outline);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.5px;
}

/* ─── BACK TO TOP FAB ────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--secondary);
  color: var(--on-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: opacity 250ms ease, transform 200ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.05);
}

/* Material Symbols base reset */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .faq-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-header .section-heading {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .categories,
  .faq-section,
  .contact-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
