/* BrightAnchor Nonprofit Ops - Brand Kit Styles */

:root {
    /* Brand Colors - From BrightAnchor Brand Kit */
    --anchor-navy: #0B2C4A;
    --bright-gold: #D3A84C;
    --mission-sage: #4C7753;
    --soft-cream: #FAF7F1;
    --warm-sand: #E4D7B3;
    --deep-forest: #355F3F;
    
    /* Typography - From Brand Kit */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--anchor-navy);
    background-color: var(--soft-cream);
    line-height: 1.6;
    font-size: 18px;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--anchor-navy);
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 36px;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    font-size: 18px;
    line-height: 1.7;
}

a {
    color: var(--anchor-navy);
    text-decoration: none;
}

a:hover {
    color: var(--bright-gold);
}

/* Navigation */
.navbar {
    background-color: var(--soft-cream);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(11, 44, 74, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--anchor-navy);
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--bright-gold);
}

/* Primary Button - Navy */
.btn-primary {
    display: inline-block;
    background-color: var(--anchor-navy);
    color: var(--soft-cream);
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0a2540;
    color: var(--soft-cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 44, 74, 0.3);
}

/* Secondary Button - Outlined */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--anchor-navy);
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid var(--anchor-navy);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--anchor-navy);
    color: var(--soft-cream);
}

/* CTA Button in Nav */
.cta-button {
    background-color: var(--anchor-navy);
    color: var(--soft-cream) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #0a2540;
    color: var(--soft-cream) !important;
}

/* Hero Section */
.hero {
    background-color: var(--soft-cream);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    color: var(--anchor-navy);
    font-size: 52px;
    margin-bottom: 0.5rem;
}

.hero h1 .gold-text {
    color: var(--bright-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 2rem;
    color: var(--anchor-navy);
    line-height: 1.7;
}

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

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Legacy feature-card styles (kept for reference) */
.feature-card h4 {
    margin-bottom: 0.25rem;
    font-size: 16px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Wave Divider */
.wave-divider {
    height: 80px;
    background: var(--soft-cream);
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-icon {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-left: 12px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--anchor-navy);
}

/* Mission Section */
.mission {
    padding: 4rem 0;
    background-color: white;
}

.mission h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 28px;
    color: var(--anchor-navy);
}

.mission-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--anchor-navy);
    font-size: 18px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--soft-cream);
    border-radius: 12px;
    border: 2px solid var(--warm-sand);
}

.mission-card h4 {
    color: var(--anchor-navy);
    margin-bottom: 0.75rem;
    font-size: 20px;
}

.mission-card p {
    color: var(--anchor-navy);
    font-size: 16px;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--soft-cream);
}

.section-label {
    text-align: center;
    color: var(--bright-gold);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.services h2 {
    margin-bottom: 0.75rem;
    color: var(--anchor-navy);
}

.services-intro {
    text-align: center;
    color: var(--anchor-navy);
    margin-bottom: 3rem;
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--warm-sand);
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: var(--bright-gold);
}

.service-illustration {
    width: 100%;
    height: 140px;
    background-color: var(--soft-cream);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-illustration svg {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 168, 76, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 24px;
}

.service-card h3 {
    color: var(--anchor-navy);
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Who We Serve */
.who-we-serve {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.who-we-serve h3 {
    color: var(--anchor-navy);
    font-size: 28px;
    margin-bottom: 1rem;
}

.who-we-serve p {
    color: var(--anchor-navy);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--soft-cream);
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    color: var(--anchor-navy);
}

.contact-intro {
    text-align: center;
    color: var(--anchor-navy);
    margin-bottom: 3rem;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-item {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--warm-sand);
}

.contact-item h4 {
    color: var(--anchor-navy);
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.contact-item a {
    color: var(--anchor-navy);
    text-decoration: none;
    font-size: 16px;
}

.contact-item a:hover {
    color: var(--bright-gold);
}

.contact-item p {
    color: var(--anchor-navy);
    font-size: 16px;
}

.contact-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--anchor-navy);
    color: var(--soft-cream);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-logo strong {
    color: var(--bright-gold);
}

.footer-tagline {
    color: var(--warm-sand);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 42px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-images {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* =========================
   BrightAnchor Chatbot
   ========================= */

/* Hidden popup by default */
#chatbot-container {
  position: fixed !important;
  bottom: 90px !important;
  right: 20px !important;
  width: 320px;
  max-height: 60vh;
  background: #fffaf3;
  border: 1px solid #f0d9b5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  z-index: 9999 !important;
  
  /* Hidden by default */
  display: none !important;
}

/* When open, show the chatbot */
#chatbot-container.open {
  display: flex !important;
}

#chatbot-header {
  background: #f9d58c; /* warm gold */
  color: #0b2c4a;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
}

#chatbot-messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  font-size: 13px;
  background: #fffdf8;
}

.chatbot-message {
  margin-bottom: 8px;
  line-height: 1.4;
}

.chatbot-message.user {
  text-align: right;
}

.chatbot-message.user span {
  display: inline-block;
  background: #f3e5c8;
  padding: 6px 8px;
  border-radius: 12px 12px 0 12px;
}

.chatbot-message.bot span {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #f0d9b5;
  padding: 6px 8px;
  border-radius: 12px 12px 12px 0;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #f0d9b5;
  background: #fffaf3;
}

#chatbot-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 13px;
  background: transparent;
}

#chatbot-input:focus {
  outline: none;
}

#chatbot-send {
  border: none;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  background: #f9d58c;
  color: #0b2c4a;
  font-weight: 600;
}

#chatbot-send:hover {
  filter: brightness(0.95);
}

/* Floating circular toggle button */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #f9d58c;
  color: #0b2c4a;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

#chatbot-toggle:hover {
  filter: brightness(0.95);
}

/* Mobile: make chatbot a bit narrower */
@media (max-width: 600px) {
  #chatbot-container {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}
