/* ============================================
   HOUSTON FAMILY PHARMACY — CUSTOM STYLES
   ============================================ */

/* --- Base / Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- Navigation --- */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 96, 58, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-scrolled.scrolled {
  background: rgba(253, 246, 238, 0.97);
  box-shadow: 0 4px 24px rgba(61, 31, 19, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #3D1F13;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: #C0603A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav-logo-text { font-family: 'Playfair Display', Georgia, serif; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.935rem;
  font-weight: 500;
  color: #3D1F13;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(192, 96, 58, 0.08); color: #C0603A; }
.nav-link--cta {
  background: #C0603A;
  color: white !important;
  margin-left: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-link--cta:hover { background: #a14d2e; transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #3D1F13;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 246, 238, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(192, 96, 58, 0.12);
    box-shadow: 0 12px 32px rgba(61, 31, 19, 0.1);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { width: 100%; padding: 0.75rem 1rem; }
  .nav-link--cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: #C0603A;
  color: white;
  border-color: #C0603A;
}
.btn--primary:hover { background: #a14d2e; border-color: #a14d2e; box-shadow: 0 8px 24px rgba(192, 96, 58, 0.3); }
.btn--ghost {
  background: transparent;
  color: #3D1F13;
  border-color: rgba(61, 31, 19, 0.25);
}
.btn--ghost:hover { border-color: #C0603A; color: #C0603A; }
.btn--sand {
  background: #e5a843;
  color: #3D1F13;
  border-color: #e5a843;
}
.btn--sand:hover { background: #d49a35; border-color: #d49a35; box-shadow: 0 8px 24px rgba(229, 168, 67, 0.35); }
.btn--outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover { border-color: white; background: rgba(255, 255, 255, 0.1); }
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 14px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #C0603A;
  overflow: hidden;
  padding: 6rem 0 4rem;
}
.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 75%;
  height: 140%;
  background: linear-gradient(135deg, #e8754f 0%, #C0603A 50%, #a14d2e 100%);
  border-radius: 0 0 0 40%;
  opacity: 0.15;
}
.hero-bg-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(61, 31, 19, 0.15), transparent);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  color: white;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  backdrop-filter: blur(4px);
  width: fit-content;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.25rem 0 1.5rem;
  color: white;
}
.hero-accent {
  color: #f5d9a8;
  position: relative;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-actions .btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: white; }
.hero-actions .btn--ghost:hover { border-color: white; background: rgba(255, 255, 255, 0.1); color: white; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust-icon { color: #f5d9a8; }

/* Hero image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
  aspect-ratio: 5/6;
  max-width: 480px;
  width: 100%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: white;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  z-index: 3;
}
.hero-float-icon {
  width: 44px;
  height: 44px;
  background: #C0603A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.hero-float-label { font-size: 0.75rem; color: #7f3e25; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-float-value { font-size: 1.05rem; font-weight: 700; color: #3D1F13; }
.hero-geo-circle {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(245, 217, 168, 0.4);
  border-radius: 50%;
  z-index: 1;
}
.hero-geo {
  position: absolute;
  top: 15%;
  left: 5%;
  color: rgba(255, 255, 255, 0.3);
  z-index: 1;
}
.hero-geo--2 {
  position: absolute;
  bottom: 20%;
  left: 15%;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-right: 2rem; }
}
@media (max-width: 1023px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-image-wrap { order: -1; }
  .hero-img-card { max-width: 400px; aspect-ratio: 4/3; }
  .hero-float-card { left: 0; bottom: 1rem; }
  .hero-geo, .hero-geo--2 { display: none; }
}

/* --- Section Shared --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C0603A;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: #C0603A;
  border-radius: 2px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #3D1F13;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5e2f1d;
  max-width: 600px;
}

/* --- Services --- */
.services {
  position: relative;
  background: #FDF6EE;
  padding: 6rem 0;
  overflow: hidden;
}
.services-geo {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 320px;
  height: 320px;
  background: #fce4d8;
  border-radius: 50%;
  opacity: 0.5;
}
.services-inner { position: relative; z-index: 2; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(192, 96, 58, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(192, 96, 58, 0.12);
}
.service-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C0603A, #e5a843);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover .service-card-accent { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  background: #fdf0eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0603A;
  margin-bottom: 1.25rem;
  transition: background 0.2s ease;
}
.service-card:hover .service-icon { background: #C0603A; color: white; }
.service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3D1F13;
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #7f3e25;
}

/* --- About --- */
.about {
  position: relative;
  background: white;
  padding: 6rem 0;
  overflow: hidden;
}
.about-inner { position: relative; z-index: 2; }
.about-images { position: relative; }
.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(61, 31, 19, 0.12);
  aspect-ratio: 4/3;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 50%;
  background: #fce4d8;
  border-radius: 20px;
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  background: #C0603A;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(192, 96, 58, 0.3);
  z-index: 3;
}
.about-copy .section-title { margin-top: 0.5rem; }
.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #5e2f1d;
  margin-bottom: 1rem;
}
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 2rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3D1F13;
}
.about-list-dot {
  width: 8px;
  height: 8px;
  background: #C0603A;
  border-radius: 50%;
  flex-shrink: 0;
}
.about-geo {
  position: absolute;
  bottom: -6rem;
  left: -6rem;
  width: 400px;
  height: 400px;
  background: #fdf0eb;
  border-radius: 50%;
  opacity: 0.6;
}

/* --- Insurance Banner --- */
.insurance-banner {
  position: relative;
  background: #3D1F13;
  padding: 5rem 0;
  overflow: hidden;
}
.insurance-geo {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: rgba(192, 96, 58, 0.15);
  border-radius: 0 0 0 35%;
}
.insurance-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.insurance-content { flex: 1; min-width: 280px; }
.insurance-content .section-label { color: #f5d9a8; }
.insurance-content .section-label::before { background: #f5d9a8; }
.insurance-content .section-title { color: white; }
.insurance-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 217, 168, 0.8);
  max-width: 520px;
}
.insurance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Contact --- */
.contact {
  position: relative;
  background: #FDF6EE;
  padding: 6rem 0;
  overflow: hidden;
}
.contact-geo--1 {
  position: absolute;
  top: 5%;
  left: 3%;
  width: 200px;
  height: 200px;
  background: #fce4d8;
  border-radius: 50%;
  opacity: 0.5;
}
.contact-geo--2 {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 160px;
  height: 160px;
  background: #f5d9a8;
  border-radius: 50%;
  opacity: 0.4;
}
.contact-inner { position: relative; z-index: 2; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-info .section-title { margin-top: 0.5rem; }
.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #7f3e25;
  margin-bottom: 2rem;
}
.contact-details { margin-bottom: 2rem; }
.contact-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(192, 96, 58, 0.12);
}
.contact-detail:first-child { border-top: 1px solid rgba(192, 96, 58, 0.12); }
.contact-detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C0603A;
  padding-top: 0.2rem;
}
.contact-detail-value {
  font-size: 1rem;
  line-height: 1.6;
  color: #3D1F13;
  font-weight: 500;
}
.contact-detail-value a:hover { color: #C0603A; text-decoration: underline; }
.contact-map { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(61, 31, 19, 0.1); }

/* Form */
.contact-form-wrap { display: flex; }
.contact-form-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  box-shadow: 0 16px 48px rgba(61, 31, 19, 0.08);
  border: 1px solid rgba(192, 96, 58, 0.08);
}
.contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3D1F13;
  margin-bottom: 0.5rem;
}
.contact-form-sub {
  font-size: 0.95rem;
  color: #7f3e25;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3D1F13;
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(192, 96, 58, 0.2);
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #3D1F13;
  background: #FDF6EE;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: #C0603A;
  box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.12);
  background: white;
}
.form-input::placeholder, .form-textarea::placeholder { color: #a16a22; opacity: 0.5; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success-icon { margin-bottom: 1rem; }
.form-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3D1F13;
  margin-bottom: 0.5rem;
}
.form-success-text { color: #7f3e25; font-size: 0.95rem; line-height: 1.6; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }
}

/* --- Footer --- */
.footer {
  background: #3D1F13;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}
.footer-inner { }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}
.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: #C0603A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.footer-logo-text { font-family: 'Playfair Display', Georgia, serif; }
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}
.footer-links-title,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5d9a8;
  margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.footer-links ul li a:hover { color: white; }
.footer-contact-list li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.footer-contact-list li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
  line-height: 1.5;
}
.footer-contact-list li a:hover { color: white; }
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Reduced motion: ensure everything is visible --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
