/* Northern Arizona Pulmonary Associates - Professional Minimalist Design */

:root {
  --primary-navy: #1e3a5f;
  --secondary-navy: #2c4a6b;
  --primary-orange: #e67e22;
  --secondary-orange: #d35400;
  --warm-orange: #f39c12;
  --light-orange: #fdf2e9;
  --dark-text: #2c3e50;
  --medium-text: #5d6d7e;
  --light-text: #7f8c8d;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-gray: #dee2e6;
  --accent-teal: #17a2b8;
  --success-green: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--white);
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Bootstrap-style Grid */
.container-fluid {
  width: 100%;
  padding: 0;
  margin: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.col-lg-6, .col-md-12, .col-sm-7, .col-sm-5, .col-7, .col-5 {
  position: relative;
  width: 100%;
  padding: 0 20px;
  min-height: 1px;
}

/* Default mobile-first */
.col-5 { 
  flex: 0 0 41.666667%; 
  max-width: 41.666667%; 
}

.col-7 { 
  flex: 0 0 58.333333%; 
  max-width: 58.333333%; 
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm-5 { 
    flex: 0 0 41.666667%; 
    max-width: 41.666667%; 
  }
  .col-sm-7 { 
    flex: 0 0 58.333333%; 
    max-width: 58.333333%; 
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-12 { 
    flex: 0 0 100%; 
    max-width: 100%; 
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-6 { 
    flex: 0 0 50%; 
    max-width: 50%; 
  }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}

/* Ensure desktop displays properly */
@media (min-width: 992px) {
  body {
    padding-top: 180px !important;
  }
  
  main {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .hero {
    padding: 1rem 0 !important;
    margin-top: 0 !important;
    min-height: 15vh !important;
    position: relative !important;
    z-index: 2 !important;
  }
}

/* Modern Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
  backdrop-filter: blur(10px);
  height: auto;
  min-height: 100px;
}

/* Sleek Top Bar */
.rowtop {
  background: transparent;
  color: var(--white);
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Section */
.col-logo {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--light-orange);
}

/* Address Section */
.col-address {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.address-container {
  padding-left: 1rem;
}

.clinic-address {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.4;
}

.clinic-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.address-line a, .phone-line a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.address-line a:hover, .phone-line a:hover {
  color: var(--primary-orange);
}

/* Top Links Section */
.col-toplinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toplinks {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.toplinks li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toplinks li a:hover {
  color: var(--primary-orange);
}

/* Top Phone Section */
.col-topphone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.tel {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tel:hover {
  color: var(--primary-orange);
}

.hours {
  font-size: 0.8rem;
  color: var(--light-orange);
  margin-top: 0.25rem;
}

/* Modern Navigation */
.rowmenu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
}

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

.navbar {
  padding: 0.75rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  background: transparent;
  padding: 0;
}

.nav-menu a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: linear-gradient(45deg, var(--primary-orange), var(--warm-orange));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-align: left;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--medium-text);
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-orange);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
  display: none !important;
}

/* Main Content */
body {
  padding-top: 180px;
}

main {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* Compact Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 50%, var(--primary-orange) 100%);
  color: var(--white);
  padding: 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 15vh;
  display: flex;
  align-items: center;
  z-index: 1;
  clear: both;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-orange) 0%, transparent 50%, var(--warm-orange) 100%);
  opacity: 0.1;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-orange);
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(230, 126, 34, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background-color: var(--secondary-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

/* Modern Section Styles */
.section {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Organic Section Dividers */
.section-divider {
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(100% 100% at 50% 0%);
  z-index: 1;
}

/* Flowing Wave Elements */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  z-index: 1;
}

/* Organic background accents */
.section-accent {
  position: relative;
}

.section-accent::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--light-orange) 30%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary-navy);
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--warm-orange));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--light-orange) 0%, rgba(253, 242, 233, 0.5) 100%);
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.about-text {
  flex: 1.2;
}

.about-image {
  flex: 0.8;
}

/* Diagonal Background Element */
.about-content::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -10%;
  width: 30%;
  height: 120%;
  background: linear-gradient(45deg, var(--primary-orange), var(--warm-orange));
  opacity: 0.1;
  transform: rotate(15deg);
  border-radius: 20px;
  z-index: 0;
}

.about-text,
.about-image {
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--medium-text);
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

/* Horizontal Services Layout - NEVER STACK */
.services-grid {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

/* Asymmetrical Grid Layout for larger screens */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid .service-card:nth-child(1) {
    transform: translateY(-1rem);
  }
  
  .services-grid .service-card:nth-child(3) {
    transform: translateY(1rem);
  }
  
  .services-grid .service-card:nth-child(4) {
    transform: translateY(-0.5rem);
  }
  
  .services-grid .service-card:nth-child(6) {
    transform: translateY(0.5rem);
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Curved top accent */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-orange), var(--warm-orange));
  clip-path: ellipse(100% 100% at 50% 0%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Organic background shape */
.service-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80px;
  height: 80px;
  background: var(--light-orange);
  border-radius: 50%;
  opacity: 0.3;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scale(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(30, 58, 95, 0.2);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
  display: block;
  text-align: center;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
  text-align: center;
}

.service-card p {
  color: var(--medium-text);
  line-height: 1.7;
  text-align: center;
  font-size: 1.05rem;
}

/* Horizontal Team Layout */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  text-align: center;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

/* Organic flow element */
.team-card::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-orange), var(--warm-orange));
  border-radius: 50%;
  opacity: 0.1;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.team-card:hover::before {
  transform: scale(1);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.12);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-color: var(--light-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-navy);
  overflow: hidden;
  border: 3px solid var(--primary-orange);
  box-shadow: 0 4px 8px rgba(30, 58, 95, 0.1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.team-card .title {
  color: var(--medium-text);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--medium-text);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  background-color: var(--light-orange);
}

.contact-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border-gray);
  position: relative;
  flex: 1;
  min-width: 400px;
}

.contact-info .contact-item {
  display: inline-block;
  vertical-align: top;
  width: 48%;
  margin-right: 2%;
  margin-bottom: 1rem;
}

.contact-info .contact-item:nth-child(even) {
  margin-right: 0;
}

.contact-info .contact-item:last-child {
  width: 100%;
  margin-right: 0;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--warm-orange));
  border-radius: 12px 12px 0 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-orange);
  width: 30px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-item strong {
  color: var(--primary-navy);
}

.contact-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  text-align: center;
  margin: 2rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.contact-summary .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.contact-cta {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

.map-container {
  background-color: var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  height: 500px;
  flex: 1;
  min-width: 400px;
}

/* Footer */
footer {
  background-color: var(--primary-navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--warm-orange), var(--primary-orange));
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--light-orange);
}

.mobile-menu-toggle:active {
  background-color: var(--border-gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    min-height: 220px;
  }
  
  .rowtop {
    padding: 0.75rem 0;
  }

  .col-address, .col-toplinks {
    display: none;
  }

  .col-logo {
    flex: 0 0 55%;
    max-width: 55%;
  }
  
  .col-topphone {
    flex: 0 0 45%;
    max-width: 45%;
  }
  
  .col-topphone {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  
  .col-topphone div {
    text-align: right !important;
    width: 100% !important;
  }
  
  .col-topphone div > div {
    text-align: right !important;
  }
  
  /* Mobile phone/fax layout - keep on one line */
  .col-topphone span[style*="font-size: 0.8rem"] {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    text-align: right !important;
    display: block !important;
  }
  
  .hours {
    font-size: 0.6rem !important;
    margin-top: 0.2rem !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    line-height: 1.1 !important;
  }

  .mobile-menu-toggle {
    display: block !important;
    background: linear-gradient(45deg, var(--primary-orange), var(--warm-orange));
    border: none;
    font-size: 1.2rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
  }

  .mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.4);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 1000;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    text-align: center;
  }

  body {
    padding-top: 140px !important;
  }
  
  main {
    margin-top: 0 !important;
  }

  .logo img {
    height: 50px;
  }

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

  .tel {
    font-size: 1rem;
  }

  .hours {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  header {
    min-height: 195px;
  }
  
  .col-lg-6 {
    padding: 0 8px;
  }

  .logo-text {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .logo img {
    height: 30px;
  }

  body {
    padding-top: 120px !important;
  }
  
  main {
    margin-top: 0 !important;
  }
  
  /* Extra small mobile adjustments */
  .container {
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  .section {
    padding: 1.5rem 0.5rem !important;
  }
  
  .hero {
    padding: 3rem 0 !important;
    margin-top: 3rem !important;
  }
  
  .hero h1 {
    font-size: 1.2rem !important;
    text-align: center !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 10px !important;
  }
  
  .hero .container {
    padding: 0 20px !important;
  }
  
  .section-title {
    font-size: 1.4rem !important;
  }
  
  .col-topphone {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  
  .col-topphone div {
    text-align: right !important;
    width: 100% !important;
  }
  
  .col-topphone span {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    text-align: right !important;
    display: block !important;
  }
  
  .hours {
    font-size: 0.55rem !important;
    margin-top: 0.1rem !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    line-height: 1.1 !important;
  }
  
  /* Fix about-content for small mobile */
  .about-content {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    max-width: 100% !important;
  }
  
  .about-text {
    flex: none !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .about-image {
    flex: none !important;
    width: 100% !important;
    max-width: 250px !important;
  }
  
  .about-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  /* Hide decorative elements on small mobile */
  .about-content::before,
  .section-accent::before {
    display: none !important;
  }
}

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid,
  .team-grid {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .service-card {
    min-width: 45%;
    flex: 1;
  }

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

  .section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .service-card,
  .team-card {
    padding: 1.5rem;
    text-align: center;
  }

  .service-card h3,
  .team-card h3 {
    text-align: center;
  }

  .service-card p,
  .team-card p {
    text-align: center;
  }

  .service-icon {
    font-size: 2.5rem;
    text-align: center;
    display: block;
    width: 100%;
  }

  .team-photo {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
  }

  .contact-summary {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .contact-summary .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    max-width: 300px;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
  }

  .contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    margin: 1rem auto;
    display: block;
  }

  .about-text {
    text-align: center;
  }

  .about-text p {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    padding: 0.75rem 0;
  }

  .logo img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  main {
    margin-top: 125px;
  }

  .hero {
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero p {
    font-size: 0.9rem;
    text-align: center;
  }

  .section {
    padding: 2rem 0;
  }

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

  .section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .service-card,
  .team-card,
  .contact-info {
    padding: 1.25rem;
    text-align: center;
  }

  .service-icon {
    font-size: 2rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 2rem;
    margin: 0 auto 1rem;
  }

  .team-card .title {
    text-align: center;
    margin-bottom: 1rem;
  }

  .about-text p,
  .service-card p,
  .team-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .contact-item {
    margin-bottom: 1.5rem;
  }

  .contact-item strong {
    font-size: 1rem;
  }

  .map-container {
    height: 250px;
  }

  .services-grid ul {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }

  .cta-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }
  
  .service-card:active {
    transform: translateY(-2px);
  }
  
  .nav a:hover {
    background-color: transparent;
  }
  
  .nav a:active {
    background-color: var(--light-orange);
  }
  
  .cta-button:hover {
    background-color: var(--accent-green);
  }
  
  .cta-button:active {
    background-color: var(--secondary-orange);
  }
}

/* Ensure minimum tap target sizes (44px) */
@media (max-width: 768px) {
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .cta-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  a[href^="tel:"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Improved text readability on mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .about-text,
  .service-card p,
  .team-card p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Mobile card layout fixes */
  div[style*="display: flex"][style*="gap"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  div[style*="flex: 1"][style*="min-width"] {
    min-width: unset !important;
    max-width: unset !important;
    width: 100% !important;
  }
  
  /* Prevent horizontal scroll on cards */
  .container {
    overflow-x: hidden;
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Mobile-specific card spacing */
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Contact page mobile layout */
  div[style*="display: flex"][style*="gap: 3rem"] {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  /* Mobile navigation improvements */
  .nav-menu.mobile-open {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Mobile font size adjustments */
  .hero h1 {
    font-size: 1.4rem !important;
    text-align: center !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .hero .container {
    padding: 0 20px !important;
  }
  
  .section-title {
    font-size: 1.6rem !important;
  }
  
  /* Improve button sizes for mobile */
  .cta-button {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }
  
  /* Mobile image sizing */
  .about-image img,
  .hero img {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile address layout improvements */
  .col-topaddress {
    display: none !important;
  }
  
  /* Better mobile typography */
  p, li {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  /* Fix about-content horizontal scrolling */
  .about-content {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    max-width: 100% !important;
  }
  
  .about-text {
    flex: none !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .about-image {
    flex: none !important;
    width: 100% !important;
    max-width: 300px !important;
  }
  
  .about-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  /* Hide decorative elements that might cause overflow */
  .about-content::before,
  .section-accent::before {
    display: none !important;
  }
}