/* ============================================
   Santo Antonio Urgent Care - Stylesheet
   ============================================ */

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

:root {
  --red: #C1272D;
  --red-dark: #a01f24;
  --dark: #1a1a1a;
  --gray-light: #f5f5f5;
  --gray: #666;
  --blue-dark: #1a2a4a;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* --- Top Bar --- */
.top-bar {
  background: var(--red);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-address {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-phone a {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-bar-phone a:hover {
  text-decoration: underline;
}

/* --- Header / Navbar --- */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

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

.nav-menu a:hover {
  color: var(--red);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 32px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193,39,45,0.4);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* --- About Section --- */
.about {
  padding: 64px 0;
  background: var(--white);
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto 16px;
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
}

.about .hours {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 24px;
  padding: 16px 32px;
  background: var(--gray-light);
  display: inline-block;
  border-radius: 4px;
}

/* --- Services Section --- */
.services {
  padding: 64px 0;
  background: var(--gray-light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 48px;
  color: var(--dark);
}

.section-title span {
  color: var(--red);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(193,39,45,0.15);
  transform: translateY(-2px);
}

/* --- Insurance Section --- */
.insurance {
  padding: 64px 0;
  background: var(--white);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.insurance-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.insurance-logo:hover {
  filter: grayscale(0%);
}

.insurance-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* --- Telehealth Section --- */
.telehealth {
  padding: 64px 0;
  background: var(--blue-dark);
  color: var(--white);
}

.telehealth .container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.telehealth-content {
  flex: 1;
}

.telehealth-content h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--white);
}

.telehealth-content h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #ccc;
}

.telehealth-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #bbb;
}

.telehealth-image {
  flex: 0 0 300px;
}

.telehealth-image img {
  border-radius: 8px;
}

/* --- Contact Section --- */
.contact {
  padding: 64px 0;
  background: var(--gray-light);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 32px;
}

.contact-phone a {
  color: var(--red);
}

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

.contact-image {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s;
  background: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193,39,45,0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-status {
  display: none;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: #aaa;
  padding: 48px 0 24px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

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

  .insurance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

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

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .header .container {
    position: relative;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .telehealth .container {
    flex-direction: column;
    text-align: center;
  }

  .telehealth-image {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    padding: 16px 8px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
