/* ============================================
   TAXCRAFT INSIGHT LLP — ROOT CSS
   Change brand colors here to update sitewide
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* === BRAND COLORS — Edit here to retheme === */
  --brand-primary:    #0A2540;   /* Deep navy — main brand */
  --brand-accent:     #D4A843;   /* Gold — highlights, CTAs */
  --brand-accent-light: #F5E6C0; /* Light gold tint */
  --brand-secondary:  #1B4F8A;   /* Mid blue */
  --brand-light:      #EEF4FB;   /* Pale blue — backgrounds */

  /* === NEUTRAL PALETTE === */
  --white:            #FFFFFF;
  --gray-50:          #F8FAFC;
  --gray-100:         #F1F5F9;
  --gray-200:         #E2E8F0;
  --gray-300:         #CBD5E1;
  --gray-400:         #94A3B8;
  --gray-500:         #64748B;
  --gray-600:         #475569;
  --gray-700:         #334155;
  --gray-800:         #1E293B;
  --gray-900:         #0F172A;

  /* === SEMANTIC COLORS === */
  --success:          #059669;
  --warning:          #D97706;
  --error:            #DC2626;
  --info:             #0284C7;

  /* === TYPOGRAPHY === */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* === 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-pad:  1.5rem;
  --header-height:  72px;

  /* === EFFECTS === */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(10,37,64,0.08), 0 1px 2px rgba(10,37,64,0.04);
  --shadow-md:  0 4px 12px rgba(10,37,64,0.10), 0 2px 6px rgba(10,37,64,0.06);
  --shadow-lg:  0 10px 30px rgba(10,37,64,0.14), 0 4px 12px rgba(10,37,64,0.08);
  --shadow-xl:  0 20px 50px rgba(10,37,64,0.20);

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* === UTILITIES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.text-center { text-align: center; }
.text-accent  { color: var(--brand-accent); }
.text-primary { color: var(--brand-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(212,168,67,0.35);
}
.btn-primary:hover {
  background: #c49838;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.45);
}

.btn-outline {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-3);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 580px;
  line-height: 1.7;
}

/* === CARD === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* === FORM ELEMENTS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}
.animate-fade-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }
.animate-fade-up-delay-4 { animation-delay: 0.4s; }

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-8) 0;
}

/* === ALERT === */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}
.alert-success { background: #DCFCE7; color: #15803D; border-left: 4px solid #15803D; }
.alert-error   { background: #FEE2E2; color: #DC2626; border-left: 4px solid #DC2626; }

/* === RESPONSIVE HELPERS === */
@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
    --header-height: 64px;
  }
  .section  { padding: var(--space-12) 0; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
