/* ============================================================================
   CDA Parkinson's Support Group - CSS Foundation
   ============================================================================ */

/* CSS Custom Properties */
:root {
  /* Colors */
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #1e73be;

  /* Button colors */
  --btn-primary: #0B2F5B;
  --btn-primary-hover: #0D386D;
  --btn-cta: #DA0731;
  --btn-cta-hover: #E00733;

  /* Footer colors */
  --footer-main: rgb(4, 19, 36);
  --footer-bar: #000000;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* ============================================================================
   CSS Reset & Base Styles
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #111111;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.3em;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

h2 {
  font-size: 42px;
  font-weight: 600;
  color: #111111;
}

h3 {
  font-size: 32px;
  font-weight: 600;
  color: #111111;
}

h4 {
  font-size: 26px;
  font-weight: 600;
  color: #0B2F5B;
}

h5 {
  font-size: 22px;
  font-weight: 600;
  color: #111111;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: #1e73be;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #222222;
  text-decoration: underline;
}

ul {
  margin-bottom: 0;
}

/* ============================================================================
   Layout & Container
   ============================================================================ */

.container,
.grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site {
  width: 100%;
}

.site-content {
  width: 100%;
}

/* ============================================================================
   Header Styles
   ============================================================================ */

header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.sticky-shrink {
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

#site-logo {
  max-width: 280px;
  height: auto;
  transition: width 0.3s ease, max-width 0.3s ease;
}

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

header.sticky-shrink #site-logo {
  max-width: 200px;
}

/* ============================================================================
   Navigation
   ============================================================================ */

nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  margin: 0 2rem;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
  margin: 0;
}

nav a {
  display: block;
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: Roboto, sans-serif;
}

nav a:hover,
nav a.current-menu-item {
  color: #1e73be;
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f0f0f0;
  min-width: 250px;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

nav li:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background-color: #ffffff;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 1rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #222222;
  margin: 5px 0;
  transition: 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

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

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

/* ============================================================================
   Button Styles
   ============================================================================ */

.btn,
.btn-primary,
.btn-cta,
button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  padding: 15px 25px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary,
.reg-btn a {
  background-color: #0B2F5B;
  color: white;
}

.btn-primary:hover,
.reg-btn a:hover {
  background-color: #0D386D;
}

.btn-cta,
.cta-btn a {
  background-color: #DA0731;
  color: white;
}

.btn-cta:hover,
.cta-btn a:hover {
  background-color: #E00733;
}

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

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

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.hero h2 {
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  color: white;
  font-size: 20px;
}

/* ============================================================================
   Content Sections
   ============================================================================ */

section {
  padding: 3rem 0;
}

/* Alternating background sections */
section:nth-child(odd) {
  background-color: #ffffff;
}

section:nth-child(even) {
  background-color: #D9D9D9;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin: 0;
}

.section-divider {
  width: 80px;
  height: 2px;
  background-color: #1e73be;
  margin: 1rem auto;
}

/* ============================================================================
   Card Styles
   ============================================================================ */

.card {
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: #0B2F5B;
  margin-bottom: 1rem;
}

.card-text {
  color: #111111;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  color: #1e73be;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #222222;
}

/* Testimonial Card Styles */
.testimonial-card {
  background-color: #f7f8f9;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #0B2F5B;
}

.testimonial-card p {
  font-style: italic;
  color: #111111;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: #0B2F5B;
  margin-bottom: 0.25rem;
}

.testimonial-date {
  font-size: 14px;
  color: #575760;
}

/* ============================================================================
   Grid Layouts
   ============================================================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================================================
   Testimonials Section
   ============================================================================ */

.testimonial {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-left: 4px solid #1e73be;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.testimonial-author {
  font-weight: 700;
  color: #0B2F5B;
  margin-top: 1rem;
}

.testimonial-title {
  font-size: 14px;
  color: #575760;
  font-style: italic;
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
  background-color: rgb(4, 19, 36);
  color: white;
  padding: 3rem 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-column h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 1rem;
}

.footer-column p {
  color: white;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #DA0731;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  background-color: #000000;
  padding: 1.5rem 2rem;
  text-align: center;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet Breakpoint - 1024px */
@media (max-width: 1024px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 38px;
  }

  h3 {
    font-size: 29px;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 400px;
  }

  section {
    padding: 2rem 0;
  }
}

/* Mobile Breakpoint - 768px */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  body {
    font-size: 16px;
  }

  .header-container {
    padding: 1rem;
  }

  #site-logo {
    max-width: 200px;
  }

  header.sticky-shrink #site-logo {
    max-width: 150px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    padding: 12px 2rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .hamburger {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f0f0f0;
    min-width: auto;
  }

  nav li.open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding-left: 3rem;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 300px;
  }

  .hero-content {
    padding: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  section {
    padding: 1.5rem 0;
  }

  .btn,
  .btn-primary,
  .btn-cta {
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  body {
    font-size: 15px;
  }

  .hero {
    height: 250px;
  }

  nav a {
    padding: 10px 1rem;
  }
}

/* ============================================================================
   Contact List Styles
   ============================================================================ */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: #1e73be;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: #0B2F5B;
  text-decoration: underline;
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.no-wrap {
  white-space: nowrap;
}
