:root {
  --brand-primary: #205b4f;
  --brand-accent: #d9e8e5;
  --brand-dark: #1a1a1a;
  --brand-light: #f8f9fa;
  --brand-white: #ffffff;
  --brand-muted: #6c757d;
  --brand-gold: #D4AF37;
}

body {
  color: var(--brand-dark);
  background: var(--brand-white);
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: #164039;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--brand-primary), #164039);
}

.site-header .navbar-brand {
  color: var(--brand-white);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

@media (max-width: 991.98px) {
  .brand-text {
    font-size: 1rem;
  }
}

/* Navigation */
.site-header .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--brand-white);
}

.site-header .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.site-header .dropdown-item {
  padding: 0.625rem 1.25rem;
  transition: background 0.2s;
}

.site-header .dropdown-item:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: var(--brand-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brand-white);
}

.site-footer address {
  font-style: normal;
}

/* Buttons */
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #164039;
  border-color: #164039;
  color: var(--brand-white);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

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

.btn-accent {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-white) !important;
}

.btn-accent:hover {
  background: #164039;
  border-color: #164039;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(32, 91, 79, 0.95), rgba(22, 64, 57, 0.9));
  color: var(--brand-white);
}

/* Section Titles */
.section-title {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 99px;
  background: var(--brand-primary);
  margin-top: 0.75rem;
}

.section-title-light::after {
  background: var(--brand-white);
}

/* Cards */
.card-accent {
  border-top: 4px solid var(--brand-primary) !important;
}

.service-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Badges */
.badge-accent {
  background: var(--brand-primary);
  color: var(--brand-white);
}

/* Background colors */
.bg-primary {
  background: var(--brand-primary) !important;
}

.bg-accent {
  background: var(--brand-accent) !important;
}

/* Text colors */
.text-primary {
  color: var(--brand-primary) !important;
}

/* Review Stars */
.review-stars {
  color: var(--brand-gold);
  font-size: 0.875rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--brand-white);
  color: var(--brand-dark);
  z-index: 10000;
  border-radius: 0.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(32, 91, 79, 0.4);
  outline-offset: 2px;
}

/* Mobile CTA Bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--brand-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  padding: 0.5rem;
  gap: 0.5rem;
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.5rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-cta-btn i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.mobile-cta-btn:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

.mobile-cta-primary {
  background: var(--brand-primary);
  color: var(--brand-white) !important;
}

.mobile-cta-primary:hover {
  background: #164039;
  color: var(--brand-white) !important;
}

/* Add bottom padding to main content on mobile to account for CTA bar */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 70px;
  }
}

/* Service Icons */
.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  border-radius: 12px;
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(32, 91, 79, 0.25);
  border-color: var(--brand-primary);
}

/* Tables */
.table th {
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-weight: 600;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(32, 91, 79, 0.15);
}

/* Breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Alert Colors */
.alert-success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-info {
  background: var(--brand-accent);
  border-color: #b8d4cf;
  color: var(--brand-primary);
}

/* Phone Links */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Gallery Placeholder */
.gallery-placeholder {
  min-height: 300px;
}

/* Sticky sidebar adjustment */
@media (min-width: 992px) {
  .sticky-lg-top {
    position: sticky;
    top: 20px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-cta-bar,
  .btn {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}
