/* ========================================
   RESET & CORE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
   /* padding-top: 100px;  */
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d0d7d8' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h6v6H0z'/%3E%3Cpath d='M5 5h1v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: repeat;
  padding-top: 80px; /* Compensate for fixed header */
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ========================================
   BUTTONS — MATCH CUOMO STYLE
======================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
}

.btn-primary {
  background-color: #2a7f7e;
  color: white;
  border: 2px solid #2a7f7e;
}

.btn-primary:hover {
  background-color: #1d5c5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 127, 126, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #2a7f7e;
  border: 2px solid #2a7f7e;
}

.btn-secondary:hover {
  background-color: #f0f9f9;
}

/* ========================================
   HEADER & NAVIGATION — FIXED & POLISHED
======================================== */
/* ========================================
   HEADER & NAVIGATION — FIXED & POLISHED (CORRECTED)
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 15px 0;
  height: 80px;
  margin: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo img {
  height: 50px;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: #2a7f7e;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2a7f7e;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ========================================
   NAV PHONE NUMBER — DESKTOP & MOBILE
======================================== */
.nav-phone {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2a7f7e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(42, 127, 126, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-phone:hover {
  color: #1d5c5b;
  background: rgba(42, 127, 126, 0.2);
}

@media (max-width: 768px) {
  .nav-phone {
    font-size: 1rem;
    padding: 6px 12px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .nav-phone span {
    display: none;
  }
  .nav-phone {
    padding: 8px;
  }
}

/* ========================================
   HAMBURGER MENU (Mobile) — NARROW & ELEGANT
======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  margin-left: auto;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #2a7f7e;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  color: #2a7f7e;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hamburger.active::before {
  content: '✕';
  opacity: 1;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(42, 127, 126, 0.15);
    padding: 12px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    min-width: 220px;
    max-width: 280px;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    color: #2a7f7e;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
  }

  .nav-menu a:hover {
    background-color: #f8fbfb;
    color: #1d5c5b;
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
  }
}

/* ========================================
   HERO SECTION — CUOMO STYLE
======================================== */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 60px 0;
}

.hero-bg {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), var(--hero-bg-url, url('https://via.placeholder.com/1920x800?text=Hero+Image')) no-repeat center center/cover;
}

.hero-content {
  z-index: 5;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 700px;
}

.home-page .hero {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

/* ========================================
   SECTIONS — CUOMO SPACING & STYLE
======================================== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #2a7f7e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

/* ========================================
   SERVICES — PERFECTED CUOMO STYLE
======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.service-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.service-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.2rem;
  color: #2a7f7e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.service-card p {
  padding: 0 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin: 10px 0;
}

.service-card .btn-secondary {
  margin: 15px 20px 20px;
  align-self: center;
  width: auto;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* TESTIMONIALS */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.testimonial-card cite {
  font-weight: 600;
  color: #2a7f7e;
  font-size: 1.1rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin: 80px 0;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.about-text .section-title {
  text-align: left;
  margin-bottom: 25px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member h3 {
  color: #2a7f7e;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.team-member p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.team-member em {
  font-weight: 500;
  color: #777;
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 80px 0;
}

.contact-form-wrapper .section-title,
.contact-info .section-title {
  text-align: left;
  margin-bottom: 25px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2a7f7e;
}

.info-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  height: 100%;
}

.info-card h3 {
  color: #2a7f7e;
  margin: 25px 0 15px 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.info-card p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;
}

/* CTA — MATCH CUOMO’S “Ready to Live Pain-Free?” */
.cta-section {
  background: linear-gradient(135deg, #2a7f7e, #1d5c5b);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 70px 0;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }
}

/* FOOTER */
.footer {
  background: #222;
  color: #ddd;
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer h4 {
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #2a7f7e;
}

.footer-contact address {
  font-style: normal;
  line-height: 1.8;
  font-size: 1rem;
}

.footer-bottom {
  background: #111;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

/* ========================================
   EXTRA SAFETY
======================================== */
html, body {
  height: 100%;
  overflow-x: hidden;
}

body > * {
  position: relative;
  z-index: 1;
}

