/* ============================================================
   大南山村官方网站 - 样式系统
   设计理念: 自然、温暖、接地气的中国乡村美学
   ============================================================ */

/* --- CSS 变量 --- */
:root {
  --color-cream: #faf8f3;
  --color-sand: #f3efe8;
  --color-stone: #e8e4db;
  --color-warm-white: #fefdfb;
  --color-white: #ffffff;
  --color-earth: #3d3529;
  --color-soil: #6b5e4e;
  --color-soil-light: #9b8d7c;
  --color-sage: #5a7a46;
  --color-sage-dark: #4a6539;
  --color-sage-light: #e8f0e2;
  --color-terracotta: #c4784a;
  --color-terracotta-light: #fdf0e6;
  --color-sky: #87aec8;
  --color-sky-light: #e8f0f6;
  --color-gold: #c9a84c;
  --color-gold-light: #fdf8ec;

  --font-heading: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-number: 'SF Mono', 'Menlo', 'Consolas', monospace;

  --shadow-sm: 0 1px 2px rgba(61, 53, 41, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 53, 41, 0.08);
  --shadow-lg: 0 12px 40px rgba(61, 53, 41, 0.1);
  --shadow-xl: 0 20px 60px rgba(61, 53, 41, 0.12);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --max-width: 1200px;
  --nav-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-earth);
  background-color: var(--color-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  max-width: 65ch;
  color: var(--color-soil);
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 2px;
  background: var(--color-sage);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(61, 53, 41, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
  color: var(--color-earth);
}

.nav-logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.375rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: width 0.2s ease, background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Scrolled nav: dark text */
.nav.scrolled .nav-link {
  color: var(--color-soil);
}

.nav.scrolled .nav-link::after {
  background: var(--color-sage);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: var(--color-earth);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: var(--color-earth);
}

/* --- Hero Section --- */
/* --- Hero Carousel --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-earth);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(45, 35, 25, 0.3) 0%,
    rgba(45, 35, 25, 0.15) 40%,
    rgba(45, 35, 25, 0.45) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-sage-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left { left: 1.5rem; }
.hero-arrow-right { right: 1.5rem; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
}

.hero-dot:hover {
  border-color: #ffffff;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.45);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.6;
  }

  .hero-arrow-left { left: 0.75rem; }
  .hero-arrow-right { right: 0.75rem; }

  .hero-dots {
    bottom: 4.5rem;
    gap: 0.6rem;
  }

  .hero-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .hero-title {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  }
}

/* --- Section Common --- */
.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--color-sand);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--color-earth);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-soil);
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* --- About Section --- */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90, 122, 70, 0.15), rgba(0, 0, 0, 0.05));
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  color: var(--color-earth);
}

.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.about-highlight-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-terracotta-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  font-size: 1.125rem;
}

.about-highlight-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-earth);
  margin-bottom: 0.125rem;
}

.about-highlight-text span {
  font-size: 0.8125rem;
  color: var(--color-soil-light);
}

/* --- Stats Section --- */
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-sage-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-sage);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-soil);
  margin-top: 0.5rem;
}

/* --- Info Cards --- */
.info-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.info-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-soil-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.info-card-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-earth);
}

/* --- Landmarks Section --- */
.landmarks-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.landmark-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landmark-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.landmark-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.landmark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.landmark-card:hover .landmark-img {
  transform: scale(1.05);
}

.landmark-info {
  padding: 1.75rem;
}

.landmark-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.tag-nature { background: var(--color-sage-light); color: var(--color-sage-dark); }
.tag-water { background: var(--color-sky-light); color: #4a7a9b; }
.tag-culture { background: var(--color-terracotta-light); color: var(--color-terracotta); }
.tag-edu { background: var(--color-gold-light); color: #8a7430; }

.landmark-info h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--color-earth);
}

.landmark-info p {
  font-size: 0.9375rem;
  color: var(--color-soil);
  line-height: 1.7;
}

.landmark-extra {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(61, 53, 41, 0.08);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.landmark-extra h4 {
  font-size: 1rem;
  color: var(--color-soil);
  font-weight: 600;
  margin-bottom: 1rem;
}

.landmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landmark-tag-pill {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.1);
  border-radius: 9999px;
  color: var(--color-soil);
  transition: all 0.2s ease;
}

.landmark-tag-pill:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
}

/* --- Products Section --- */
.products-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.product-card {
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-earth);
}

/* Specialties Grid */
.specialties-grid {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.specialty-card {
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.specialty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.specialty-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-earth);
  margin-bottom: 0.5rem;
}

.specialty-desc {
  font-size: 0.875rem;
  color: var(--color-soil-light);
}

/* --- Resources Section --- */
.resources-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.resource-block h3 {
  font-size: 1.375rem;
  color: var(--color-earth);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resource-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--color-soil);
}

.resource-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-sage);
  flex-shrink: 0;
}

.resource-dot.warm {
  background: var(--color-terracotta);
}

.transport-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.transport-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--color-sage-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.transport-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-earth);
  margin-bottom: 0.125rem;
}

.transport-text span {
  font-size: 0.8125rem;
  color: var(--color-soil-light);
}

/* --- Infrastructure Section --- */
.infra-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.infra-card {
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.infra-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.infra-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-earth);
  line-height: 1.5;
}

/* --- News Section --- */
.news-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
}

.news-date-badge {
  background: var(--color-sage);
  color: white;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-date-year {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.news-date-day {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.25rem 0;
}

.news-date-month {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.9;
}

.news-content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h3 {
  font-size: 1.375rem;
  color: var(--color-earth);
  margin-bottom: 0.75rem;
}

.news-content p {
  font-size: 0.9375rem;
  color: var(--color-soil);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-soil-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-earth);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a,
.footer-col li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--color-white);
  border: 1px solid rgba(61, 53, 41, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: 50;
  font-size: 1.25rem;
  color: var(--color-soil);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-sage);
  color: white;
  border-color: var(--color-sage);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    aspect-ratio: 16/9;
  }

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

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

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

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

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

  .resources-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-date-badge {
    padding: 1.5rem 2rem;
    flex-direction: row;
    gap: 0.5rem;
  }

  .news-date-day {
    font-size: 1.75rem;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 4rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100dvh;
    background: var(--color-cream);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

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

  .nav-links .nav-link {
    color: var(--color-soil);
  }

  .nav-links .nav-link::after {
    background: var(--color-sage);
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    color: var(--color-earth);
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-card {
    padding: 1rem 0.75rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
