/* ============================================================
   Coastal Family Medicine — Demo Site Stylesheet
   OC Tech Co. Industry Demo
   Fonts: Quicksand (headings) + Mulish (body) via Google Fonts
   ============================================================ */

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

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

body {
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  color: #1b1b1b;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1b1b1b;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: #474747;
  font-weight: 400;
  line-height: 1.75;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: #737373;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0e7e7e;
  background: rgba(14, 126, 126, 0.08);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.9rem;
}

/* --- Demo Banner --- */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0e7e7e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  font-family: 'Mulish', sans-serif;
}

.demo-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  line-height: 1;
}

.demo-banner p strong {
  color: #ffffff;
  font-weight: 700;
}

.demo-banner a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.demo-banner a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* --- Nav --- */
.site-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-logo .logo-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0e7e7e;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-logo .logo-tagline {
  font-family: 'Mulish', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #737373;
  letter-spacing: 0.03em;
}

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

.nav-links a {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #474747;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0e7e7e;
}

.nav-cta {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #ffffff !important;
  background: #0e7e7e;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #3ba8a8 !important;
  color: #ffffff !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #474747;
  border-radius: 2px;
  transition: background 0.2s;
}

/* --- Hero --- */
.hero {
  background: #ffffff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: #1b1b1b;
}

.hero h1 span {
  color: #0e7e7e;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #737373;
  max-width: 520px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: #0e7e7e;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: 2px solid #0e7e7e;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #3ba8a8;
  border-color: #3ba8a8;
  color: #ffffff;
}

.btn-ghost {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0e7e7e;
  background: transparent;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(14, 126, 126, 0.25);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  border-color: #0e7e7e;
  background: rgba(14, 126, 126, 0.05);
}

.hero-trust {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-item .trust-number {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #0e7e7e;
}

.trust-item .trust-label {
  font-size: 0.78rem;
  color: #737373;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- Services --- */
.services {
  background: #f8fafa;
  padding: 5.5rem 1.5rem;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(14, 126, 126, 0.1);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(14, 126, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0e7e7e;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: #737373;
  line-height: 1.65;
}

/* --- Doctor Section --- */
.doctor {
  background: #ffffff;
  padding: 5.5rem 1.5rem;
}

.doctor-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  background: #e8f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.doctor-photo .initials {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #0e7e7e;
  opacity: 0.6;
}

.doctor-photo .photo-label {
  font-size: 0.75rem;
  color: #737373;
  letter-spacing: 0.05em;
}

.doctor-content .section-tag {
  margin-bottom: 0.5rem;
}

.doctor-content h2 {
  margin-bottom: 0.35rem;
}

.doctor-content .doctor-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #3ba8a8;
  margin-bottom: 1.25rem;
}

.doctor-content p {
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
}

.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #474747;
  font-weight: 500;
}

.credential-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e7e7e;
  flex-shrink: 0;
}

/* --- Testimonials --- */
.testimonials {
  background: #f8fafa;
  padding: 5.5rem 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.star {
  color: #f5a623;
  font-size: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: #474747;
  line-height: 1.75;
  font-style: italic;
  font-weight: 400;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 126, 126, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0e7e7e;
  flex-shrink: 0;
}

.author-info .author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1b1b1b;
}

.author-info .author-note {
  font-size: 0.78rem;
  color: #737373;
}

/* --- Contact / Location --- */
.contact {
  background: #ffffff;
  padding: 5.5rem 1.5rem;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-tag {
  margin-bottom: 0.5rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

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

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

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(14, 126, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: #0e7e7e;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text .label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 0.2rem;
}

.contact-item-text .value {
  font-size: 0.95rem;
  color: #1b1b1b;
  font-weight: 500;
}

.contact-item-text .value a {
  color: #0e7e7e;
  font-weight: 600;
}

.accepting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 126, 126, 0.08);
  border: 1px solid rgba(14, 126, 126, 0.2);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  margin-top: 1.75rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0e7e7e;
}

.accepting-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e7e7e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-placeholder {
  background: #f8fafa;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #737373;
  font-size: 0.88rem;
  font-weight: 500;
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: #3ba8a8;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.map-address {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.map-address p {
  font-size: 0.88rem;
  color: #737373;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  background: #1b1b1b;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-brand .logo-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #3ba8a8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
  color: #3ba8a8;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: #ffffff;
}

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .doctor-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .doctor-photo {
    max-width: 240px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .demo-banner {
    padding: 0.6rem 1rem;
    gap: 0.75rem;
  }

  .site-nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero-trust {
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 400px) {
  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
