/*
Theme Name:  TRAAN Nigeria
Theme URI:   https://traan.ng
Author:      TRAAN Digital Team
Author URI:  https://traan.ng
Description: Official theme for TRAAN — Tradesmen and Artisans Association of Nigeria. Custom-built theme with full membership, directory, news, and partnership functionality.
Version:     1.0.0
Requires at least: 6.7
Tested up to: 6.7.4
Requires PHP: 8.0
License:     Proprietary
License URI: https://traan.ng
Text Domain: traan
Tags: custom, artisan, nigeria, membership, directory
*/

/* =====================================================
   TRAAN DESIGN SYSTEM — GLOBAL CSS VARIABLES & RESET
   ===================================================== */

:root {
  /* Greens */
  --g900: #071A0E;
  --g800: #0E3320;
  --g700: #0E5C30;
  --g600: #177A40;
  --g500: #1FA050;
  --g200: #B8DEC4;
  --g100: #E6F4EC;
  --g50:  #F2FAF5;

  /* Golds */
  --o700: #8A6A00;
  --o600: #B8880F;
  --o500: #C49A1A;
  --o400: #E8B820;
  --o300: #F5CE55;
  --o100: #FDF4D0;
  --o50:  #FFFBEE;

  /* Neutrals */
  --ink: #0F1A13;
  --im:  #2E3D33;
  --is:  #5C6E61;
  --rule:#D6E4DA;
  --bg:  #FAFCFA;
  --bgw: #F7F5F0;
  --w:   #FFFFFF;

  /* Typography */
  --fd: 'Fraunces', Georgia, serif;
  --fb: 'Outfit', sans-serif;
  --fm: 'DM Mono', monospace;

  /* Layout */
  --mw: 1200px;
  --px: clamp(20px, 5vw, 80px);
  --sy: clamp(80px, 10vw, 128px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-f:  999px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(15,26,19,.08);
  --sh-md: 0 4px 16px rgba(15,26,19,.10);
  --sh-lg: 0 12px 40px rgba(15,26,19,.13);
  --sh-xl: 0 24px 64px rgba(15,26,19,.16);
  --sh-gold: 0 8px 30px rgba(196,154,26,.28);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tf: .15s var(--ease);
  --tb: .25s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ── Layout helpers ── */
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 var(--px); }
.section-pad { padding: var(--sy) 0; }

/* ── Typography ── */
.brow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brow .bl { width: 32px; height: 2px; background: var(--o400); flex-shrink: 0; }
.brow .bt { font-family: var(--fm); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--o500); }
.brow.c  { justify-content: center; }
.brow.li .bt { color: var(--o400); }
.brow.li .bl { background: var(--o400); }

.d-xl { font-family: var(--fd); font-size: clamp(44px, 7vw, 96px); font-weight: 900; line-height: .92; letter-spacing: -.03em; color: var(--ink); }
.d-lg { font-family: var(--fd); font-size: clamp(32px, 4.5vw, 58px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; color: var(--ink); }
.d-md { font-family: var(--fd); font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; line-height: 1.1; color: var(--ink); }
em.g  { font-style: italic; color: var(--g700); }
em.o  { font-style: italic; color: var(--o500); }
.on-dark { color: var(--w); }
.lead { font-size: clamp(15px, 1.5vw, 18px); color: var(--is); line-height: 1.75; max-width: 580px; margin-top: 16px; }
.lead.on-dark { color: rgba(255,255,255,.65); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-weight: 600;
  border: none; cursor: pointer;
  border-radius: var(--r-sm);
  transition: all var(--tb);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97) !important; }
.btn-lg  { font-size: 1rem;    padding: 16px 32px; }
.btn-md  { font-size: .875rem; padding: 12px 24px; }
.btn-sm  { font-size: .8rem;   padding: 8px 18px; }
.btn-xs  { font-size: .75rem;  padding: 6px 14px; }

.btn-primary { background: var(--g700); color: #fff; box-shadow: 0 4px 14px rgba(14,92,48,.3); }
.btn-primary:hover { background: var(--g600); transform: translateY(-2px); }
.btn-gold    { background: var(--o400); color: var(--ink); box-shadow: var(--sh-gold); }
.btn-gold:hover { background: var(--o300); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--g700); border: 2px solid var(--g700); }
.btn-outline:hover { background: var(--g50); }
.btn-ghost   { background: transparent; color: var(--im); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--g200); color: var(--g700); background: var(--g50); }
.btn-oll    { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-oll:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.arr { display: inline-block; transition: transform var(--tf); }
.btn:hover .arr { transform: translateX(4px); }

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ── Forms ── */
.form-group   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label   { font-size: .8rem; font-weight: 600; color: var(--im); }
.form-label span { color: var(--g700); }
.form-input,
.form-select,
.form-textarea {
  font-family: var(--fb); font-size: .9rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: var(--r-sm); padding: 12px 16px;
  outline: none; transition: all var(--tf); width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--is); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--g600); background: var(--w);
  box-shadow: 0 0 0 3px rgba(14,92,48,.08);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%235C6E61' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.32); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--tf); }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }

/* ── Page hero (dark green, shared across interior pages) ── */
.page-hero {
  padding-top: 76px;
  background: var(--g800);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 72px; background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 40%, rgba(232,184,32,.11) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--mw); margin: 0 auto;
  padding: clamp(48px,6vw,80px) var(--px) clamp(96px,12vw,148px);
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: var(--fd);
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 900; line-height: .93;
  letter-spacing: -.03em; color: white;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--o400); }
.page-hero .hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255,255,255,.55);
  line-height: 1.75; font-weight: 300;
  max-width: 520px; margin-bottom: 28px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.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; }
