/* ===================================================
   Tralee Little Dolphins Club - Website Styles
   Brand colors and design language from Visual Guide
   =================================================== */

/* --- Custom Properties (Brand Palette) --- */
:root {
  --primary-blue: #1E73BE;
  --light-blue: #6EC4E4;
  --dark-navy: #0F4C81;
  --white: #FFFFFF;
  --pink: #FF99CC;
  --red-accent: #FFC4C4;
  --yellow: #FFD700;
  --green: #4CAF50;
  --orange: #FFA500;

  --bg-light: #F7FBFE;
  --bg-section: #EBF5FB;
  --text-dark: #1a2a3a;
  --text-body: #3a4a5a;
  --text-light: #576878;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(15, 76, 129, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 76, 129, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 76, 129, 0.16);

  --transition: 0.3s ease;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 100%;
}


body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dark-navy);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  line-height: 1.3;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

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

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark-navy);
  line-height: 1.2;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--bg-section);
  color: var(--primary-blue);
}

.nav-link--cta {
  background: var(--primary-blue);
  color: var(--white) !important;
  margin-left: 0.5rem;
  border-radius: var(--radius-xl);
  padding: 0.5rem 1.25rem;
}

.nav-link--cta:hover {
  background: var(--dark-navy);
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark-navy);
  border-radius: 2px;
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: transform var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--dark-navy);
  border-color: var(--dark-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* --- Wave Dividers --- */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  padding: 8rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(110, 196, 228, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1 1 55%;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--yellow);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light-blue);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.hero-poster {
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform var(--transition);
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --- Section Titles --- */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- About Section --- */
.about {
  padding: 5rem 0 1rem;
  background: var(--white);
}

.about-intro {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-intro p + p {
  margin-top: 1rem;
}

/* Mission & Vision */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mission-card {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--white) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.mission-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

/* Values */
.values-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.value-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-navy);
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* --- Services Section --- */
.services {
  padding: 5rem 0 1rem;
  background: var(--bg-section);
}

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-navy);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8f0f8;
  font-size: 0.95rem;
}

.service-detail-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.service-label {
  color: var(--text-light);
  font-weight: 600;
}

.service-label::after {
  content: ":";
}

.service-value {
  color: var(--text-body);
  font-weight: 600;
}

.service-price {
  color: var(--primary-blue);
}

/* --- Get Involved Section --- */
.get-involved {
  padding: 5rem 0 1rem;
  background: var(--white);
}

.involved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.involved-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.involved-card--volunteer {
  background: linear-gradient(135deg, #f0f9ff 0%, var(--white) 100%);
  border: 2px solid var(--light-blue);
}

.involved-card--partners {
  background: var(--white);
  border: 1px solid #e8f0f8;
}

.involved-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--dark-navy);
}

.involved-card p {
  margin-bottom: 1rem;
}

.involved-card .btn {
  margin-top: 0.5rem;
}

.partners-list {
  list-style: none;
  padding: 0;
}

.partners-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 0.95rem;
}

.partners-list li:last-child {
  border-bottom: none;
}

.nonprofit-note {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--bg-section) 0%, #fff8e1 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--yellow);
}

/* --- Contact Section --- */
.contact {
  padding: 5rem 0 4rem;
  background: var(--bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--dark-navy);
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-body);
}

.contact-item a:hover {
  color: var(--primary-blue);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark-navy);
  margin-bottom: 0.4rem;
}

.required {
  color: #e74c3c;
}

.optional {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid #dce6f0;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
  outline: none;
}

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

.btn-submit {
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* Map */
.map-wrapper {
  margin-top: 2rem;
}

.map-wrapper h3 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.wave-divider--footer {
  margin-top: -1px;
}

.footer-content {
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  border-radius: 50%;
  object-fit: cover;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--yellow);
}

.footer-affiliation {
  font-size: 0.85rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
  color: var(--yellow);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-poster {
    max-width: 300px;
  }

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

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    padding: 5rem 1.5rem 2rem;
    z-index: 105;
  }

  .primary-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .nav-link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 7rem 0 2rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

  .section-title {
    font-size: 1.85rem;
  }

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

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

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

  .footer-brand {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* Nav overlay for mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 76, 129, 0.3);
  z-index: 99;
}

.nav-overlay.active {
  display: block;
}
