/* ==========================================================================
   Desert Glass - Visual Theme Stylesheet
   Palette: Sun-bleached Cream, Terracotta, Dusty Orange, Muted Teal, Dark Brown
   Atmosphere: Heat, Solitude, Wind-shaped Frosted Glass, Optical Stillness
   ========================================================================== */

:root {
  --color-bg-light: #faf6f0;
  --color-bg-sand: #f3ece0;
  --color-bg-dune: #e9dfcf;
  
  --color-text-main: #241b16;
  --color-text-muted: #5f4e44;
  --color-text-light: #8e786b;
  
  --color-terracotta: #c45d3e;
  --color-terracotta-hover: #aa4b2f;
  --color-orange: #d97543;
  --color-orange-subtle: #f8ede5;
  
  --color-teal: #3c7777;
  --color-teal-hover: #2d5f5f;
  --color-teal-subtle: #e6f0f0;
  
  --color-brown-dark: #1b130f;
  --color-brown-card: #281d17;
  
  --glass-bg: rgba(250, 246, 240, 0.75);
  --glass-bg-hover: rgba(255, 252, 248, 0.9);
  --glass-border: rgba(196, 93, 62, 0.18);
  --glass-border-teal: rgba(60, 119, 119, 0.2);
  --glass-shadow: 0 16px 36px -12px rgba(40, 29, 23, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  --glass-shadow-hover: 0 24px 44px -12px rgba(196, 93, 62, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  
  --radius-warped-1: 24px 8px 28px 12px;
  --radius-warped-2: 12px 28px 10px 26px;
  --radius-warped-3: 20px 14px 24px 8px;
  --radius-soft: 14px;
  --radius-pill: 9999px;

  --font-sans: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(217, 117, 67, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 60%, rgba(60, 119, 119, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 90%, rgba(196, 93, 62, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-terracotta-hover);
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-spacing-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Glassmorphism Surfaces */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-warped-1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(217, 117, 67, 0.4), transparent);
  pointer-events: none;
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(196, 93, 62, 0.35);
  box-shadow: var(--glass-shadow-hover);
}

.glass-panel-dark {
  background: rgba(30, 22, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f6efe6;
  border: 1px solid rgba(217, 117, 67, 0.3);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-warped-2);
}

.glass-panel-dark .text-muted {
  color: #cbb8ac;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.glass-panel-dark h1,
.glass-panel-dark h2,
.glass-panel-dark h3,
.glass-panel-dark h4 {
  color: #faf5ed;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.35rem;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(196, 93, 62, 0.12);
  color: var(--color-terracotta);
  border: 1px solid rgba(196, 93, 62, 0.25);
}

.badge-tag-teal {
  background: rgba(60, 119, 119, 0.12);
  color: var(--color-teal);
  border-color: rgba(60, 119, 119, 0.25);
}

/* Header & Shared Chrome */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(196, 93, 62, 0.15);
  box-shadow: 0 4px 20px rgba(40, 29, 23, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-brown-dark);
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px 4px 12px 6px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-terracotta) 60%, var(--color-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(196, 93, 62, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.brand-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #faf5ee;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-soft);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-terracotta);
  background: rgba(196, 93, 62, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-terracotta), #af4a2c);
  color: #ffffff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(196, 93, 62, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-brown-dark);
}

/* Heat Distortion Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-warped-3);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Desert Glass Heat Distortion Effect */
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-terracotta) 80%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(196, 93, 62, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(196, 93, 62, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 0 6px rgba(223, 117, 67, 0.35));
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-brown-dark);
  border-color: rgba(196, 93, 62, 0.3);
  box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-teal));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(60, 119, 119, 0.35);
}

.btn-teal:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(60, 119, 119, 0.45);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Hero Section */
.hero-wrapper {
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-image-box {
  position: relative;
}

.hero-image-box img {
  border-radius: var(--radius-warped-1);
  box-shadow: 0 25px 50px -12px rgba(40, 29, 23, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-floating-glass {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  padding: 1.25rem 1.5rem;
  max-width: 280px;
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(196, 93, 62, 0.25);
  border-radius: var(--radius-warped-2);
  box-shadow: 0 15px 30px rgba(40, 29, 23, 0.12);
}

/* Service Card */
.service-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-soft);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.service-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(196, 93, 62, 0.2);
}

.service-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Feature & Process Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
}

.timeline-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-terracotta);
  line-height: 1;
  font-family: monospace;
}

/* Pricing Card */
.pricing-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-terracotta);
  box-shadow: 0 20px 40px -10px rgba(196, 93, 62, 0.2), 0 0 0 2px rgba(196, 93, 62, 0.3);
}

.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-brown-dark);
  margin: 1rem 0 0.25rem 0;
}

.pricing-unit {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.pricing-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pricing-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-checklist svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-teal);
}

/* Testimonial Card */
.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-terracotta);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-main);
  font-style: normal;
  position: relative;
}

/* Blog Post Item */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(196, 93, 62, 0.25);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(196, 93, 62, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error-msg {
  font-size: 0.85rem;
  color: #bd271e;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #bd271e;
  background: #fff8f7;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-feedback {
  padding: 1.25rem;
  border-radius: var(--radius-soft);
  margin-top: 1.25rem;
  display: none;
  font-size: 0.95rem;
}

.form-feedback.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-feedback.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Cookie Banner Island */
.cookie-banner-wrapper {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 540px;
  z-index: 9999;
  padding: 1.5rem 1.75rem;
  background: rgba(36, 27, 22, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f6eee5;
  border: 1px solid rgba(217, 117, 67, 0.4);
  border-radius: var(--radius-warped-1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  display: none;
}

.cookie-banner-wrapper.is-visible {
  display: block;
  animation: slideUpFade 0.4s ease forwards;
}

.cookie-banner-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #dfd2c6;
}

.cookie-banner-text a {
  color: #f0956b;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner-actions .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: var(--color-brown-dark);
  color: #e5d7cb;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: 5rem;
  border-top: 2px solid rgba(217, 117, 67, 0.25);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 117, 67, 0.6), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .brand-logo {
  color: #faf5ed;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #faf5ed;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #baa495;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #f0956b;
  padding-left: 4px;
}

.footer-verbatim-block {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbb8ac;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8e786b;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: #8e786b;
}

.footer-legal-links a:hover {
  color: #dfd2c6;
}

/* Legal Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(196, 93, 62, 0.15);
}

.legal-table th {
  background: rgba(196, 93, 62, 0.08);
  font-weight: 700;
  color: var(--color-brown-dark);
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 4.75rem;
    left: 0;
    right: 0;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-floating-glass {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
}
