/* ===== 老少平安 Website Styles ===== */
:root {
  --red: #A52A2A;
  --red-dark: #8B2323;
  --cream: #F9F6F1;
  --warm-white: #FFFCFA;
  --text: #3A2F2A;
  --text-light: #6B5E55;
  --border: #E8E0D8;
  --green-soft: #6B8E6B;
  --shadow: 0 8px 30px rgba(58, 47, 42, 0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  line-height: 1.2;
}

.logo-text .sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.nav a:hover {
  color: var(--red);
}

.btn-nav {
  background: var(--red) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px !important;
}

.btn-nav:hover {
  background: var(--red-dark) !important;
}

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

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(249,246,241,0.92) 0%, rgba(249,246,241,0.75) 45%, rgba(249,246,241,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.hero-text {
  max-width: 560px;
}

.hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}

.desc {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ===== Belief ===== */
.belief {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 48px 24px;
}

.belief-text {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

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

/* ===== Community ===== */
.community {
  padding: 80px 0;
  background: var(--warm-white);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.community-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.community-card:hover {
  transform: translateY(-4px);
}

.card-img {
  height: 220px;
  overflow: hidden;
}

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

.community-card:hover .card-img img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.link-more {
  color: var(--red);
  font-weight: 500;
  font-size: 14px;
}

.link-more:hover {
  text-decoration: underline;
}

.community-cta {
  text-align: center;
  background: #F5F0E9;
  padding: 36px 24px;
  border-radius: var(--radius);
}

.community-cta p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
  padding: 80px 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-item {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.service-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.7;
  margin-bottom: 12px;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.service-item p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

.services-note {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.services-note p {
  margin-bottom: 18px;
  color: var(--text-light);
}

/* ===== About ===== */
.about {
  padding: 80px 0;
  background: var(--warm-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content .section-label {
  display: block;
  margin-bottom: 8px;
}

.about-content h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* ===== Values ===== */
.values {
  padding: 80px 0;
  background: var(--cream);
}

.values-image-wrap {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.values-image-wrap img {
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.value-item h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: 8px;
}

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

/* ===== Closing ===== */
.closing {
  padding: 80px 0;
  background: linear-gradient(180deg, #F5F0E9 0%, var(--cream) 100%);
  text-align: center;
}

.closing h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 24px;
  color: var(--text);
}

.closing p {
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.closing-quote {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem !important;
  color: var(--red) !important;
  font-weight: 500;
  margin: 32px auto !important;
}

.closing .btn {
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  background: #2F2824;
  color: #E8E0D8;
  padding-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 56px;
  width: auto;
  background: white;
  border-radius: 6px;
  padding: 4px;
}

.footer-brand strong {
  color: white;
  font-size: 1.05rem;
}

.footer-sub {
  font-size: 13px;
  opacity: 0.8;
}

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

.footer-contact p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-image img {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(249,246,241,0.85) 0%, rgba(249,246,241,0.7) 100%);
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .desktop-br {
    display: none;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
  }
}
