/* ============================================================
   HAO ROOFING - Production CSS Stylesheet
   A roofing/construction company: strong, reliable, industrial
   ============================================================ */

/* ============================================================
   0. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Colors */
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2640;
  --color-primary-light: #2a5a8c;
  --color-secondary: #e8741e;
  --color-secondary-dark: #c75f12;
  --color-secondary-light: #f09040;
  --color-dark: #1a1a2e;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #6c757d;
  --color-accent: #ffc107;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-border: #dee2e6;
  --color-border-light: #e9ecef;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.15);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-header-scrolled: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;
  --sidebar-width: 300px;
}

/* ============================================================
   2. RESET / NORMALIZE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-secondary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.35rem;
  font-weight: 500;
}

h5 {
  font-size: 1.15rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  background: var(--color-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-xl) 0;
}

/* ============================================================
   4. CONTAINER / LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
  width: 100%;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
  width: 100%;
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-sm {
  padding: var(--spacing-2xl) 0;
}

.section-lg {
  padding: var(--spacing-4xl) 0;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-header);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

/* ALWAYS white bg - never transparent */
.site-header,
.site-header.scrolled {
  background-color: var(--color-white) !important;
}

.site-header.scrolled {
  box-shadow: var(--shadow-header-scrolled);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: var(--spacing-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-cta {
  display: none;
}

/* ============================================================
   6. NAVIGATION - DESKTOP
   ============================================================ */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--spacing-md);
  right: var(--spacing-md);
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Dropdown parent arrow */
.has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform var(--transition-fast);
}

/* Dropdown menu - IMPORTANT: force display none to prevent flex inheritance */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--color-secondary);
  z-index: 100;
  padding: var(--spacing-sm) 0;
  flex-direction: column;
}

.has-dropdown:hover > .dropdown-menu {
  display: block !important;
}

.dropdown-menu .dropdown-item {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--color-light);
  color: var(--color-secondary);
  padding-left: calc(var(--spacing-lg) + 4px);
}

/* ============================================================
   7. MOBILE MENU
   ============================================================ */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
  margin: 3px 0;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  transition: right var(--transition-base);
  padding-top: var(--header-height);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

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

.mobile-nav-list {
  padding: var(--spacing-md);
}

.mobile-nav-list .nav-item {
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-list .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-md);
  font-size: 1rem;
  color: var(--color-text);
}

.mobile-nav-list .nav-link:hover {
  color: var(--color-secondary);
  background-color: var(--color-light);
}

.mobile-nav-list .dropdown-menu {
  display: none !important;
  position: static;
  box-shadow: none;
  border: none;
  border-top: none;
  border-radius: 0;
  padding: 0;
  min-width: auto;
  background-color: var(--color-light);
}

.mobile-nav-list .dropdown-menu.open {
  display: block !important;
}

.mobile-nav-list .dropdown-menu .dropdown-item {
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-list .dropdown-menu .dropdown-item:last-child {
  border-bottom: none;
}

.mobile-nav-cta {
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.mobile-nav-cta .btn {
  width: 100%;
  text-align: center;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 58, 92, 0.75) 50%,
    rgba(26, 58, 92, 0.65) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: var(--spacing-3xl) 0;
  color: var(--color-white);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.6;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  opacity: 0.85;
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

/* Hero variants */
.hero-sm {
  min-height: 300px;
}

.hero-lg {
  min-height: 600px;
}

.hero-centered .hero-inner {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-centered .hero-actions {
  justify-content: center;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Primary - construction orange */
.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-white);
}

/* Secondary - outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* White - for dark backgrounds */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Outline white */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* Dark */
.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

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

/* Sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Button with icon */
.btn .btn-icon {
  font-size: 1.1em;
}

/* ============================================================
   10. CARDS - SERVICE CARDS
   ============================================================ */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.service-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: rgba(232, 116, 30, 0.1);
  color: var(--color-secondary);
  font-size: 1.75rem;
  margin: 0 auto var(--spacing-lg);
  transition: all var(--transition-base);
}

.service-card:hover .icon {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: scale(1.1);
}

.service-card .icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--color-secondary);
}

.service-card .card-link:hover {
  color: var(--color-secondary-dark);
}

/* Generic card */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

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

/* ============================================================
   11. GRIDS
   ============================================================ */
.services-grid,
.card-grid,
.featured-grid,
.link-grid,
.aggregation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* ============================================================
   12. SECTION HEADING
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

.section-heading p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: var(--spacing-sm) auto 0;
}

/* Left-aligned section heading variant */
.section-heading-left {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

.section-heading-left h2::after {
  margin-left: 0;
}

/* ============================================================
   13. BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--spacing-md) 0;
  margin-top: var(--header-height);
  background-color: var(--color-light);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  list-style: none;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--spacing-xs);
  color: var(--color-text-light);
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   14. TRUST BADGES
   ============================================================ */
.trust-badges {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xl);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 180px;
}

.badge-item .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border-light);
}

.badge-item .badge-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.badge-item .badge-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.badge-item .badge-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

/* ============================================================
   15. PAGE CONTENT (WordPress extracted content)
   ============================================================ */
.page-content {
  padding: var(--spacing-2xl) 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.page-content a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--color-secondary-dark);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.page-content img {
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-sm);
}

.page-content table {
  margin: var(--spacing-lg) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-content table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-size: 0.9rem;
}

.page-content table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.95rem;
}

.page-content table tr:nth-child(even) td {
  background-color: var(--color-light);
}

.page-content table tr:last-child td {
  border-bottom: none;
}

.page-content table tr:hover td {
  background-color: rgba(232, 116, 30, 0.05);
}

.page-content .wp-block-image,
.page-content .wp-block-gallery {
  margin: var(--spacing-xl) 0;
}

.page-content .wp-block-image img {
  border-radius: var(--radius-lg);
}

/* ============================================================
   16. CONTENT WITH SIDEBAR
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.sidebar {
  order: -1;
}

.sidebar-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-secondary);
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card ul li {
  margin-bottom: var(--spacing-xs);
}

.sidebar-card ul li a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.sidebar-card ul li a:hover,
.sidebar-card ul li a.active {
  background-color: var(--color-white);
  color: var(--color-secondary);
  padding-left: calc(var(--spacing-md) + 4px);
}

.sidebar-card .contact-info {
  font-size: 0.95rem;
}

.sidebar-card .contact-info p {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.sidebar-card .contact-info a {
  color: var(--color-secondary);
}

/* ============================================================
   17. CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: rgba(232, 116, 30, 0.1);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.cta-section .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.cta-section .cta-phone {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  display: block;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--spacing-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  transform: translateX(3px);
}

.footer-col .contact-info {
  font-size: 0.9rem;
}

.footer-col .contact-info p {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-col .contact-info a {
  color: var(--color-secondary);
}

.footer-col .contact-info a:hover {
  color: var(--color-secondary-light);
}

.footer-col .footer-logo {
  max-width: 180px;
  margin-bottom: var(--spacing-md);
}

.footer-col .footer-logo img {
  width: 100%;
  height: auto;
}

.footer-col .social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-col .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-col .social-links a:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

/* ============================================================
   19. FLOATING ACTION BUTTON (FAB)
   ============================================================ */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--spacing-sm);
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  z-index: 2;
}

.fab-btn:hover {
  background-color: var(--color-secondary-dark);
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.fab-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.fab-menu-item:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.fab-menu-item .fab-label {
  position: absolute;
  right: 56px;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.fab-menu-item:hover .fab-label {
  opacity: 1;
}

/* ============================================================
   20. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 899;
}

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

.back-to-top:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* ============================================================
   21. LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: var(--color-light);
  border-radius: var(--radius-md);
  padding: 2px;
  border: 1px solid var(--color-border);
}

.lang-btn {
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Language display control */
.lang-zh {
  display: none;
}

.lang-en {
  display: none;
}

body.show-zh .lang-zh {
  display: block;
}

body.show-zh .lang-en {
  display: none;
}

body:not(.show-zh) .lang-en {
  display: block;
}

body:not(.show-zh) .lang-zh {
  display: none;
}

/* Inline language elements */
body.show-zh span.lang-zh {
  display: inline;
}

body.show-zh span.lang-en {
  display: none;
}

body:not(.show-zh) span.lang-en {
  display: inline;
}

body:not(.show-zh) span.lang-zh {
  display: none;
}

/* ============================================================
   22. RELATED SERVICES
   ============================================================ */
.related-services {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-border-light);
}

.related-services h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.related-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.related-service-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--color-text);
}

.related-service-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transform: translateX(4px);
}

.related-service-item .related-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(232, 116, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.related-service-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.related-service-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================================
   23. FEATURED SECTION / CATEGORY ITEMS
   ============================================================ */
.category-item {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.category-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  color: var(--color-text);
}

.category-item .category-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.category-item .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-item:hover .category-image img {
  transform: scale(1.05);
}

.category-item .category-body {
  padding: var(--spacing-lg);
}

.category-item .category-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.category-item .category-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Featured items */
.featured-item {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.featured-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--color-text);
}

.featured-item .featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.featured-item .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-item:hover .featured-image img {
  transform: scale(1.05);
}

.featured-item .featured-body {
  padding: var(--spacing-lg);
}

.featured-item .featured-body h3 {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-xs);
}

.featured-item .featured-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Link items for aggregation pages */
.link-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-base);
}

.link-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: var(--color-text);
}

.link-item .link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(232, 116, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.link-item h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.link-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================================
   24. FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--color-text-light);
  opacity: 0.7;
}

/* ============================================================
   25. ALERTS / NOTICES
   ============================================================ */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-info {
  background-color: rgba(26, 58, 92, 0.08);
  border-color: rgba(26, 58, 92, 0.2);
  color: var(--color-primary);
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.2);
  color: var(--color-success);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #856404;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.2);
  color: var(--color-danger);
}

/* ============================================================
   26. UTILITY CLASSES
   ============================================================ */

/* Text alignment */
.text-center {
  text-align: center;
}

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

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

/* Text colors */
.text-muted {
  color: var(--color-text-light);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-white {
  color: var(--color-white);
}

.text-dark {
  color: var(--color-dark);
}

.text-success {
  color: var(--color-success);
}

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

/* Font weights */
.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

/* Font families */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* Spacing - Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-sm); }
.ml-2 { margin-left: var(--spacing-md); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-sm); }
.mr-2 { margin-right: var(--spacing-md); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing - Padding */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }
.p-5 { padding: var(--spacing-2xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }
.gap-4 { gap: var(--spacing-xl); }

/* Width */
.w-100 { width: 100%; }

/* Borders */
.border { border: 1px solid var(--color-border); }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.border-radius { border-radius: var(--radius-md); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Backgrounds */
.bg-light { background-color: var(--color-light); }
.bg-white { background-color: var(--color-white); }
.bg-dark { background-color: var(--color-dark); }
.bg-primary { background-color: var(--color-primary); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden but focusable */
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============================================================
   27. LOADING / SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-light) 25%, #e8e8e8 50%, var(--color-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   28. RESPONSIVE - TABLET (768px)
   ============================================================ */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  /* Grid - 2 columns */
  .services-grid,
  .card-grid,
  .featured-grid,
  .link-grid,
  .aggregation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  /* Content with sidebar */
  .content-with-sidebar {
    grid-template-columns: 1fr var(--sidebar-width);
  }

  .sidebar {
    order: 0;
  }

  /* Footer - 2 cols */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Header CTA visible */
  .header-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
  }
}

/* ============================================================
   29. RESPONSIVE - DESKTOP (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: 3.25rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  /* Show desktop nav, hide mobile toggle */
  .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  /* Grid - 3 columns */
  .services-grid,
  .card-grid,
  .featured-grid,
  .link-grid,
  .aggregation-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Categories - 4 columns */
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Footer - 4 cols */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   30. RESPONSIVE - LARGE DESKTOP (1200px+)
   ============================================================ */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }

  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* ============================================================
   31. RESPONSIVE - SMALL MOBILE (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .site-logo .logo-text {
    font-size: 1.2rem;
  }

  .fab-container {
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
  }

  .badges-grid {
    gap: var(--spacing-md);
  }

  .badge-item {
    min-width: 100px;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section .cta-phone {
    font-size: 1.35rem;
  }
}

/* ============================================================
   HOMEPAGE ENHANCEMENTS
   ============================================================ */

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232, 116, 30, 0.9);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-home .hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-home .hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 2px;
  opacity: 0.95;
}

.hero-phone-mobile {
  display: none;
}

/* Category cards */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--color-secondary);
  color: inherit;
}

.category-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232,116,30,0.1) 0%, rgba(232,116,30,0.05) 100%);
  border-radius: 50%;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.1);
}

.category-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.category-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust badges enhanced */
.trust-badges {
  background: var(--color-white);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}

.badge-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.badge-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,116,30,0.1);
  border-radius: 50%;
  color: var(--color-secondary);
}

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

.badge-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-item {
  padding: 1.5rem;
  border-left: 4px solid var(--color-secondary);
  background: var(--color-light, #f5f5f5);
  border-radius: 0 8px 8px 0;
}

.why-number {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.why-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA section */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
  font-weight: 700;
}

.btn-light:hover {
  background: transparent;
  color: var(--color-white);
}

/* Section alt bg */
.section-alt {
  background: var(--color-light, #f5f5f5);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Service card link */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: auto;
  padding-top: 0.75rem;
}

.service-card-link:hover {
  color: var(--color-primary);
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
}

.service-card-title a:hover {
  color: var(--color-secondary);
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* btn-outline-light */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ============================================================
   MOBILE ENHANCEMENTS (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hero mobile */
  .hero-home {
    min-height: auto;
    padding: calc(var(--header-height, 70px) + 2rem) 0 2.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-home .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-home .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-phone-mobile {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
  }

  .hero-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
  }

  /* Trust badges mobile - 2x2 grid */
  .badges-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .badge-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--color-light, #f5f5f5);
    border-radius: 8px;
  }

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

  .badge-desc {
    display: none;
  }

  /* Categories mobile - 2x2 grid */
  .categories-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
  }

  .category-card {
    padding: 1.25rem 1rem;
  }

  .category-icon {
    width: 56px;
    height: 56px;
  }

  .category-title {
    font-size: 1rem;
  }

  .category-desc {
    display: none;
  }

  /* Featured services mobile - 2 columns */
  .featured-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
  }

  .service-card {
    padding: 1rem !important;
  }

  .service-card .icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0.5rem !important;
  }

  .service-card-title {
    font-size: 0.9rem !important;
  }

  .service-card-desc {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Why choose us mobile */
  .why-grid {
    gap: 1rem;
  }

  .why-item {
    padding: 1rem;
  }

  .why-number {
    font-size: 1.5rem;
  }

  /* CTA mobile */
  .cta-section {
    padding: 2.5rem 0;
  }

  .cta-title {
    font-size: 1.5rem !important;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer mobile improvements */
  .footer-grid {
    gap: 1.5rem;
  }

  /* General mobile spacing */
  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .menu-toggle,
  .mobile-nav,
  .mobile-overlay,
  .fab-container,
  .back-to-top,
  .lang-toggle,
  .hero-actions,
  .cta-section,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
    padding: 20pt 0;
  }

  .hero-overlay {
    display: none;
  }

  .hero-title,
  .hero-subtitle {
    color: #000 !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .page-content {
    padding: 0;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img {
    page-break-inside: avoid;
    max-width: 100% !important;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  table {
    border-collapse: collapse;
  }

  table th,
  table td {
    border: 1px solid #ccc;
    padding: 8pt;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* ============================================================
   33. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .service-card:hover,
  .card:hover,
  .category-item:hover,
  .featured-item:hover {
    transform: none;
  }
}

/* ============================================================
   34. MISC / COMPONENT EXTRAS
   ============================================================ */

/* Tag / Badge inline */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent);
  color: var(--color-dark);
}

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

.tag-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  margin: var(--spacing-lg) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* Image with overlay text */
.image-overlay-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-overlay-wrapper .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-white);
}

/* Stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-2xl);
  padding: var(--spacing-xl) 0;
}

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

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonial */
.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--color-secondary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card .testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.testimonial-card .testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.testimonial-card .testimonial-role {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Service area listing */
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.service-area-list .area-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  background-color: var(--color-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.service-area-list .area-tag:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background-color: rgba(232, 116, 30, 0.05);
}

/* Page header (non-hero) */
.page-header {
  padding: var(--spacing-2xl) 0;
  margin-top: var(--header-height);
  background-color: var(--color-light);
  border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
  margin-bottom: var(--spacing-sm);
}

.page-header .page-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
}

/* Notification badge */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-danger);
  border-radius: 10px;
}

/* Scroll indicator on hero */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.scroll-indicator svg,
.scroll-indicator img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}
