/* ============================================
   VORTEX BUILDINGS - Static CSS
   ============================================ */

/* CSS Variables */
/*:root {
  --background: hsl(40, 20%, 98%);
  --foreground: hsl(30, 15%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(30, 15%, 15%);
  --primary: hsl(25, 75%, 47%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(45, 90%, 55%);
  --secondary-foreground: hsl(30, 15%, 15%);
  --muted: hsl(40, 15%, 94%);
  --muted-foreground: hsl(30, 10%, 45%);
  --accent: hsl(45, 90%, 55%);
  --accent-foreground: hsl(30, 15%, 15%);
  --border: hsl(30, 15%, 85%);
  --input: hsl(30, 15%, 85%);
  --ring: hsl(25, 75%, 47%);
  --construction-dark: hsl(220, 25%, 18%);
  --shadow-card: 0 2px 8px -2px hsla(30, 15%, 15%, 0.1), 0 4px 12px -4px hsla(30, 15%, 15%, 0.08);
  --shadow-card-hover: 0 8px 24px -8px hsla(30, 15%, 15%, 0.15), 0 12px 32px -12px hsla(30, 15%, 15%, 0.1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}*/

:root {
  /* Main Colors */
  --background: #fbf9f7;           /* hsl(40, 20%, 98%) */
  --foreground: #2c2621;           /* hsl(30, 15%, 15%) */
  --card: #ffffff;                 /* hsl(0, 0%, 100%) */
  --card-foreground: #2c2621;      /* hsl(30, 15%, 15%) */
  
  /* Brand Action Colors */
  --primary: #FF0000;              /* hsl(25, 75%, 47%) - Burnt Orange */
  --primary-foreground: #ffffff;   /* hsl(0, 0%, 100%) */
  --secondary: #f7c921;            /* hsl(45, 90%, 55%) - Safety Gold */
  --secondary-foreground: #2c2621; /* hsl(30, 15%, 15%) */
  
  /* UI Elements */
  --muted: #f2efea;                /* hsl(40, 15%, 94%) */
  --muted-foreground: #7e756d;     /* hsl(30, 10%, 45%) */
  --accent: #f7c921;               /* hsl(45, 90%, 55%) */
  --accent-foreground: #2c2621;    /* hsl(30, 15%, 15%) */
  --border: #ded8d3;               /* hsl(30, 15%, 85%) */
  --input: #ded8d3;                /* hsl(30, 15%, 85%) */
  --ring: #d2691e;                 /* hsl(25, 75%, 47%) */
  
  /* Specialized Industrial Tone */
  --construction-dark: #222b39;    /* hsl(220, 25%, 18%) - Deep Navy */

  /* Shadows */
  --shadow-card: 0 2px 8px -2px rgba(44, 38, 33, 0.1), 0 4px 12px -4px rgba(44, 38, 33, 0.08);
  --shadow-card-hover: 0 8px 24px -8px rgba(44, 38, 33, 0.15), 0 12px 32px -12px rgba(44, 38, 33, 0.1);

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

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #d72727;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: hsl(45, 90%, 50%);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

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

.btn-lg {
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

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

.logo-secondary {
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem; 
  padding: 0;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chevron {
  transition: transform 0.2s;
}

.dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}

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

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--primary); /* This is your red (#FF0000) */
  color: #ffffff; /* Ensures the text is readable against the red background-color: var(--muted);*/
}

.header-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
}

.mobile-nav-section {
  padding: 0.5rem 0;
}

.mobile-nav-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.mobile-nav-sublink {
  display: block;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--foreground);
}

.mobile-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .header-inner {
    height: 5rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .header-buttons {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 5rem 0 4rem;
  background-color: var(--background);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  order: 2;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image {
  order: 1;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card-hover);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card-hover);
}

.hero-badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.hero-badge-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 6rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-choose-us {
  padding: 4rem 0 6rem;
  background-color: var(--background);
}

.turnkey-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary);
  margin: 0 auto 2.5rem;
}

.turnkey-content {
  max-width: 64rem;
  margin: 0 auto;
}

.turnkey-image {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 100%;
  max-width: 100%;
}

.turnkey-img {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card-hover);
}

.turnkey-text {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.turnkey-text p {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .turnkey-image {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .turnkey-image {
    width: 40%;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Nebraska Weather Section */
.weather-section {
  background-color: var(--construction-dark);
  border-radius: 1rem;
  padding: 2rem;
}

.weather-content {
  max-width: 56rem;
  margin: 0 auto;
}

.weather-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.weather-icon svg {
  color: var(--secondary);
}

.weather-title {
  font-size: 1.5rem;
  color: var(--primary-foreground);
  text-align: center;
  margin-bottom: 1.5rem;
}

.weather-description {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.8);
  text-align: center;
  margin-bottom: 2.5rem;
}

.weather-features {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.weather-feature {
  background-color: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.weather-feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.weather-feature-header svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.weather-feature-header h3 {
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

.weather-feature-header div {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--secondary); /* This makes it yellow/gold */
}

.weather-feature p {
  color: hsla(0, 0%, 100%, 0.8);
}

.weather-footer {
  color: hsla(0, 0%, 100%, 0.8);
  text-align: center;
}

@media (min-width: 768px) {
  .weather-section {
    padding: 3rem;
  }
  
  .weather-title {
    font-size: 2rem;
  }
  
  .weather-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .weather-section {
    padding: 4rem;
  }
  
  .weather-title {
    font-size: 2.5rem;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 4rem 0 6rem;
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;	
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.service-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   SERVICE AREAS
   ============================================ */
.service-areas {
  padding: 4rem 0 6rem;
  background-color: var(--construction-dark);
}

.section-title-light {
  font-size: 1.875rem;
  color: var(--primary-foreground);
  text-align: center;
  margin-bottom: 1rem;
}

.section-divider-secondary {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--secondary);
  margin: 0 auto 1.5rem;
}

.section-description-light {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.8);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.area-card {
  background-color: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: background-color 0.2s;
}

.area-card:hover {
  background-color: hsla(0, 0%, 100%, 0.15);
}

.area-icon {
  color: var(--secondary);
  margin: 0 auto 0.75rem;
  transition: transform 0.2s;
}

.area-card:hover .area-icon {
  transform: scale(1.1);
}

.area-title {
  font-size: 1.25rem;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.area-description {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.7);
}

.areas-note {
  text-align: center;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .section-title-light {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  
  .section-title-light {
    font-size: 3rem;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 4rem 0 6rem;
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-card-description {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.steps-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.step-content h5 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(25, 75%, 47%, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-address {
  grid-template-columns: 3fr 1fr 2fr;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ============================================
   CONTACT FORM MOBILE REFINEMENTS
   ============================================ */

/* Force vertical stacking on mobile for ALL form rows */
@media (max-width: 640px) {
  .form-row, 
  .form-row-address {
    grid-template-columns: 1fr !important; /* Stack inputs vertically */
    gap: 1rem;
  }

  /* Ensure the form wrapper doesn't push past the screen */
  .contact-form-wrapper {
    padding: 1.25rem; /* Slightly smaller padding on mobile */
    width: 100%;
    box-sizing: border-box;
  }

  /* Prevent long email links or text from stretching the card */
  .contact-item a {
    word-break: break-all; 
    font-size: 0.9rem;
  }
}

/* Global Safety: Ensure all elements respect their parent's width */
.contact-form-wrapper,
.contact-form,
.form-group,
.form-group input {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--construction-dark);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-section {
  /* Individual footer column */
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: hsla(0, 0%, 100%, 0.8);
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-map {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.footer-map iframe {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.footer-map:hover iframe {
  filter: grayscale(0);
}

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.875rem;
}

.footer-legal {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer {
    padding: 4rem 0;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

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

/* ============================================
   PAGE HERO (Service/Area pages)
   ============================================ */
.page-hero {
  padding: 6rem 0 4rem;
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero-title {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.page-hero-image {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card-hover);
  width: 100%;
}

@media (min-width: 768px) {
  .page-hero { padding: 8rem 0 4rem; }
  .page-hero-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .page-hero-title { font-size: 3rem; }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card p {
  font-weight: 500;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Content blocks */
.content-block {
  max-width: 56rem;
  margin: 0 auto;
}

.content-subtitle {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.content-block p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Utility */
.py-section { padding: 4rem 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.text-left { text-align: left; }

/* Services grid variants */
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .services-grid-3 { grid-template-columns: 1fr; } }

/* Area pages */
.area-hero {
  padding: 6rem 0 4rem;
  background: var(--construction-dark);
}

.area-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}



.area-hero-title {
	font-size: 2.5rem;
  	color: var(--primary-foreground);
    display: table; /* Shrinks the element to the width of the text */
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    width: auto;
    float: none; /* Disables any accidental floats */
}

/* Ensure the parent container is also helping */
.area-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.area-hero-description {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.8);
  max-width: 50rem;
  margin: 0 auto;
	text-align: center;
}

.area-content-grid {
  display: grid;
  gap: 2rem;
}

.area-contact-card {
  background: var(--card);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.area-contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.area-contact-card > p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.area-contact-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.area-contact-info p {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
  .areas-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .area-hero { padding: 8rem 0 4rem; }
  .area-hero-title { font-size: 3rem; }
  .area-content-grid { grid-template-columns: 1fr 400px; }
}

/* Legal pages */
.legal-page {
  padding: 6rem 0 4rem;
  min-height: 60vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ============================================
   AREA PAGE SECTIONS
   ============================================ */

/* Things To Do Grid */
.things-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .things-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.thing-card {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  background: var(--card);
}

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

.thing-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.thing-content {
  padding: 1rem;
}

.thing-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.thing-card:hover .thing-content h3 {
  color: var(--primary);
}

.thing-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Top Sites Grid */
.top-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.top-site-card {
  display: block;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s ease;
}

.top-site-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.top-site-icon {
  width: 3rem;
  height: 3rem;
  background: hsla(25, 75%, 47%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.3s ease;
}

.top-site-icon svg {
  color: var(--primary);
}

.top-site-card:hover .top-site-icon {
  background: hsla(25, 75%, 47%, 0.2);
}

.top-site-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.top-site-card:hover h3 {
  color: var(--primary);
}

.top-site-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Neighborhoods Grid */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto 3rem;
}

@media (min-width: 640px) {
  .neighborhoods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.neighborhood-card {
  padding: 1rem;
  background: var(--card);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--foreground);
}

/* Area Map */
.area-map {
  width: 100%;
  height: 350px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.area-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   AREA FORM OVERFLOW FIXES
   ============================================ */

/* 1. Ensure the grid doesn't allow content to push column widths */
@media (min-width: 1024px) {
  .area-content-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* This makes both sides exactly 50% */
    gap: 3rem; /* Adds a professional gap between the text and the form */
    align-items: start; 
  }
}

/* 2. Force all form elements to stay inside the 400px card */
.area-contact-card {
  width: 100%;
  box-sizing: border-box;
}

.area-contact-card input, 
.area-contact-card textarea, 
.area-contact-card select {
  width: 100% !important; /* Force full width of the card */
  max-width: 100%;        /* Prevent horizontal overflow */
  box-sizing: border-box; /* Ensures padding is calculated inside the width */
  display: block;
}

/* 3. Adjust the form-row if you have side-by-side inputs (like First/Last Name) */
.area-contact-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* 4. Fix for mobile: Ensure the card doesn't hit the screen edges */
@media (max-width: 450px) {
  .area-contact-card {
    padding: 1.5rem; /* Slightly less padding on tiny screens to save space */
  }
  
  .area-contact-card .form-row {
    grid-template-columns: 1fr; /* Stack inputs on mobile */
  }
}
