/* ========================================
   ESTATE CHARITY OF SIR CHRISTOPHER NEVILE
   Traditional English Charity Website Styles
   ======================================== */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f7f5f3;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: #1a365d;
}

h2 {
  font-size: 2.2rem;
  color: #1a365d;
}

h3 {
  font-size: 1.8rem;
  color: #2d5016;
}

h4 {
  font-size: 1.4rem;
  color: #1a365d;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ========================================
   CONTAINER AND LAYOUT
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   INNOVATION 1: 3D HEADER WITH FLOATING NAVIGATION
   ======================================== */

.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.floating-nav {
  position: relative;
  z-index: 2;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  border-color: #f7f5f3;
}

.charity-name {
  font-size: 1.3rem;
  color: #f7f5f3;
  margin: 0;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: #f7f5f3;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #f7f5f3;
  transition: all 0.3s ease;
}

/* ========================================
   INNOVATION 2: PARALLAX SCROLLING HERO SECTION
   ======================================== */

.hero-section {
  height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #1a365d 0%, #2d5016 50%, #1a365d 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  background-image: url("background.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.4) 0%,
    rgba(45, 80, 22, 0.3) 50%,
    rgba(26, 54, 93, 0.4) 100%
  );
  z-index: 1;
}

.gradient-overlay {
  background: linear-gradient(
    45deg,
    rgba(26, 54, 93, 0.5) 0%,
    rgba(45, 80, 22, 0.4) 30%,
    rgba(212, 175, 55, 0.2) 60%,
    rgba(26, 54, 93, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #f7f5f3;

  max-width: 800px;
  padding: 10rem 2rem;

  margin: 8vh auto 0;  /* 👈 关键：左右 auto */
}


.hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ========================================
   INNOVATION 3: PARALLAX FLOATING ELEMENTS
   ======================================== */

.parallax-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.element-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.element-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 5%;
  animation-delay: 1s;
  animation-duration: 8s;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.element-5 {
  width: 70px;
  height: 70px;
  bottom: 60%;
  left: 5%;
  animation-delay: 3s;
  animation-duration: 7s;
  background: rgba(247, 245, 243, 0.1);
  border: 2px solid rgba(247, 245, 243, 0.3);
}

.element-6 {
  width: 45px;
  height: 45px;
  top: 15%;
  left: 50%;
  animation-delay: 2.5s;
  animation-duration: 5s;
  background: rgba(26, 54, 93, 0.1);
  border: 2px solid rgba(26, 54, 93, 0.3);
}

.element-7 {
  width: 90px;
  height: 90px;
  bottom: 10%;
  right: 30%;
  animation-delay: 4.5s;
  animation-duration: 9s;
  background: rgba(45, 80, 22, 0.1);
  border: 2px solid rgba(45, 80, 22, 0.3);
}

.element-8 {
  width: 55px;
  height: 55px;
  top: 70%;
  left: 35%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
  background: rgba(212, 175, 55, 0.08);
  border: 2px solid rgba(212, 175, 55, 0.25);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a365d;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #f7f5f3;
  border: 2px solid #d4af37;
}

.btn-secondary:hover {
  background: #d4af37;
  color: #1a365d;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

/* ========================================
   SECTION STYLES
   ======================================== */

section {
  position: relative;
  padding: 5rem 0;
  min-height: 80vh;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(45, 80, 22, 0.6) 50%,
    rgba(26, 54, 93, 0.8) 100%
  );
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  color: #f7f5f3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.3rem;
  color: #f7f5f3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.about-text h3 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.values-list {
  list-style: none;
  margin-top: 1.5rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.values-list li:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(10px);
}

.values-list i {
  color: #d4af37;
  font-size: 1.2rem;
  width: 20px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  background: rgba(247, 245, 243, 0.95);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 1.1rem;
  color: #1a365d;
  font-weight: 600;
}

/* ========================================
   LEGACY SECTION
   ======================================== */

.legacy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.legacy-text {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.legacy-text h3 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.legacy-text p {
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.legacy-timeline {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 4px solid #d4af37;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 10px 10px 0;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(10px);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4af37;
  min-width: 80px;
  text-align: center;
}

.timeline-content {
  color: #2d3748;
  font-weight: 500;
}

/* ========================================
   INNOVATION 4: CARD HOVER TRANSFORMATIONS
   ======================================== */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  background: rgba(247, 245, 243, 0.95);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card-hover {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-hover:hover {
  transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.card-hover:hover::before {
  left: 100%;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1a365d;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.card-hover:hover .card-icon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.impact-card h3 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.impact-card p {
  color: #2d3748;
  line-height: 1.6;
}

/* ========================================
   SUBSCRIBE SECTION
   ======================================== */

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.subscribe-text {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.subscribe-text h3 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.subscribe-text p {
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.newsletter-benefits h4 {
  color: #1a365d;
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.newsletter-benefits ul {
  list-style: none;
}

.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.newsletter-benefits li:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(10px);
}

.newsletter-benefits i {
  color: #2d5016;
  font-size: 1.1rem;
}

.subscribe-form {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #1a365d;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-group input,
.form-group select {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.contact-info h3 {
  color: #1a365d;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(10px);
}

.contact-item i {
  color: #d4af37;
  font-size: 1.5rem;
  margin-top: 0.2rem;
  width: 24px;
}

.contact-item h4 {
  color: #1a365d;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  color: #2d3748;
  margin: 0;
  line-height: 1.5;
}

.office-hours {
  background: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #d4af37;
}

.office-hours h4 {
  color: #1a365d;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.office-hours p {
  color: #2d3748;
  margin: 0;
  line-height: 1.6;
}

.contact-map {
  background: rgba(247, 245, 243, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.contact-map h3 {
  color: #1a365d;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  border-radius: 10px;
}

/* ========================================
   INNOVATION 5: GRADIENT OVERLAY SYSTEM
   ======================================== */

.about-section .section-bg::before {
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.85) 0%,
    rgba(45, 80, 22, 0.7) 50%,
    rgba(212, 175, 55, 0.3) 100%
  );
}

.legacy-section .section-bg::before {
  background: linear-gradient(
    135deg,
    rgba(45, 80, 22, 0.85) 0%,
    rgba(26, 54, 93, 0.7) 50%,
    rgba(212, 175, 55, 0.3) 100%
  );
}

.impact-section .section-bg::before {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(26, 54, 93, 0.8) 30%,
    rgba(45, 80, 22, 0.7) 70%,
    rgba(212, 175, 55, 0.2) 100%
  );
}

.subscribe-section .section-bg::before {
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(45, 80, 22, 0.7) 100%
  );
}

.contact-section .section-bg::before {
  background: linear-gradient(
    135deg,
    rgba(45, 80, 22, 0.8) 0%,
    rgba(26, 54, 93, 0.7) 50%,
    rgba(212, 175, 55, 0.2) 100%
  );
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: linear-gradient(135deg, #1a365d, #2d5016);
  color: #f7f5f3;
  padding: 4rem 0 2rem;
  margin-top: 0rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 👈 固定 4 列 */
  gap: 3rem;
  margin-bottom: 3rem;
}


.footer-section h3,
.footer-section h4 {
  color: #d4af37;
  margin-bottom: 1.5rem;
}

.footer-section p {
  color: #f7f5f3;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #f7f5f3;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-bottom p {
  color: #f7f5f3;
  margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .charity-name {
    font-size: 1rem;
  }

  .hero-content {
    margin-top: 12vh;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content,
  .legacy-content,
  .subscribe-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .about-text,
  .legacy-text,
  .subscribe-text,
  .contact-info,
  .contact-map,
  .subscribe-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    margin-top: 15vh;
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ========================================
   ACCESSIBILITY AND PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
input:focus,
select:focus {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-overlay,
  .section-bg::before {
    background: rgba(0, 0, 0, 0.8) !important;
  }

  .nav-link,
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .header-3d,
  .floating-nav,
  .parallax-elements {
    display: none;
  }

  .hero-section {
    height: auto;
    background: none;
  }

  .section-bg {
    display: none;
  }

  .about-text,
  .legacy-text,
  .subscribe-text,
  .contact-info,
  .contact-map,
  .subscribe-form {
    background: white;
    box-shadow: none;
  }
}
