/* ==========================================================================
   Johan Coetzee CFP® — Arbor site stylesheet
   ========================================================================== */

:root {
  --bg-darkest: #0B1414;
  --bg-panel: #0B3434;
  --primary: #176968;
  --primary-bright: #1C8685;
  --text-light: #EAEAEA;
  --text-muted: #BCBDC2;
  --accent: #CE8359;
  --accent-hover: #B94E13;
  --glass: rgba(11, 52, 52, 0.7);
  --glass-border: rgba(188, 189, 194, 0.14);
  --shadow: 0 20px 40px rgba(0,0,0,0.4);
  --focus-ring: 0 0 0 3px rgba(28, 134, 133, 0.55);
  --radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Livvic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-weight: 900; }
p { color: var(--text-muted); }

a { text-decoration: none; transition: 0.3s ease; color: var(--text-light); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary-bright); }
.section-padding { padding: 6rem 0; }
.section-eyebrow { display: block; margin-bottom: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; }
.section-title { margin-bottom: 1rem; }
.section-lead { max-width: 700px; color: var(--text-muted); margin-bottom: 3rem; }
.section-lead.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 3000;
  background: var(--accent); color: #fff; padding: 1rem 1.5rem; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- NAVIGATION --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 20, 20, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.1rem 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.6rem; font-weight: 700; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.logo span { color: var(--primary-bright); font-weight: 300; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary-bright); }

.btn-nav { padding: 0.55rem 1.4rem; border: 1px solid var(--accent); color: var(--accent) !important; border-radius: 50px; }
.btn-nav:hover { background: var(--accent); color: #fff !important; }

.hamburger { display: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; background: none; border: none; }

/* --- BUTTONS --- */
.btn-main, .btn-outline {
  display: inline-block;
  padding: 1.1rem 2.6rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-main {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(206, 131, 89, 0.3);
}
.btn-main:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(206, 131, 89, 0.5); }
.btn-outline {
  background: transparent; color: var(--text-light); border: 1px solid var(--glass-border);
}
.btn-outline:hover { border-color: var(--primary-bright); color: var(--primary-bright); }

/* --- HERO --- */
.hero { min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 120px; padding-bottom: 4rem; }
.page-hero { min-height: 46vh; display: flex; align-items: center; padding-top: 130px; padding-bottom: 3rem; position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--bg-darkest), var(--bg-panel)); }
.page-hero .container { text-align: center; max-width: 800px; }
.page-hero .breadcrumb { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

.hero-content { width: 100%; max-width: 700px; position: relative; z-index: 3; }

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #BCBDC2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 520px;
  border-left: 3px solid var(--accent); padding-left: 1.5rem;
}

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.85rem; }
.hero-badge i { color: var(--primary-bright); }

.graph-container { position: absolute; top: 0; right: -10%; width: 60%; height: 100%; z-index: 1; perspective: 1000px; opacity: 0.55; pointer-events: none; }
.bar-group { position: absolute; bottom: 20%; right: 10%; display: flex; gap: 40px; transform: rotateY(-30deg) rotateX(20deg); transform-style: preserve-3d; }
.bar { width: 60px; background: linear-gradient(to top, var(--primary), var(--primary-bright)); position: relative; transform-style: preserve-3d; box-shadow: 20px 20px 60px rgba(0,0,0,0.5); animation: growBar 1.4s ease-out forwards; opacity: 0.9; }
.bar::before { content: ''; position: absolute; top: 0; left: -20px; width: 20px; height: 100%; background: #0f4a4a; transform-origin: right; transform: skewY(45deg); }
.bar::after { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 20px; background: #25b1b0; transform-origin: bottom; transform: skewX(45deg); }
@keyframes growBar { from { height: 0; } }

/* --- ABOUT / SECTIONS --- */
.about-section { background: linear-gradient(to bottom, var(--bg-darkest), var(--bg-panel)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.img-frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.img-frame img { width: 100%; height: auto; transition: 0.5s; }
.img-frame:hover img { transform: scale(1.03); }
.img-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-darkest), transparent 40%); }

.stat-row { display: flex; gap: 3rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); flex-wrap: wrap; }
.stat h4 { font-size: 2.2rem; color: var(--primary-bright); margin-bottom: 0.4rem; }
.stat p { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- CARD GRIDS --- */
.services-grid, .value-grid, .resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.service-card, .value-card, .resource-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 2.6rem 2rem;
  border-radius: var(--radius);
  transition: 0.35s;
}
.service-card:hover, .value-card:hover, .resource-card:hover {
  background: rgba(28, 134, 133, 0.08);
  border-color: var(--primary);
  transform: translateY(-8px);
}

.service-icon, .value-icon {
  width: 56px; height: 56px; background: var(--bg-panel); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--primary-bright);
  font-size: 1.4rem; margin-bottom: 1.4rem; box-shadow: 0 0 20px rgba(28, 134, 133, 0.2);
}

.service-card h3, .value-card h3, .resource-card h3 { margin-bottom: 0.9rem; font-size: 1.3rem; }
.service-card p, .value-card p, .resource-card p { font-size: 0.98rem; }
.service-card .service-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); font-size: 0.9rem; color: var(--text-muted); }
.service-card .service-detail li { margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; }
.service-card .service-detail li::before { content: '\2192'; position: absolute; left: 0; color: var(--accent); }

.resource-card .resource-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 0.8rem; }
.resource-card a.resource-link { color: var(--primary-bright); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; }
.resource-card a.resource-link:hover { color: var(--accent); }

/* --- TOOLS / CALCULATORS --- */
.tools-section { background: var(--bg-panel); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

.calc-widget { background: var(--bg-darkest); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2.4rem; box-shadow: var(--shadow); }
.calc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.calc-header h3 { font-size: 1.15rem; color: var(--text-light); }
.calc-header i { color: var(--text-muted); }

.input-group { margin-bottom: 1.1rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }

input, select, textarea {
  width: 100%; background: #1A2626; border: 1px solid #323434; color: white;
  padding: 12px; border-radius: 6px; font-family: inherit; transition: 0.3s; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-bright); }
textarea { resize: vertical; }

.btn-calc {
  width: 100%; background: var(--bg-panel); color: var(--primary-bright); border: 1px solid var(--primary);
  padding: 1rem; border-radius: 6px; font-weight: 700; cursor: pointer; margin-top: 0.6rem; transition: 0.3s;
  font-family: inherit; font-size: 0.95rem;
}
.btn-calc:hover { background: var(--primary); color: white; }

.result-box { background: rgba(23, 105, 104, 0.12); border-radius: 8px; padding: 1.4rem; margin-top: 1.4rem; text-align: center; }
.result-value { font-size: 1.9rem; font-weight: 700; color: var(--accent); display: block; margin-top: 0.4rem; }
.calc-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1.4rem; line-height: 1.5; }

/* --- PARTNERS --- */
.partners-section { background: #fff; padding: 4rem 0; }
.partners-section h2 { color: var(--bg-darkest); margin-bottom: 1rem; }
.partners-section p { color: var(--bg-panel); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; margin-top: 2.5rem; }
.logo-chip {
  font-weight: 700; color: var(--bg-panel); font-size: 1.05rem; letter-spacing: 0.5px;
  padding: 0.8rem 1.6rem; border: 1px solid rgba(11,52,52,0.15); border-radius: 8px;
  opacity: 0.85; transition: 0.3s;
}
.logo-chip:hover { opacity: 1; border-color: var(--primary-bright); color: var(--primary); }

/* --- TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 2.2rem; }
.testimonial-card p.quote { color: var(--text-light); font-style: italic; margin-bottom: 1.2rem; }
.testimonial-card .attribution { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.stars { color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item summary {
  cursor: pointer; padding: 1.4rem 0; font-weight: 700; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text-light);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: 1.4rem; max-width: 700px; }

/* --- CONTACT --- */
.contact-section { background: linear-gradient(135deg, var(--bg-darkest), #000); }
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 0;
  background: var(--bg-panel); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.contact-info { padding: 3.5rem; background: rgba(23, 105, 104, 0.2); }
.contact-form { padding: 3.5rem; }
.contact-info-block { margin-bottom: 1.8rem; }
.contact-info-block .label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.contact-info-block a, .contact-info-block p.value { font-size: 1.1rem; }

.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; display: none; padding: 0.8rem 1rem; border-radius: 6px; }
.form-status.success { display: block; background: rgba(28,134,133,0.15); color: var(--primary-bright); }
.form-status.error { display: block; background: rgba(185,78,19,0.15); color: var(--accent); }

/* --- LEGAL PAGES --- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 2.4rem; margin-bottom: 1rem; color: var(--primary-bright); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content .updated { color: var(--accent); font-size: 0.85rem; margin-bottom: 2.5rem; display: block; text-transform: uppercase; letter-spacing: 1px; }

/* --- CTA BAND --- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--bg-darkest)); text-align: center; padding: 5rem 0; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 600px; margin: 0 auto 2rem; color: var(--text-light); opacity: 0.9; }

/* --- 404 --- */
.notfound { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.notfound h1 { font-size: 6rem; color: var(--primary-bright); }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--glass-border); padding: 3.5rem 0 2rem; font-size: 0.9rem; color: var(--text-muted); background: #000; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a:hover { color: var(--primary-bright); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary-bright); }
.footer-disclaimer { font-size: 0.78rem; color: #7d8080; margin-top: 2rem; line-height: 1.6; max-width: 1000px; }

/* --- COOKIE NOTICE --- */
#cookie-notice {
  position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 2000;
  max-width: 640px; margin: 0 auto;
  background: var(--bg-panel); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
#cookie-notice p { font-size: 0.88rem; color: var(--text-muted); flex: 1; min-width: 220px; }
#cookie-notice .cookie-actions { display: flex; gap: 0.8rem; }
#cookie-notice button {
  font-family: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer;
}
#cookie-accept { background: var(--accent); color: #fff; border: none; }
#cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--glass-border); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 968px) {
  .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 130px; }
  .hero-tagline { margin: 0 auto 2rem; border-left: none; border-bottom: 3px solid var(--accent); padding-bottom: 1rem; }
  .hero-cta-row, .hero-badges { justify-content: center; }

  .graph-container { width: 100%; right: 0; opacity: 0.25; }
  .bar-group { left: 50%; transform: translateX(-50%) rotateY(0); gap: 20px; bottom: 6%; }

  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .img-frame { order: -1; margin-bottom: 2rem; }
  .contact-info, .contact-form { padding: 2.5rem; }

  .hamburger { display: block; z-index: 1001; }

  .nav-links {
    position: fixed; inset: 0; background: var(--bg-darkest); flex-direction: column; justify-content: center;
    padding: 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; margin-bottom: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-padding { padding: 4.5rem 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}
