/* ==========================================================================
   4 Evergreen Landscaping & Maintenance — Main Stylesheet
   https://winkde.org
   ========================================================================== */

/* --- CSS Variables (Theme) --- */
:root {
  --color-primary: #1b4d3e;
  --color-primary-dark: #0f3328;
  --color-primary-light: #2d6b56;
  --color-accent: #7cb342;
  --color-accent-soft: #a8d08d;
  --color-earth: #6d4c3d;
  --color-earth-light: #8b6f5c;
  --color-charcoal: #2c2c2c;
  --color-charcoal-soft: #4a4a4a;
  --color-white: #ffffff;
  --color-off-white: #f8f9f6;
  --color-cream: #f0ede6;
  --color-sand: #e8e4dc;
  --color-text: #333333;
  --color-text-muted: #5c5c5c;
  --color-border: rgba(27, 77, 62, 0.12);
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(27, 77, 62, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 77, 62, 0.12);
  --shadow-lg: 0 16px 48px rgba(27, 77, 62, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
  --container-max: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
}

/* --- Loading Screen --- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
}

.loader-logo span {
  color: var(--color-accent-soft);
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-header .nav-link {
  color: var(--color-white);
}

.site-header.scrolled .nav-link {
  color: var(--color-charcoal);
}

.site-header.scrolled .logo-text {
  color: var(--color-primary);
}

.site-header.scrolled .nav-toggle span {
  background: var(--color-charcoal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
}

.logo-text {
  color: var(--color-white);
  transition: color var(--transition);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent) !important;
}

.site-header.scrolled .nav-link.active {
  background: rgba(27, 77, 62, 0.08);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-charcoal);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: #689f38;
  border-color: #689f38;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-hero-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-hero-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 51, 40, 0.92) 0%, rgba(27, 77, 62, 0.85) 50%, rgba(45, 107, 86, 0.8) 100%),
    url("https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=1920&q=80") center/cover no-repeat;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--color-white);
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--color-accent-soft);
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-accent-soft);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* --- Page Hero (Internal) --- */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-earth-light);
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-charcoal);
  font-weight: 500;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* --- About Preview / Split --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.split-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  transform: translate(12px, 12px);
  z-index: -1;
}

.feature-list {
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.feature-list i {
  color: var(--color-accent);
  margin-top: 0.2rem;
}

/* --- Why Choose Us --- */
.why-section {
  background: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  transition: var(--transition);
}

.why-item:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-4px);
}

.why-item:hover h3,
.why-item:hover p,
.why-item:hover .why-icon {
  color: var(--color-white);
}

.why-icon {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.why-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.why-item p {
  font-size: 0.9rem;
  margin: 0;
}

.why-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(27, 77, 62, 0.12);
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* --- Stats Counter --- */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-accent-soft);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.testimonial-stars {
  color: #f9a825;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--color-charcoal);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(15, 51, 40, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--color-white);
  font-weight: 600;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
}

.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-features {
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-features i {
  color: var(--color-accent);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-off-white);
}

.faq-question i {
  transition: transform var(--transition);
  color: var(--color-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--color-accent-soft);
  width: 24px;
}

.contact-info-item a {
  color: var(--color-white);
}

.contact-info-item a:hover {
  color: var(--color-accent-soft);
}

.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(124, 179, 66, 0.15);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-accent);
}

/* --- Map --- */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* --- Service Areas --- */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.area-tag {
  background: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.area-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-earth), var(--color-primary-dark));
  padding: 4rem 0;
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--color-primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
  color: var(--color-text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* --- Careers --- */
.job-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.job-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.job-card h3 {
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- 404 --- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 4rem;
}

.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.footer-license {
  display: inline-block;
  background: rgba(124, 179, 66, 0.2);
  color: var(--color-accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent-soft);
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--color-accent);
  margin-top: 0.15rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-accent-soft);
}

.footer-domain {
  font-weight: 600;
  color: var(--color-accent-soft);
}

/* --- Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--color-accent);
  color: var(--color-charcoal);
}

/* --- Animations (Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Alt section backgrounds --- */
.bg-white { background: var(--color-white); }
.bg-cream { background: var(--color-cream); }
.bg-off-white { background: var(--color-off-white); }

/* --- Services page list --- */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.service-detail-body {
  padding: 2rem;
}

/* --- Values grid (About) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .split-section,
  .contact-grid,
  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .nav-link {
    color: var(--color-charcoal) !important;
    padding: 0.75rem;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
