/* ===========================
   HEALING IS HERE — Portal & Admin UI Enhancement
   Coastal therapy design — warm, organic, subtle
   v3 — Full redesign to match main website
   =========================== */

/* ============================================
   1. CSS VARIABLES & FOUNDATIONS
   ============================================ */
:root {
  --hih-amber: #d4a574;
  --hih-amber-light: #e8c9a0;
  --hih-amber-dark: #b8894f;
  --hih-sea: #556b72;
  --hih-sea-light: #7a9ca5;
  --hih-sea-dark: #3d5058;
  --hih-sand: #f5f1e8;
  --hih-sand-dark: #e8dcc8;
  --hih-forest: #4a6e5a;
  --hih-forest-light: #5d8a6e;
  --hih-coral: #c44b4b;
  --hih-coral-light: #e06060;
  --hih-warm-white: #fefcf9;
  --hih-cream: #faf7f1;
  --hih-driftwood: #a89582;
  --hih-stone: #6b7378;
  --hih-charcoal: #3a3a3a;
  --hih-font-serif: 'Georgia', 'Times New Roman', serif;
  --hih-font-sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   2. PAGE BACKGROUND & GLOBAL POLISH
   ============================================ */
body {
  background: linear-gradient(165deg, #f5f1e8 0%, #ede8dd 40%, #f0ebe2 100%) !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Warm card backgrounds */
.bg-card {
  background: var(--hih-warm-white) !important;
}

/* Smooth transitions everywhere */
button, a, input, select, textarea, [role="combobox"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Selection color */
::selection {
  background: rgba(212, 165, 116, 0.3);
  color: inherit;
}

/* Custom scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--hih-sand); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--hih-sand-dark) 0%, #c9b99a 100%); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hih-amber); }

/* ============================================
   3. TYPOGRAPHY — Serif headings, softer feel
   ============================================ */
h1 {
  font-family: var(--hih-font-serif) !important;
  font-weight: 400 !important;
  color: var(--hih-sea-dark) !important;
  letter-spacing: -0.01em !important;
}

h2, h3, h4 {
  font-family: var(--hih-font-serif) !important;
  font-weight: 400 !important;
  color: var(--hih-sea-dark) !important;
}

/* Reduce harsh uppercase throughout */
.uppercase, [class*="uppercase"] {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

/* Keep small labels uppercase but softer */
/* Keep only tiny form labels uppercase */
label.text-xs.uppercase,
form label.uppercase {
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
  color: var(--hih-stone) !important;
}










/* Card titles — serif */
.font-semibold.text-lg {
  font-family: var(--hih-font-serif) !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  color: var(--hih-sea-dark) !important;
}

/* Card descriptions — italic like main site */
.text-muted-foreground.text-sm {
  font-style: italic;
  opacity: 0.85;
}

/* ============================================
   4. INPUT FIELDS — Light & airy
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
input:not([type]),
textarea,
select,
[role="combobox"],
.flex.h-10.rounded-md.border,
.flex.h-9.rounded-md.border {
  background: white !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 8px !important;
  color: var(--hih-charcoal) !important;
  font-size: 0.95rem !important;
}

input:focus, textarea:focus, select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
[role="combobox"]:focus {
  border-color: var(--hih-amber) !important;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2) !important;
  outline: none !important;
  background: white !important;
}

/* Placeholder text */
input::placeholder, textarea::placeholder {
  color: var(--hih-driftwood) !important;
  opacity: 0.6 !important;
}

/* ============================================
   5. BUTTONS — Warm amber primary, subtle secondary
   ============================================ */
/* Primary buttons (amber) */
button.bg-primary,
.bg-primary:not(.inline-flex):not([class*="rounded-full"]) {
  background: linear-gradient(135deg, var(--hih-amber) 0%, var(--hih-amber-dark) 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 8px rgba(184, 137, 79, 0.25) !important;
}

button.bg-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 137, 79, 0.35) !important;
}

/* Secondary/outline buttons */
button.border.bg-transparent,
.inline-flex.border.bg-transparent {
  background: var(--hih-warm-white) !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 8px !important;
  color: var(--hih-sea) !important;
  font-weight: 500 !important;
}

button.border.bg-transparent:hover,
.inline-flex.border.bg-transparent:hover {
  background: var(--hih-sea) !important;
  color: white !important;
  border-color: var(--hih-sea) !important;
  box-shadow: 0 2px 8px rgba(85, 107, 114, 0.25) !important;
}

/* Accept/offer action buttons (green) */
button[class*="bg-green"],
.bg-green-600,
[class*="bg-emerald"] {
  background: linear-gradient(135deg, var(--hih-forest) 0%, var(--hih-forest-light) 100%) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(74, 110, 90, 0.3) !important;
}

/* ============================================
   6. TABS — Softer style
   ============================================ */
[role="tablist"] {
  background: var(--hih-sand) !important;
  border-radius: 10px !important;
  padding: 3px !important;
}

[role="tab"] {
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

[role="tab"][aria-selected="true"],
[role="tab"][data-state="active"] {
  background: white !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  color: var(--hih-sea-dark) !important;
}

/* ============================================
   7. ADMIN DASHBOARD — Stat Cards
   ============================================ */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl {
  border: none !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.5rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03) !important;
}

/* Amber - Total Applications */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(1) {
  background: linear-gradient(135deg, #fdf6ed 0%, #f9edd8 100%) !important;
  border-left: 4px solid var(--hih-amber) !important;
}

/* Sea blue - Waiting */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(2) {
  background: linear-gradient(135deg, #f0f5f7 0%, #e3edf0 100%) !important;
  border-left: 4px solid var(--hih-sea-light) !important;
}

/* Forest - In Progress */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(3) {
  background: linear-gradient(135deg, #f0f5f1 0%, #e0ece3 100%) !important;
  border-left: 4px solid var(--hih-forest) !important;
}

/* Coral - Urgent */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(4) {
  background: linear-gradient(135deg, #fdf2f2 0%, #fae5e5 100%) !important;
  border-left: 4px solid var(--hih-coral) !important;
}

/* Hover lift */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
}

/* Stat labels */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl .text-sm {
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  opacity: 0.7;
}

/* Stat numbers */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl .text-3xl {
  font-weight: 600 !important;
  font-size: 2rem !important;
  font-variant-numeric: tabular-nums;
}

/* Card slide animation */
.grid.md\:grid-cols-4 > .bg-card.rounded-xl {
  animation: cardSlideUp 0.4s ease-out both;
}
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(1) { animation-delay: 0s; }
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(2) { animation-delay: 0.06s; }
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(3) { animation-delay: 0.12s; }
.grid.md\:grid-cols-4 > .bg-card.rounded-xl:nth-child(4) { animation-delay: 0.18s; }

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   8. SECTION CARDS
   ============================================ */
.space-y-6 > .bg-card.rounded-xl {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03) !important;
  overflow: hidden;
  animation: cardSlideUp 0.4s ease-out both;
}

/* Section headers with subtle gradients */
.bg-card.rounded-xl [class*="card-header"] {
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid rgba(212, 196, 168, 0.3);
}

/* ============================================
   9. TABLE STYLING
   ============================================ */
table thead tr {
  background: linear-gradient(180deg, #f7f4ee 0%, #f0ebe2 100%) !important;
}

table thead th {
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--hih-sea) !important;
  font-weight: 700 !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 2px solid var(--hih-sand-dark) !important;
  white-space: nowrap;
}

table tbody tr {
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(212, 196, 168, 0.2);
}

table tbody tr:nth-child(even) {
  background-color: rgba(250, 247, 241, 0.5);
}

table tbody tr:hover {
  background-color: rgba(232, 220, 200, 0.35) !important;
  box-shadow: inset 3px 0 0 var(--hih-amber);
}

table tbody td {
  padding: 0.85rem 1rem !important;
  vertical-align: middle;
}

table tbody td:first-child,
table tbody td:nth-child(2) {
  font-weight: 500;
  color: var(--hih-sea-dark);
}

/* Status badges */
td .inline-flex.bg-primary {
  background-color: var(--hih-sea) !important;
  color: white !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  padding: 0.3em 0.75em !important;
  border-radius: 6px !important;
}

/* View buttons in tables */
td .inline-flex.border.bg-transparent {
  background: var(--hih-cream) !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 8px !important;
  color: var(--hih-sea) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 0.35em 1em !important;
}

td .inline-flex.border.bg-transparent:hover {
  background: var(--hih-sea) !important;
  border-color: var(--hih-sea) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(85, 107, 114, 0.3);
  transform: translateY(-1px);
}

/* ============================================
   10. CLIENT PORTAL — Welcome Banner
   ============================================ */
[class*="bg-gradient"] {
  background: linear-gradient(135deg, var(--hih-sea-dark) 0%, var(--hih-sea) 50%, var(--hih-sea-light) 100%) !important;
  border-radius: 14px !important;
}

/* Progress bars */
[class*="bg-primary"][class*="h-2"],
[class*="bg-primary"][class*="h-1"],
div[class*="bg-primary"]:not(.inline-flex):not(button):not([role]) {
  background-color: var(--hih-sea) !important;
  border-radius: 999px;
}

/* ============================================
   11. CLIENT PORTAL — HIDE URGENCY/PRIORITY
   ============================================ */
/* Hide "Priority Score" stat card (3rd card in client portal grid) */
[data-loc="client/src/pages/portal/Dashboard.tsx:158"] {
  display: none !important;
}

/* Hide "Priority Score Breakdown" card */
[data-loc="client/src/pages/portal/Dashboard.tsx:282"] {
  display: none !important;
}

/* REMOVED: /* Hide "Urgency Level" in Your Details grid */
/* REMOVED: [data-loc="client/src/pages/portal/Dashboard.tsx:249"] {
/* REMOVED:   display: none !important;
/* REMOVED: } */

/* ============================================
   12. LOGIN PAGES — Warmer, organic feel
   ============================================ */
/* Admin login icon — softer, not black */
[data-hih-admin-icon] {
  background: linear-gradient(135deg, var(--hih-sea) 0%, var(--hih-sea-light) 100%) !important;
  border-radius: 16px !important;
}

/* Login cards */
.bg-card.rounded-xl:has(button:only-of-type),
.bg-card:has([placeholder*="email"]):has([placeholder*="password"]) {
  border: 1px solid rgba(212, 196, 168, 0.3) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03) !important;
  border-radius: 16px !important;
}

/* ============================================
   13. FILTER AREA
   ============================================ */
.bg-card.rounded-xl:has(input[placeholder*="Name"]),
.bg-card.rounded-xl:has(input[placeholder*="email"]) {
  background: linear-gradient(135deg, var(--hih-warm-white) 0%, var(--hih-cream) 100%) !important;
  border: 1px solid var(--hih-sand-dark) !important;
  border-radius: 14px !important;
}

button[role="combobox"] {
  background: white !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 8px !important;
}

button[role="combobox"]:hover {
  border-color: var(--hih-amber) !important;
  background: var(--hih-cream) !important;
}

/* ============================================
   14. APPLICATION DETAIL PAGE
   ============================================ */
textarea {
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 10px !important;
}

textarea:focus {
  border-color: var(--hih-amber) !important;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15) !important;
}

/* Timeline dots */
[class*="bg-primary"][class*="rounded-full"] {
  background: var(--hih-sea) !important;
}

/* ============================================
   15. TOAST NOTIFICATIONS
   ============================================ */
[role="status"],
[data-sonner-toaster] [data-sonner-toast] {
  border-radius: 12px !important;
  font-family: var(--hih-font-sans) !important;
}

/* ============================================
   16. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .grid.md\:grid-cols-4 > .bg-card.rounded-xl {
    border-radius: 12px !important;
  }
  table { font-size: 0.82rem; }
  table thead th { font-size: 0.6rem !important; padding: 0.65rem 0.5rem !important; }
  table tbody td { padding: 0.65rem 0.5rem !important; }
}

/* ============================================
   17. PRINT STYLES
   ============================================ */
@media print {
  body { background: white !important; }
  .bg-card.rounded-xl { box-shadow: none !important; border: 1px solid #ddd !important; }
  table tbody tr:hover { background: none !important; box-shadow: none !important; }
}

/* ============================================
   18. BUTTON TEXT - Remove harsh uppercase
   ============================================ */
/* Global: kill Tailwind uppercase utility everywhere */
.uppercase,
[class*=" uppercase"],
[class^="uppercase"] {
  text-transform: none !important;
}

/* Override Tailwind uppercase on interactive elements */
button, a > button,
.inline-flex,
[role="tab"],
a.inline-flex,
a[class*="inline-flex"],
[class*="bg-primary"]:not(td .inline-flex),
.rounded-lg a,
.rounded-xl a,
h3, h4 {
  text-transform: none !important;
}

/* Keep ONLY table headers and admin stat micro-labels uppercase */
table thead th {
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
}

.grid.md\:grid-cols-4 > .bg-card .text-sm:first-child {
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
}

/* ============================================
   19. PROGRAMME CARDS — More visual depth
   ============================================ */
/* Programme card containers */
[data-loc*="Home.tsx"] .rounded-xl.border,
.grid > .rounded-xl.border:has(img[alt*="Frontline"]),
.grid > .rounded-xl.border:has(img[alt*="Transgender"]) {
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

[data-loc*="Home.tsx"] .rounded-xl.border:hover,
.grid > .rounded-xl.border:has(img[alt*="Frontline"]):hover,
.grid > .rounded-xl.border:has(img[alt*="Transgender"]):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Programme card headers with gradient */
[data-loc*="Home.tsx"] .rounded-xl.border > div:first-child,
.rounded-xl.border:has(img[alt*="Frontline"]) > div:first-child,
.rounded-xl.border:has(img[alt*="Transgender"]) > div:first-child {
  background: linear-gradient(135deg, rgba(85,107,114,0.06) 0%, rgba(122,156,165,0.08) 100%);
}

/* About the Programmes & How It Works cards */
[data-loc*="Home.tsx:35"],
[data-loc*="Home.tsx:66"] {
  border: none !important;
  box-shadow: 0 3px 16px rgba(0,0,0,0.05) !important;
  border-radius: 14px !important;
}

/* ============================================
   20. WAIT TIME BOX — Subtle coastal style
   ============================================ */
/* The Current Wait Times inner box */
[data-loc*="Home.tsx"] .rounded-lg.border,
.rounded-lg.border:has(h4) {
  border-color: rgba(212,196,168,0.4) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(250,247,241,0.8) 0%, rgba(245,241,232,0.6) 100%) !important;
}

/* ============================================
   21. HERO SECTION — More depth
   ============================================ */
/* Hero gradient overlay for more depth */
[data-loc*="Home.tsx:28"],
.bg-gradient-to-r:has(h1) {
  position: relative;
}

/* ============================================
   22. PORTAL STAT CARDS — Client portal grid
   ============================================ */
/* Client portal 3-column grid (after hiding Priority Score) */
[data-loc*="portal/Dashboard.tsx:130"] {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Stat cards in client portal */
[data-loc*="portal/Dashboard.tsx:133"],
[data-loc*="portal/Dashboard.tsx:144"],
[data-loc*="portal/Dashboard.tsx:170"] {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
  transition: transform 0.2s ease !important;
}

[data-loc*="portal/Dashboard.tsx:133"]:hover,
[data-loc*="portal/Dashboard.tsx:144"]:hover,
[data-loc*="portal/Dashboard.tsx:170"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}

/* ============================================
   23. FORM PAGES — Apply form refinements
   ============================================ */
/* Select dropdowns on forms */
[role="combobox"],
select {
  background: white !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 8px !important;
}

/* Textarea in forms */
textarea.min-h-\[120px\],
textarea.min-h-\[200px\],
textarea[class*="min-h"] {
  background: white !important;
  border: 1.5px solid var(--hih-sand-dark) !important;
  border-radius: 10px !important;
  line-height: 1.7 !important;
}

/* ============================================
   24. CLIENT PORTAL — Welcome banner text
   ============================================ */
/* Make the welcome text on the gradient banner more readable */
[class*="bg-gradient"] h2,
[class*="bg-gradient"] .text-lg,
[class*="bg-gradient"] .text-xl {
  font-family: var(--hih-font-serif) !important;
  font-weight: 400 !important;
}

/* ============================================
   25. SUBTLE ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main, [role="main"], .container {
  animation: fadeIn 0.3s ease-out;
}

/* ===== Section 20: Email Preview Modal — wider + responsive ===== */
[role="dialog"].max-w-4xl,
[data-loc*="Availability.tsx:393"],
[role="dialog"][class*="max-w"] {
  max-width: 56rem !important;   /* ~900px → bump to 5xl */
  width: 95vw !important;
}
@media (max-width: 768px) {
  [role="dialog"].max-w-4xl,
  [data-loc*="Availability.tsx:393"],
  [role="dialog"][class*="max-w"] {
    max-width: 98vw !important;
    width: 98vw !important;
  }
}
/* Make the table inside the modal scroll horizontally if needed */
[data-loc*="Availability.tsx:428"] {
  overflow-x: auto;
}

/* ===== Section 21: Editable Email Template textarea ===== */
.email-template-editor {
  width: 100%;
  min-height: 280px;
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.8;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  resize: vertical;
  white-space: pre-wrap;
  transition: border-color 0.2s;
}
.email-template-editor:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}
.email-template-editor:disabled {
  opacity: 0.5;
  cursor: wait;
}
.email-template-section code {
  background: hsl(var(--muted));
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #556b72;
}




/* 26. FONT CONSISTENCY - Cormorant Garamond headings + Open Sans body */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Open+Sans:wght@300;400;600&display=swap");

body { font-family: "Open Sans", sans-serif !important; background-color: #F5F1E8 !important; }
p, span, li, td, th, input, textarea, select, button { font-family: "Open Sans", sans-serif !important; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 400 !important;
}

/* 27. HERO BANNER - warm amber gradient, full-width, compact */
section.bg-gradient-to-b {
  background: linear-gradient(to bottom, #e8c49a, #F5F1E8) !important;
  border-radius: 0 !important;
}
section.bg-gradient-to-b > *, section.bg-gradient-to-b > * > * { border-radius: 0 !important; }
section.bg-gradient-to-b .container {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
section.bg-gradient-to-b h1 {
  font-size: 2.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.75rem !important;
  color: #3D3D3D !important;
}
section.bg-gradient-to-b p { font-size: 1rem !important; color: #8a6a40 !important; }

/* 28. PAGE BACKGROUND - warm sand for content sections */
section.bg-white { background-color: #F5F1E8 !important; }

/* 29. NAV */
nav a.uppercase {
  white-space: nowrap !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.1em !important;
  font-weight: 400 !important;
  font-family: "Helvetica Neue", Arial, sans-serif !important;
}
nav ul li a { font-size: 0.875rem !important; font-weight: 400 !important; }
nav a.bg-amber {
  background-color: transparent !important;
  color: #2C5F6F !important;
  border: 1px solid #2C5F6F !important;
  font-size: 0.875rem !important;
  padding: 0.375rem 1rem !important;
  font-family: "Open Sans", sans-serif !important;
}
nav a.bg-amber:hover { background-color: #2C5F6F !important; color: white !important; }
nav .h-16 { height: 3.5rem !important; min-height: unset !important; }
/* Hide Client Portal text link (padlock icon is the link) */
nav a[href*="/portal/login"] { display: none !important; }
nav li:has(a[href*="/portal/login"]) { display: none !important; }

/* 30. FOOTER */
footer { background-color: #3D4D52 !important; }
footer h4 {
  font-family: "Open Sans", sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 1rem !important;
}
footer p, footer li { font-family: "Open Sans", sans-serif !important; font-size: 0.8rem !important; }
footer ul { list-style: disc !important; padding-left: 1.2rem !important; }
footer a { font-family: "Open Sans", sans-serif !important; }


/* 31. CARD HEADINGS - reduce About/How It Works h2 size */
section.bg-white h2 {
  font-size: 1.375rem !important;
  margin-bottom: 1.25rem !important;
}
