/* ============================================
   宝园财税官网 - 全局样式
   ============================================ */

/* 强制浅色模式 - 防止浏览器自动暗色模式覆盖颜色 */
html:not(.dark) {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

/* Google Fonts */
@import url('https://fonts.googleapis.cn/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --color-deep: #1E1B16;
  --color-deep-alt: #3A3428;
  --color-gold: #C8A45C;
  --color-cream: #FAF7F0;
  --color-champagne: #E8DCC6;
  --color-text: #2D2D3A;
  --color-muted: #8B7E6A;
  --color-dark-bg: #141210;
  --radius: 0.75rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

/* Utility classes */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* Section tag */
.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--color-muted);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--color-gold);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary:hover { background: #b8943f; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); }
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline-gold:hover { background: var(--color-gold); color: #fff; }
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--color-deep);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
.btn-dark:hover { background: var(--color-deep-alt); }

/* Card hover effect */
.card-hover {
  transition: all 0.3s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(200,164,92,0.15);
}

/* Service card */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(200,164,92,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, #C8A45C 0%, rgba(200,164,92,0.2) 100%);
  transition: width 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(200,164,92,0.15);
  border-color: rgba(200,164,92,0.25);
}
.service-card:hover::before { width: 3px; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: slideUp 0.3s ease-out;
}
.toast-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Count up animation */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero text readability */
.hero-text-shadow h1,
.hero-text-shadow span
.hero-text-shadow p {
  text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
}

/* 移动端 + 平板 (< 1024px)：hero 区域只占 80vh，下面板块露出 */
@media (max-width: 1023px) {
  section.min-h-screen {
    min-height: 80vh;
  }
}

/* Hero image object-position:
   - Mobile (< 768px): show building at right-bottom
   - Tablet (768-1023px): show building at left-top
   - Desktop (>= 1024px): do NOT override, use HTML default (or the inline style on the img)
   Note: 基础规则不写 object-position，PC 端走 img 默认值 */
@media (max-width: 767px) {
  .hero-img {
    object-position: 50% 10%;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-img {
    object-position: left top;
  }
}

/* Dark mode */
html.dark { color-scheme: dark; }
html.dark body { background: #141210; color: #e0d8c8; }
html.dark .bg-white { background: #1E1B16 !important; }
html.dark .bg-cream { background: #1A1714 !important; }
html.dark .text-deep { color: #e0d8c8 !important; }
html.dark .text-muted { color: #A89B85 !important; }
html.dark .service-card { background: #2A2520; border-color: rgba(200,164,92,0.15); }
html.dark .nav-glass { background: rgba(26,23,20,0.92) !important; }

/* ---- Navigation scrolled/forced - dark bg + white text (user preference) ---- */
#main-nav.nav-scrolled,
#main-nav.nav-force-solid { background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(12px) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important; }
#main-nav.nav-scrolled a,
#main-nav.nav-scrolled button,
#main-nav.nav-force-solid a,
#main-nav.nav-force-solid button { color: rgba(30,27,22,0.8) !important; }
#main-nav.nav-scrolled a:hover,
#main-nav.nav-scrolled button:hover,
#main-nav.nav-force-solid a:hover,
#main-nav.nav-force-solid button:hover { color: #C8A45C !important; }

/* ---- Navigation dark mode ---- */
html.dark #main-nav.nav-scrolled { background: rgba(26,23,20,0.92) !important; backdrop-filter: blur(12px) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; }
html.dark #main-nav.nav-force-solid { background: rgba(26,23,20,0.92) !important; backdrop-filter: blur(12px) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; }
html.dark #main-nav.nav-scrolled a,
html.dark #main-nav.nav-scrolled button,
html.dark #main-nav.nav-force-solid a,
html.dark #main-nav.nav-force-solid button { color: rgba(224,216,200,0.9) !important; }
html.dark #main-nav.nav-scrolled a:hover,
html.dark #main-nav.nav-scrolled button:hover,
html.dark #main-nav.nav-force-solid a:hover,
html.dark #main-nav.nav-force-solid button:hover { color: #C8A45C !important; }
html.dark #main-nav.nav-scrolled #services-dropdown a { color: #e0d8c8 !important; }
html.dark #main-nav.nav-scrolled #services-dropdown a:hover { color: #C8A45C !important; background: rgba(200,164,92,0.1) !important; }
html.dark #main-nav.nav-scrolled #services-dropdown { background: #1E1B16 !important; border-color: #3A3428 !important; }
html.dark #main-nav.nav-scrolled .nav-logo { filter: brightness(0) invert(1); }
html.dark #main-nav.nav-force-solid .nav-logo { filter: brightness(0) invert(1); }
html.dark #mobile-menu { background: rgba(26,23,20,0.95) !important; }
html.dark #mobile-menu a { color: #e0d8c8 !important; }
html.dark #mobile-menu a:hover { color: #C8A45C !important; }

/* See bottom of file for comprehensive inline style dark mode overrides */

/* ============================================================
   Dark mode - Tailwind utility class overrides (COMPREHENSIVE)
   All bg/text/border-[#hex] classes used in HTML files
   ============================================================ */

/* --- Background colors: light → dark --- */
/* Cream/white backgrounds → dark backgrounds */
html.dark .bg-\[\#FAF7F0\] { background-color: #1A1714 !important; }
html.dark .bg-\[\#E8DCC6\] { background-color: #2A2520 !important; }
html.dark .bg-\[\#FFFFFFF2\] { background-color: #1E1B16 !important; }
html.dark .bg-white { background-color: #1E1B16 !important; }

/* Deep dark backgrounds → slightly lighter for contrast */
html.dark .bg-\[\#1E1B16\] { background-color: #3A3428 !important; }
html.dark .bg-\[\#1E1B164D\] { background-color: rgba(58,52,40,0.3) !important; }

/* Alt dark backgrounds */
html.dark .bg-\[\#3A3428\] { background-color: #4A4438 !important; }
html.dark .bg-\[\#3A3428CC\] { background-color: rgba(74,68,56,0.8) !important; }
html.dark .bg-\[\#3A342899\] { background-color: rgba(58,52,40,0.6) !important; }

/* Gold backgrounds - keep but adjust */
html.dark .bg-\[\#C8A45C\] { background-color: #D4B06A !important; }
html.dark .bg-\[\#C8A45C0D\] { background-color: rgba(200,164,92,0.05) !important; }
html.dark .bg-\[\#C8A45C14\] { background-color: rgba(200,164,92,0.08) !important; }
html.dark .bg-\[\#C8A45C1A\] { background-color: rgba(200,164,92,0.1) !important; }
html.dark .bg-\[\#C8A45C26\] { background-color: rgba(200,164,92,0.15) !important; }
html.dark .bg-\[\#C8A45C40\] { background-color: rgba(200,164,92,0.25) !important; }
html.dark .bg-\[\#b8943f\] { background-color: #D4B06A !important; }

/* White with alpha → dark with alpha */
html.dark .bg-\[\#FFFFFF0D\] { background-color: rgba(255,255,255,0.05) !important; }
html.dark .bg-\[\#FFFFFF1A\] { background-color: rgba(255,255,255,0.1) !important; }

/* --- Text colors: dark → light --- */
/* Dark text → light text */
html.dark .text-\[\#1E1B16\] { color: #e0d8c8 !important; }
html.dark .text-\[\#2D2D3A\] { color: #e0d8c8 !important; }
html.dark .text-\[\#5C5347\] { color: #C8B89A !important; }
html.dark .text-\[\#8B7E6A\] { color: #A89B85 !important; }
html.dark .text-\[\#A89B85\] { color: #C8BBA5 !important; }

/* Dark text with opacity → light text */
html.dark .text-\[\#1E1B16B2\] { color: #e0d8c8 !important; }
html.dark .text-\[\#1E1B1699\] { color: rgba(224,216,200,0.6) !important; }
html.dark .text-\[\#1E1B1680\] { color: rgba(224,216,200,0.5) !important; }
html.dark .text-\[\#1E1B1666\] { color: rgba(224,216,200,0.4) !important; }
html.dark .text-\[\#1E1B164C\] { color: rgba(224,216,200,0.3) !important; }

/* Muted text with opacity */
html.dark .text-\[\#8B7E6A99\] { color: rgba(168,155,133,0.6) !important; }
html.dark .text-\[\#8B7E6A80\] { color: rgba(168,155,133,0.5) !important; }

/* Dark text with CC opacity */
html.dark .text-\[\#2D2D3ACC\] { color: rgba(224,216,200,0.8) !important; }

/* Gold text - keep or brighten slightly */
html.dark .text-\[\#C8A45C\] { color: #D4B06A !important; }
html.dark .text-\[\#C8A45C4C\] { color: rgba(212,176,106,0.3) !important; }
html.dark .text-\[\#b8943f\] { color: #D4B06A !important; }

/* Light champagne text → brighter */
html.dark .text-\[\#E8DCC6\] { color: #F0E8D6 !important; }

/* White text with opacity - keep as-is */
/* text-white, text-white/50, text-white/80 remain unchanged */
/* text-[#FFFFFF80], text-[#FFFFFF99], text-[#FFFFFFB2], text-[#FFFFFFCC], text-[#FFFFFFE6] remain */

/* text-[#5C5347]/70 with opacity modifier */
html.dark .text-\[\#5C5347\]\/70 { color: rgba(200,184,154,0.7) !important; }

/* --- Border colors --- */
/* Light borders → dark borders */
html.dark .border-\[\#E8DCC6\] { border-color: #3A3428 !important; }
html.dark .border-\[\#E8DCC699\] { border-color: rgba(58,52,40,0.6) !important; }
html.dark .border-\[\#E8DCC680\] { border-color: rgba(58,52,40,0.5) !important; }

/* Dark borders → lighter for visibility */
html.dark .border-\[\#1E1B16\] { border-color: #4A4438 !important; }
html.dark .border-\[\#1E1B16\]\/\[0\.08\] { border-color: rgba(200,164,92,0.1) !important; }

/* Gold borders - keep */
/* border-[#C8A45C], border-[#C8A45C1A], border-[#C8A45C33], border-[#C8A45C4C],
   border-[#C8A45C66], border-[#C8A45C80], border-[#C8A45C99] - unchanged */

/* White borders with alpha */
html.dark .border-\[\#FFFFFF33\] { border-color: rgba(200,164,92,0.15) !important; }

/* Dark mode - form inputs */
html.dark input,
html.dark textarea,
html.dark select {
  background-color: #2A2520 !important;
  color: #e0d8c8 !important;
  border-color: #3A3428 !important;
}

/* Dark mode - cards and sections with light backgrounds */
html.dark .rounded-xl[class*="border"] { border-color: #3A3428 !important; }
html.dark section:not([style*="background-color:#1E1B16"]):not([style*="background-color: #1E1B16"]) {
  background-color: inherit;
}

/* Dark mode - specific sub-page overrides */
html.dark [style*="background:rgba(200,164,92"] { opacity: 0.8; }
html.dark .shadow-xl { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4) !important; }

/* Dark mode - service card tag/badge pills: ensure readable contrast */
html.dark .service-card span.rounded-full {
  background-color: #3A3428 !important;
  color: #e0d8c8 !important;
}
/* Dark mode - any rounded-full badge with cream background */
html.dark span.rounded-full.bg-\[\#FAF7F0\] {
  background-color: #3A3428 !important;
  color: #e0d8c8 !important;
}

/* Dark mode - service card headings */
html.dark .service-card h3 a {
  color: #e0d8c8 !important;
}
html.dark .service-card h3 a:hover {
  color: #C8A45C !important;
}

/* Dark mode - service card icon containers */
html.dark .service-card .bg-\[\#1E1B16\] {
  background-color: #3A3428 !important;
}
html.dark .service-card .bg-\[\#1E1B16\] svg {
  color: #C8A45C !important;
}

/* Dark mode - advantage section icon containers */
html.dark #advantages .bg-\[\#1E1B16\] {
  background-color: #3A3428 !important;
}
html.dark #advantages .bg-\[\#1E1B16\] svg {
  color: #C8A45C !important;
}

/* Dark mode - advantage section cards (white bg on cream section) */
html.dark #advantages .bg-white {
  background-color: #2A2520 !important;
}
html.dark #advantages .ring-\[\#E8DCC680\] {
  --tw-ring-color: rgba(200,164,92,0.2) !important;
}

/* Dark mode - section tag on light sections */
html.dark section:not(.bg-\[\#1E1B16\]):not(.bg-\[\#3A3428\]) .section-tag {
  color: #C8A45C !important;
}
html.dark section:not(.bg-\[\#1E1B16\]):not(.bg-\[\#3A3428\]) .section-title {
  color: #e0d8c8 !important;
}

/* Dark mode - customer review cards with cream bg */
html.dark .rounded-lg.bg-\[\#FAF7F0\] {
  background-color: #2A2520 !important;
  --tw-ring-color: rgba(200,164,92,0.2) !important;
}

/* Dark mode - news section cards */
html.dark #news .bg-white {
  background-color: #2A2520 !important;
}

/* Dark mode - cream background sections */
html.dark section.bg-\[\#FAF7F0\] {
  background-color: #1A1714 !important;
}

/* Dark mode - about section cream bg */
html.dark #about {
  background-color: #1A1714 !important;
}

/* Dark mode - about section competitive advantage cards */
html.dark #about .rounded-xl.bg-white {
  background-color: #2A2520 !important;
}
html.dark #about h3 {
  color: #e0d8c8 !important;
}
html.dark #about .bg-\[\#1E1B16\] {
  background-color: #3A3428 !important;
}
html.dark #about .bg-\[\#1E1B16\] svg {
  color: #C8A45C !important;
}

/* Dark mode - news article sidebar */
html.dark #page-sub aside {
  background-color: transparent !important;
}
html.dark #page-sub aside .bg-\[\#FAF7F0\] {
  background-color: #2A2520 !important;
  border-color: rgba(200,164,92,0.15) !important;
}
html.dark #page-sub aside h4 {
  color: #e0d8c8 !important;
}
html.dark #page-sub aside p {
  color: #e0d8c8 !important;
}
html.dark #page-sub aside a:hover p {
  color: #C8A45C !important;
}
html.dark #page-sub aside span[style*="color:#8B7E6A"],
html.dark #page-sub aside span[style*="color: #8B7E6A"] {
  color: #A89B85 !important;
}
html.dark #page-sub aside a:hover {
  background-color: rgba(200,164,92,0.08) !important;
}
html.dark #page-sub aside a.rounded-lg:hover {
  background-color: rgba(200,164,92,0.08) !important;
}
/* Article header dark mode */
html.dark #page-sub .article-header-card {
  background-color: #2A2520 !important;
}
html.dark #page-sub .article-header-title {
  color: #e0d8c8 !important;
}
html.dark #page-sub .article-header-date {
  color: #A89B85 !important;
}
html.dark #page-sub .article-header-date svg {
  color: #A89B85 !important;
}

/* ============================================
   Mobile Layout Optimization
   ============================================ */

@media (max-width: 1023px) {
  /* Services: show golden side bar + index number on tablet/mobile (since no hover) */
  .service-card::before { width: 3px; }
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
  .service-card .service-num { display: inline-flex; }
}
@media (min-width: 1024px) {
  .service-card .service-num { display: none; }
}

@media (max-width: 639px) {
  /* Compact card padding */
  .service-card { padding: 0.875rem; }
  .service-card p.mb-5 { display: none; }
  .service-card .flex.flex-wrap.gap-2 { display: none; }
  .service-card h3 { font-size: 0.875rem; margin-bottom: 0.375rem; }
  .service-card .mb-5 { margin-bottom: 0.625rem; }
  .service-card .mb-5 .h-12 { height: 2.5rem; width: 2.5rem; }

  /* Advantage/竞争优势 cards */
  #about .grid .rounded-xl.bg-white { padding: 0.75rem; }
  #about .grid .rounded-xl.bg-white p.text-sm.leading-relaxed { display: none; }
  #about .grid .rounded-xl.bg-white .mb-3,
  #about .grid .rounded-xl.bg-white .mb-4 { margin-bottom: 0.5rem; }
  #about .grid .rounded-xl.bg-white .h-11,
  #about .grid .rounded-xl.bg-white .h-10 { height: 2.25rem; width: 2.25rem; }
  #about .grid .rounded-xl.bg-white h4 { font-size: 0.8125rem; margin-bottom: 0; }

  /* Team cards - compact on mobile */
  .rounded-xl.bg-\[\#3A342899\] { padding: 0.875rem; }
  .rounded-xl.bg-\[\#3A342899\] p.mt-4 { display: none; }
  .rounded-xl.bg-\[\#3A342899\] .mb-5 { margin-bottom: 0.625rem; }
  .rounded-xl.bg-\[\#3A342899\] .mb-5 .h-14 { height: 2.5rem; width: 2.5rem; }
  .rounded-xl.bg-\[\#3A342899\] h3 { font-size: 0.875rem; }
  .rounded-xl.bg-\[\#3A342899\] p.mt-1 { font-size: 0.75rem; }

  /* Case/标杆 cards - compact on mobile */
  .rounded-xl.bg-white\/\[0\.04\] { padding: 0.75rem; }
  .rounded-xl.bg-white\/\[0\.04\] p.mb-4 { display: none; }
  .rounded-xl.bg-white\/\[0\.04\] .mb-3.inline-flex { display: none; }
  .rounded-xl.bg-white\/\[0\.04\] .mb-4 .h-10 { height: 2rem; width: 2rem; }
  .rounded-xl.bg-white\/\[0\.04\] .text-sm.font-semibold { font-size: 0.8125rem; }
  .rounded-xl.bg-white\/\[0\.04\] .text-xs.text-\[\#C8A45C\] { font-size: 0.6875rem; }

  /* Review/好评 cards - compact on mobile */
  .rounded-lg.bg-\[\#FAF7F0\] { padding: 0.625rem; }
  .rounded-lg.bg-\[\#FAF7F0\] .mb-3.flex.items-center { margin-bottom: 0.375rem; }
  .rounded-lg.bg-\[\#FAF7F0\] span.text-\[\#C8A45C\] { font-size: 0.625rem; }
  .rounded-lg.bg-\[\#FAF7F0\] p.mb-3 { font-size: 0.75rem; margin-bottom: 0.25rem; }
  .rounded-lg.bg-\[\#FAF7F0\] .flex.items-center.justify-between span.text-xs:last-child { display: none; }
  .rounded-lg.bg-\[\#FAF7F0\] .flex.items-center.justify-between span.text-xs { font-size: 0.6875rem; }

  /* News cards - compact, hide excerpt */
  #news .grid article p.mt-3 { display: none; }
  #news .grid article { padding: 0.75rem; }
  #news .grid article h3 { font-size: 0.875rem; }

  /* Contact section - hide map on mobile */
  #contact .h-48.rounded-xl { display: none; }

  /* Stat cards in about section */
  #about .grid.grid-cols-2 .rounded-xl { padding: 0.625rem; }
  #about .grid.grid-cols-2 .text-3xl { font-size: 1.375rem; }
  #about .grid.grid-cols-2 .mt-2.text-sm { font-size: 0.6875rem; margin-top: 0.125rem; }

  /* Section titles - slightly smaller on mobile */
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.875rem; }

  /* Reduce section padding */
  section.py-20 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* Footer - hide extra contact lines on mobile */
  footer address p:nth-child(n+4) { display: none; }

  /* Sub-page service card grids: compact padding for cards with bg-white/p-6 */
  #page-sub .rounded-xl.bg-white.p-6 { padding: 0.75rem; }
  #page-sub .rounded-xl.bg-white.p-6 p.text-sm.leading-relaxed { display: none; }
  #page-sub .rounded-xl.bg-white.p-6 .text-base { font-size: 0.8125rem; }
  #page-sub .rounded-xl.bg-white.p-6 .mb-4,
  #page-sub .rounded-xl.bg-white.p-6 .mb-5 { margin-bottom: 0.5rem; }

  /* Sub-page: hide description text in card grids */
  #page-sub .grid .rounded-lg.p-6 { padding: 0.75rem; }
  #page-sub .grid .rounded-lg.p-6 p { display: none; }
  #page-sub .grid .rounded-lg.p-6 h4 { font-size: 0.8125rem; margin-bottom: 0; }

  /* Sub-page process steps - compact */
  #page-sub .grid .rounded-xl.border { padding: 0.75rem; }
  #page-sub .grid .rounded-xl.border p.text-sm { display: none; }
}

/* ===== Dark mode - inline style overrides ===== */
/* These use [style*="..."] attribute selectors + !important to override inline styles */
/* Only override mid-tone colors that become invisible on dark backgrounds */
/* Do NOT override extreme values (#FFFFFF, #FAF7F0, #1E1B16, #C8A45C) as they serve different purposes in different contexts */

/* Text colors: dark/mid tones → lighter for dark bg readability */
html.dark [style*="color:#1E1B16"],
html.dark [style*="color: #1E1B16"] { color: #E8E0D0 !important; }

html.dark [style*="color:#3A3428"],
html.dark [style*="color: #3A3428"] { color: #C8BFA8 !important; }

html.dark [style*="color:#8B7E6A"],
html.dark [style*="color: #8B7E6A"] { color: #B8AD98 !important; }

html.dark [style*="color:#E8DCC6"],
html.dark [style*="color: #E8DCC6"] { color: #C8BFA8 !important; }

/* Background colors: light → dark (skip #1E1B16 which is already dark, skip #C8A45C gold buttons) */
html.dark [style*="background-color:#FAF7F0"],
html.dark [style*="background-color: #FAF7F0"] { background-color: #1E1B16 !important; }

html.dark [style*="background-color:#FFFFFF"],
html.dark [style*="background-color: #FFFFFF"] { background-color: #2A2520 !important; }

html.dark [style*="background-color:#fff"],
html.dark [style*="background-color: #fff"] { background-color: #2A2520 !important; }

/* Subtle gold tinted backgrounds → slightly more visible */
html.dark [style*="background-color:rgba(200,164,92,0.06)"],
html.dark [style*="background-color: rgba(200,164,92, 0.06)"],
html.dark [style*="background-color:rgba(200, 164, 92, 0.06)"] { background-color: rgba(200,164,92,0.15) !important; }

html.dark [style*="background-color:rgba(200,164,92,0.08)"],
html.dark [style*="background-color: rgba(200,164,92, 0.08)"],
html.dark [style*="background-color:rgba(200, 164, 92, 0.08)"] { background-color: rgba(200,164,92,0.18) !important; }

html.dark [style*="background-color:rgba(200,164,92,0.1)"],
html.dark [style*="background-color: rgba(200,164,92, 0.1)"],
html.dark [style*="background-color:rgba(200, 164, 92, 0.1)"] { background-color: rgba(200,164,92,0.2) !important; }

html.dark [style*="background-color:rgba(200,164,92,0.12)"],
html.dark [style*="background-color: rgba(200,164,92, 0.12)"],
html.dark [style*="background-color:rgba(200, 164, 92, 0.12)"] { background-color: rgba(200,164,92,0.22) !important; }

html.dark [style*="background-color:rgba(200,164,92,0.15)"],
html.dark [style*="background-color: rgba(200,164,92, 0.15)"],
html.dark [style*="background-color:rgba(200, 164, 92, 0.15)"] { background-color: rgba(200,164,92,0.25) !important; }

/* Border colors */
html.dark [style*="border-color:#E8DCC6"],
html.dark [style*="border-color: #E8DCC6"] { border-color: #3A3428 !important; }

html.dark [style*="border-color:rgba(200,164,92,0.2)"],
html.dark [style*="border-color: rgba(200,164,92, 0.2)"],
html.dark [style*="border-color:rgba(200, 164, 92, 0.2)"] { border-color: rgba(200,164,92,0.4) !important; }

html.dark [style*="border-color:rgba(200,164,92,0.3)"],
html.dark [style*="border-color: rgba(200,164,92, 0.3)"],
html.dark [style*="border-color:rgba(200, 164, 92, 0.3)"] { border-color: rgba(200,164,92,0.5) !important; }

/* Subtle rgba text colors → more visible */
html.dark [style*="color:rgba(200,164,92,0.06)"],
html.dark [style*="color:rgba(200, 164, 92, 0.06)"] { color: rgba(200,164,92,0.15) !important; }

html.dark [style*="color:rgba(200,164,92,0.08)"],
html.dark [style*="color:rgba(200, 164, 92, 0.08)"] { color: rgba(200,164,92,0.18) !important; }

html.dark [style*="color:rgba(200,164,92,0.1)"],
html.dark [style*="color:rgba(200, 164, 92, 0.1)"] { color: rgba(200,164,92,0.2) !important; }

html.dark [style*="color:rgba(200,164,92,0.12)"],
html.dark [style*="color:rgba(200, 164, 92, 0.12)"] { color: rgba(200,164,92,0.22) !important; }

html.dark [style*="color:rgba(200,164,92,0.15)"],
html.dark [style*="color:rgba(200, 164, 92, 0.15)"] { color: rgba(200,164,92,0.25) !important; }

html.dark [style*="color:rgba(200,164,92,0.3)"],
html.dark [style*="color:rgba(200, 164, 92, 0.3)"] { color: rgba(200,164,92,0.5) !important; }

/* ============================================================
   Mobile nav fix - shrink logo & phone on small screens
   ============================================================ */
#main-nav a[href^="tel:"] { white-space: nowrap !important; }

@media (max-width: 440px) {
  .nav-logo { height: 1.5rem !important; }
  #main-nav a[href^="tel:"] span { font-size: 0.8rem !important; }
  #main-nav a[href^="tel:"] svg { width: 0.85rem !important; height: 0.85rem !important; }
}

@media (max-width: 374px) {
  .nav-logo { height: 1.25rem !important; }
  #main-nav a[href^="tel:"] span { font-size: 0.7rem !important; }
  #main-nav a[href^="tel:"] svg { width: 0.75rem !important; height: 0.75rem !important; }
}

/* ============================================================
   Image Carousel
   ============================================================ */
.img-carousel {
  position: relative;
  overflow: hidden;
}
.img-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.img-carousel-track.dragging {
  transition: none;
}
.img-carousel-slide {
  flex-shrink: 0;
  padding: 0 6px;
}
.img-carousel-slide:first-child { padding-left: 0; }
.img-carousel-slide:last-child { padding-right: 0; }

/* Carousel arrows */
.img-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  color: #1E1B16;
}
.img-carousel-btn:hover { background: #fff; }
.img-carousel-btn:disabled { opacity: 0.3; cursor: default; }
.img-carousel-btn-prev { left: 8px; }
.img-carousel-btn-next { right: 8px; }

/* Dark carousel arrows */
.img-carousel--dark .img-carousel-btn {
  background: rgba(58,52,40,0.9);
  color: #C8A45C;
}
.img-carousel--dark .img-carousel-btn:hover { background: #3A3428; }

/* Carousel dots */
.img-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.img-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8A45C40;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.img-carousel-dot.active {
  background: #C8A45C;
  transform: scale(1.2);
}
.img-carousel--dark .img-carousel-dot {
  background: rgba(200,164,92,0.25);
}
.img-carousel--dark .img-carousel-dot.active {
  background: #C8A45C;
}

/* Hide carousel controls on large screens when grid is used */
@media (min-width: 640px) {
  .sm\:carousel-hidden .img-carousel-btn,
  .sm\:carousel-hidden .img-carousel-dots { display: none; }
  .sm\:carousel-hidden .img-carousel-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    transform: none !important;
    gap: 16px;
  }
  .sm\:carousel-hidden .img-carousel-slide {
    width: 100% !important;
    padding: 0 !important;
    flex: none;
  }
}
@media (min-width: 1024px) {
  .lg\:carousel-hidden .img-carousel-btn,
  .lg\:carousel-hidden .img-carousel-dots { display: none; }
  .lg\:carousel-hidden .img-carousel-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    transform: none !important;
    gap: 16px;
  }
  .lg\:carousel-hidden .img-carousel-slide {
    width: 100% !important;
    padding: 0 !important;
    flex: none;
  }
}
