/* British Legion Women's Section - Custom CSS */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary-navy: #1e3a8a;
  --secondary-gold: #fbbf24;
  --accent-red: #dc2626;
  --neutral-gray: #6b7280;
  --background-white: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans Pro", sans-serif;
  --font-decorative: "Cinzel", serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* 1. 3D Header Effect */
.header-3d {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e40af 100%);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateZ(0);
  backdrop-filter: blur(10px);
}

.header-3d .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--secondary-gold);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
  font-family: var(--font-decorative);
  color: var(--secondary-gold);
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
  color: var(--background-white);
  font-size: 0.9rem;
  margin-top: -5px;
}

/* 2. Military Style Navigation */
.military-nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 2px solid var(--secondary-gold);
  border-radius: 25px;
  color: var(--background-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-badge:hover::before {
  left: 100%;
}

.nav-badge:hover {
  background: linear-gradient(145deg, var(--secondary-gold), #f59e0b);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 90px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.8),
    rgba(220, 38, 38, 0.6)
  );
}

.hero-content {
  text-align: center;
  color: var(--background-white);
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: var(--font-decorative);
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(145deg, var(--secondary-gold), #f59e0b);
  color: var(--primary-navy);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--background-white);
  border: 2px solid var(--background-white);
}

.btn-secondary:hover {
  background: var(--background-white);
  color: var(--primary-navy);
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-decorative);
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-decorative);
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin-bottom: 15px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.8;
}

.values-list {
  list-style: none;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.values-list i {
  color: var(--accent-red);
  font-size: 1.2rem;
  width: 20px;
}

.image-clipped {
  clip-path: inset(0% 0% 5% 5%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* 3. Services Section with 3D Cards */
.services-section {
  background: var(--background-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  height: 200px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.card-front {
  background: linear-gradient(135deg, var(--primary-navy), #1e40af);
  color: var(--background-white);
}

.card-back {
  background: linear-gradient(135deg, var(--secondary-gold), #f59e0b);
  color: var(--primary-navy);
  transform: rotateY(180deg);
}

.card-front i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--secondary-gold);
}

.card-front h3 {
  font-family: var(--font-decorative);
  font-size: 1.3rem;
}

.card-back p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* Events Section */
.events-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.events-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.event-item {
  display: flex;
  gap: 20px;
  background: var(--background-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.event-item:hover {
  transform: translateY(-5px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-navy);
  color: var(--background-white);
  padding: 15px;
  border-radius: var(--border-radius);
  min-width: 80px;
}

.event-date .month {
  font-size: 0.9rem;
  font-weight: 600;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-decorative);
}

.event-details h3 {
  font-family: var(--font-decorative);
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.event-details p {
  color: var(--text-light);
  margin-bottom: 8px;
}

.event-time {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* 4. History Section with Timeline */
.history-section {
  background: var(--background-white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-navy),
    var(--secondary-gold)
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-year {
  display: inline-block;
  background: var(--primary-navy);
  color: var(--background-white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-family: var(--font-decorative);
  font-size: 1.1rem;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
}

.timeline-content {
  background: var(--background-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--secondary-gold);
}

.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--secondary-gold);
}

.timeline-content h3 {
  font-family: var(--font-decorative);
  color: var(--primary-navy);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-item i {
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-top: 5px;
}

.contact-item h3 {
  font-family: var(--font-decorative);
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Subscribe Section */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e40af 100%);
  color: var(--background-white);
}

.subscribe-section .section-header h2,
.subscribe-section .section-header p {
  color: var(--background-white);
}

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.subscribe-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--background-white);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-gold);
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: var(--background-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-family: var(--font-decorative);
  color: var(--secondary-gold);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--background-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-3d .container {
    flex-direction: column;
    gap: 20px;
  }

  .military-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-badge {
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .about-content,
  .events-content,
  .contact-content,
  .subscribe-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-content {
    border-left: 4px solid var(--secondary-gold) !important;
    border-right: none !important;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .nav-badge {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* 5. Dynamic Background Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.05) 0%,
    rgba(251, 191, 36, 0.05) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img[src=""] {
  opacity: 0;
}

/* Focus States for Accessibility */
.nav-badge:focus,
.btn:focus,
input:focus,
select:focus {
  outline: 2px solid var(--secondary-gold);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header-3d,
  .hero-section,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-header h2 {
    font-size: 18pt;
    color: black;
  }
}
