/* Shared header used on every page of the Oasis Dental site */
html { scroll-padding-top: 90px; scroll-behavior: smooth; }

header.sh { position: fixed; top: 0; left: 0; width: 100%; height: 80px; padding: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); z-index: 1000; }
.sh-in { height: 100%; width: 92%; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.sh-brand img { height: 50px; width: auto; display: block; }
.sh-name { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; color: #779CAB; white-space: nowrap; line-height: 1; }
.sh-name b { font-weight: 600; color: #3B3F28; }

.sh-nav { display: flex; align-items: center; gap: 22px; }
.sh-nav > a, .sh-ddbtn { font-family: 'Poppins', sans-serif; font-size: .98rem; font-weight: 500; color: #1F1F1F; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.sh-nav > a:not(.sh-cta)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: #3B3F28; transition: width .3s ease; }
.sh-nav > a:not(.sh-cta):hover::after { width: 100%; }
.sh-ddbtn i { font-size: .7rem; }

.sh-dd { position: relative; }
.sh-ddmenu { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.12); padding: 8px 0; display: none; }
.sh-dd:hover .sh-ddmenu, .sh-dd:focus-within .sh-ddmenu, .sh-dd.open .sh-ddmenu { display: block; }
.sh-ddmenu a { display: block; padding: 10px 20px; color: #1F1F1F; text-decoration: none; font-family: 'Poppins', sans-serif; font-size: .95rem; }
.sh-ddmenu a:hover { background: #EAEAE0; color: #3B3F28; }

.sh-nav > a.sh-cta { background: #D9744D; color: #fff !important; padding: 10px 22px !important; border-radius: 50px; border: 2px solid #D9744D; transition: all .3s ease; }
.sh-nav > a.sh-cta:hover { background: transparent; color: #D9744D !important; }

.sh-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: #3B3F28; cursor: pointer; padding: 8px; }

@media (max-width: 1400px) and (min-width: 1201px) {
  .sh-in { width: 96%; }
  .sh-nav { gap: 16px; }
  .sh-nav > a, .sh-ddbtn { font-size: .92rem; }
  .sh-name { font-size: 1.75rem; }
  .sh-brand img { height: 44px; }
  .sh-nav > a.sh-cta { padding: 8px 18px !important; }
}
@media (max-width: 1200px) {
  .sh-toggle { display: block; }
  .sh-nav { position: fixed; top: 80px; left: 0; right: 0; max-height: calc(100vh - 80px); overflow-y: auto; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 24px; box-shadow: 0 12px 20px rgba(0,0,0,.1); display: none; }
  .sh-nav.open { display: flex; }
  .sh-nav > a, .sh-ddbtn { padding: 14px 24px; width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .sh-nav > a::after { display: none; }
  .sh-ddmenu { position: static; box-shadow: none; border-radius: 0; background: #F8F8F5; padding: 0; }
  .sh-dd:hover .sh-ddmenu { display: none; }
  .sh-dd.open .sh-ddmenu { display: block; }
  .sh-ddmenu a { padding: 12px 40px; }
  .sh-nav > a.sh-cta { margin: 14px 24px 0; width: auto !important; justify-content: center !important; text-align: center; }
}
@media (max-width: 480px) {
  .sh-brand img { height: 40px; }
  .sh-name { font-size: 1.5rem; }
}

/* Initials avatars (used instead of stock photos) */
.initials { display: flex !important; align-items: center; justify-content: center; background: #A3CBB5; color: #fff; font-family: 'Playfair Display', serif; font-weight: 600; }
.author-img.initials { font-size: 1.3rem; }
.team-img.initials { font-size: 4rem; background: linear-gradient(135deg, #A3CBB5, #779CAB); }

/* Sticky call / book bar on phones */
.cta-bar { display: none; }
@media (max-width: 768px) {
  .cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .cta-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none; }
  .cta-bar .cta-call { background: #3B3F28; color: #fff; }
  .cta-bar .cta-book { background: #D9744D; color: #fff; }
  body { padding-bottom: 76px; }
}

/* ---- Multi-page layout pieces ---- */
.page-hero { padding: 150px 0 70px; text-align: center; background: linear-gradient(135deg, rgba(163,203,181,.35), rgba(119,156,171,.3)); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.1rem, 5vw, 3.2rem); color: #3B3F28; margin-bottom: 14px; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

.svc-preview a.service-card { text-decoration: none; color: inherit; display: block; }
.svc-preview a.service-card p { margin-bottom: 0; }

.insurance-strip { padding: 60px 0; background: #3B3F28; color: #fff; }
.insurance-strip h2 { color: #fff; margin-bottom: 8px; }
.insurance-strip p { margin: 0; opacity: .9; max-width: 640px; }
.ins-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ins-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
a.loc-card { text-decoration: none; color: inherit; display: block; }
.loc-card p { margin-bottom: 8px; }
.loc-link { display: inline-block; margin-top: 8px; color: #D9744D; font-weight: 600; }

.cta-band { padding: 80px 0; text-align: center; background: linear-gradient(135deg, rgba(163,203,181,.45), rgba(119,156,171,.45)); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta-band p { max-width: 620px; margin: 0 auto; }
.cta-band .btn-outline { color: #3B3F28; border-color: #3B3F28; }
.cta-band .btn-outline:hover { background: #3B3F28; color: #fff; }

.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 24px !important; }

/* Services page: clickable categories */
.svc-cats { padding: 70px 0; background: #EAEAE0; }
.svc-cat { background: #fff; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.06); border: 1px solid rgba(163,203,181,.35); overflow: hidden; }
.svc-cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 22px 26px; }
.svc-cat summary::-webkit-details-marker { display: none; }
.svc-ic { flex: none; width: 58px; height: 58px; border-radius: 50%; background: #A3CBB5; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.svc-tx { flex: 1; display: flex; flex-direction: column; }
.svc-t { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 600; color: #3B3F28; }
.svc-sub { color: #555; font-size: .97rem; }
.svc-n { flex: none; font-size: .85rem; font-weight: 600; color: #779CAB; background: rgba(119,156,171,.12); padding: 6px 12px; border-radius: 50px; }
.svc-chev { flex: none; color: #D9744D; transition: transform .25s ease; }
.svc-cat[open] .svc-chev { transform: rotate(180deg); }
.svc-cat summary:hover .svc-t { color: #D9744D; }
.svc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 4px 26px 26px; }
.svc-item { background: #F8F8F5; border-radius: 12px; padding: 18px 20px; border-left: 4px solid #A3CBB5; }
.svc-item h4 { font-family: 'Playfair Display', serif; font-size: 1.12rem; color: #3B3F28; margin-bottom: 6px; }
.svc-item p { margin: 0; font-size: .95rem; }
.svc-note { text-align: center; margin-top: 30px; font-size: 1.05rem; }
.svc-note a { color: #D9744D; font-weight: 600; }
@media (max-width: 600px) {
  .svc-cat summary { padding: 18px; gap: 14px; }
  .svc-ic { width: 46px; height: 46px; font-size: 1.2rem; }
  .svc-t { font-size: 1.2rem; }
  .svc-n { display: none; }
  .svc-items { padding: 0 18px 18px; }
}

/* Desktop: spread menu items across the header instead of bunching them on the right */
@media (min-width: 1201px) {
  .sh-nav { flex: 1; justify-content: space-between; margin-left: clamp(40px, 6vw, 110px); gap: 12px; }
}

/* ---- Phone fixes ---- */
@media (max-width: 768px) {
  .contact-form .form-group[style*="grid"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px !important; }
  .appointment-info { padding: 26px 20px !important; }
  .hours-list li { gap: 12px; }
  .hours-list li span:last-child { white-space: nowrap; text-align: right; }
  .floating-icon { display: none !important; }
  .office-card { padding: 20px !important; }
  .hero { height: auto !important; min-height: 88vh; padding-bottom: 40px; }
}
