/* ==========================================
   拾光婚姻法律諮詢 - 統一樣式系統
   Brand Colors:
   主色 深藍綠  #2A5C58
   輔色 暖金    #C9A55A
   背景 奶油白  #F8F3EA
   輔助 霧霾綠  #8BADA6
   文字 炭灰    #2D2D2D
   ========================================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* === CSS Variables === */
:root {
  --primary: #2A5C58;
  --primary-dark: #1E4440;
  --primary-light: #3D7A75;
  --gold: #C9A55A;
  --gold-light: #DFC180;
  --gold-dark: #A8863C;
  --cream: #F8F3EA;
  --cream-dark: #EFE8D8;
  --sage: #8BADA6;
  --sage-light: #B3CEC9;
  --text: #2D2D2D;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(42, 92, 88, 0.12);
  --shadow-hover: 0 8px 30px rgba(42, 92, 88, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif TC', serif;
  line-height: 1.4;
}

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

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

ul {
  list-style: none;
}

/* === Utility Classes === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 48px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 52px;
}

.section-title-wrap .section-title {
  margin-bottom: 8px;
}

.gold-accent {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Gold Divider */
.gold-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.gold-divider-left {
  margin-left: 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

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

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

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

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 165, 90, 0.35);
}

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

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 243, 234, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 92, 88, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(42, 92, 88, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-logo-mark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid var(--gold);
  opacity: 0.7;
}

.brand-logo-mark span {
  color: var(--white);
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.brand-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  font-weight: 400;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-light);
  border-radius: 8px;
  font-weight: 400;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(42, 92, 88, 0.06);
  font-weight: 500;
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(42, 92, 88, 0.1);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(42, 92, 88, 0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(42, 92, 88, 0.06);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .nav-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  border-bottom: none;
}

/* === Page Hero (for inner pages) === */
.page-hero {
  background: var(--primary);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20%;
  width: 140%;
  height: 80px;
  background: var(--cream);
  border-radius: 50%;
}

.page-hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-family: 'Noto Sans TC', sans-serif;
}

.page-hero h1 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(42, 92, 88, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* === Footer === */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-icon {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
}

/* LINE CTA Banner */
.line-cta-section {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.line-cta-section::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -20%;
  width: 140%;
  height: 70px;
  background: var(--cream);
  border-radius: 50%;
}

.line-cta-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20%;
  width: 140%;
  height: 70px;
  background: var(--cream);
  border-radius: 50%;
}

.line-cta-inner {
  position: relative;
  z-index: 1;
}

.line-cta-section h2 {
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 10px;
}

.line-cta-section p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-size: 1rem;
}

.btn-line {
  background: #06C755;
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-line:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.35);
}

/* === Scroll to top === */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 15px rgba(42, 92, 88, 0.3);
  font-size: 1.1rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* === Responsive === */
@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
