/* ==========================================================================
   Brave Concept AI — Global Stylesheet
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --navy: #0A1628;
  --teal: #007B8A;
  --gold: #C9A84C;
  --white: #FFFFFF;
  --dark-gray: #444444;
  --light-gray: #F5F5F5;
  --teal-dark: #006070;
  --border-color: #E0E0E0;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
}

p {
  max-width: 680px;
}

a {
  color: var(--teal);
  text-decoration: underline;
}

nav a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  color: var(--white);
  background: var(--teal);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus-visible {
  position: fixed;
  top: 10px;
  left: 10px;
}

/* ==========================================================================
   Focus Styles
   ========================================================================== */
*:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

section {
  padding: 80px 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: relative;
}

/* Mobile Close Button */
.mobile-close {
  display: none;
}
@media (max-width: 768px) {
  .mobile-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 10;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(0, 123, 138, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-white:hover {
  background: #f0f0f0;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
  background: var(--navy);
  min-height: 85vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 123, 138, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 123, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0, 123, 138, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  background: var(--navy);
  min-height: 50vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 123, 138, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 123, 138, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  min-width: 250px;
}

.stat + .stat {
  border-left: 1px solid var(--teal);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--teal);
  display: block;
}

.stat-text {
  font-size: 15px;
  color: var(--dark-gray);
  max-width: 280px;
  margin: 8px auto 0;
}

/* ==========================================================================
   Quote Section
   ========================================================================== */
.quote-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.quote-text {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-attribution {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-top: 24px;
}

/* ==========================================================================
   Testimonial Cards
   ========================================================================== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--teal);
  transform: translateY(-2px);
}

.testimonial-card .quote-mark {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card .testimonial-text {
  color: var(--dark-gray);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-card .testimonial-divider {
  width: 40px;
  height: 2px;
  background: var(--teal);
  margin-bottom: 16px;
}

.testimonial-card .testimonial-attribution {
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.testimonial-card .testimonial-role {
  color: var(--dark-gray);
  font-size: 13px;
  margin-top: 2px;
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  overflow: hidden;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.blog-card-header {
  height: 160px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
}

.blog-card-body {
  padding: 24px;
}

.category-pill {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
}

.footer-tagline {
  color: var(--gold);
  font-style: italic;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--teal);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero load animation - replaces reveal class for hero content */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
}
.hero-animate-delay-1 { animation-delay: 0.1s; }
.hero-animate-delay-2 { animation-delay: 0.3s; }
.hero-animate-delay-3 { animation-delay: 0.5s; }
.hero-animate-delay-4 { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.2s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  outline: none;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #DC3545;
}

.form-error {
  color: #DC3545;
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
details {
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 24px;
  color: var(--teal);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] summary::after {
  content: '\2212';
}

details .faq-answer {
  padding: 0 0 20px;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--teal-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-navy {
  color: var(--navy);
}

.text-teal {
  color: var(--teal);
}

.text-gold {
  color: var(--gold);
}

.bg-light {
  background: var(--light-gray);
}

.bg-navy {
  background: var(--navy);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ==========================================================================
   Responsive — Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    min-height: 60vh;
  }

  section {
    padding: 60px 0;
  }

  .stats-bar {
    flex-direction: column;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--teal);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive — Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .mobile-menu.open {
    max-height: 100vh;
  }

  .mobile-menu a {
    display: block;
    padding: 16px 24px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }

  .grid-12 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero-inner {
    padding: 80px 0 48px;
  }

  h2 {
    font-size: 28px;
  }

  section {
    padding: 48px 0;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-group .btn-primary,
  .btn-group .btn-secondary,
  .btn-group .btn-white {
    width: 100%;
    text-align: center;
  }

  .card {
    padding: 24px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .hamburger,
  .mobile-menu {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .hero,
  .hero-inner {
    background: #f5f5f5;
    min-height: auto;
    padding: 24px 0;
  }

  .hero h1 {
    color: black;
  }

  .hero p {
    color: #333;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
