/* =====================================================================
   Dental Destination — secondary stylesheet
   Shared blocks that live in header.php / footer.php:
   top bar, navbar, appointment form, footer, floating call button.
   ===================================================================== */

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--ink);
  color: rgba(248, 247, 242, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 9px 0;
}

.top-bar a {
  color: var(--ivory);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--gold);
}

.top-bar .divider {
  color: rgba(248, 247, 242, 0.25);
  margin: 0 4px;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  z-index: 1030;
  transition: box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 10px 34px rgba(11, 21, 18, 0.08);
  padding: 0.45rem 0;
}

/* logo + wordmark */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar-brand img.header-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: width var(--transition), height var(--transition);
}

.navbar.scrolled .navbar-brand img.header-logo {
  width: 50px;
  height: 50px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--emerald);
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 5px;
  white-space: nowrap;
}

/* links */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    margin-left: auto;
    align-items: center;
  }
}

.navbar .nav-link {
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.6rem 1.2rem !important;
  transition: color var(--transition);
  position: relative;
}

.navbar .nav-link:not(.dropdown-toggle):not(.btn-book-nav)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--gold-dark) !important;
}

.navbar .nav-link:not(.dropdown-toggle):not(.btn-book-nav):hover::after {
  transform: scaleX(1);
}

/* dropdown caret: thin chevron instead of Bootstrap's triangle */
.navbar .dropdown-toggle::after {
  border: 0;
  width: 6px;
  height: 6px;
  margin-left: 0.55rem;
  vertical-align: 0.1em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.navbar .dropdown.show .dropdown-toggle::after {
  transform: rotate(-135deg);
}

.btn-book-nav {
  background: var(--emerald);
  color: var(--ivory) !important;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
  padding: 0.85rem 1.5rem !important;
  transition: var(--transition);
}

.btn-book-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--emerald-deep) !important;
}

.btn-book-nav::after {
  display: none !important;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-left: auto;
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(214, 174, 69, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 61, 48, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h14'/%3e%3c/svg%3e");
}

/* Treatments dropdown */
.dropdown-menu {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 24px 50px rgba(11, 21, 18, 0.12);
  padding: 0.6rem;
  min-width: 260px;
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition), padding var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--mint);
  color: var(--emerald);
  padding-left: 1.3rem;
}

/* Open dropdown on hover (desktop with a mouse only) */
@media (min-width: 992px) and (hover: hover) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Mobile menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    border-top: 1px solid var(--line);
    padding-top: 0.5rem;
  }

  .navbar .nav-link {
    padding: 0.85rem 0.25rem !important;
    border-bottom: 1px solid var(--line);
  }

  .navbar .nav-link:not(.dropdown-toggle):not(.btn-book-nav)::after {
    display: none;
  }

  .navbar-nav .nav-item:last-child {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .btn-book-nav {
    display: block;
    text-align: center;
    border-bottom: 1px solid var(--emerald) !important;
  }

  .dropdown-menu {
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    background: var(--mint);
    margin: 0 0 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img.header-logo {
    width: 48px;
    height: 48px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-sub {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
}

/* ===================== APPOINTMENT (dark band) ===================== */
.appointment-section {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(214, 174, 69, 0.1), transparent 60%),
    var(--emerald-deep);
  position: relative;
  color: rgba(248, 247, 242, 0.78);
}

.appointment-section .section-heading {
  color: var(--ivory);
}

.appointment-section .section-eyebrow {
  color: var(--gold);
}

.appt-lead {
  color: rgba(248, 247, 242, 0.7);
  margin-bottom: 2.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 460px;
}

.appt-contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(248, 247, 242, 0.12);
}

.appt-contact-item:last-child {
  border-bottom: 1px solid rgba(248, 247, 242, 0.12);
}

.appt-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  border: 1px solid rgba(214, 174, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}

.appt-icon-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.22em;
  margin-bottom: 2px;
}

.appt-icon-value {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ivory);
  line-height: 1.5;
}

.appt-icon-value a {
  color: inherit;
  text-decoration: none;
}

.appt-icon-value a:hover {
  color: var(--gold);
}

.form-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--gold);
  padding: 2.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.form-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background-color: var(--white);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control::placeholder {
  color: #97a29c;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--emerald-soft);
  box-shadow: 0 0 0 3px rgba(27, 90, 71, 0.12);
  background-color: var(--white);
}

.btn-submit {
  background: var(--emerald);
  color: var(--ivory);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: var(--transition);
  width: 100%;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 174, 69, 0.3);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--ink);
  color: rgba(248, 247, 242, 0.6);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-logo {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 1px rgba(214, 174, 69, 0.45);
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.64rem;
  color: var(--ivory);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(248, 247, 242, 0.5);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 247, 242, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 247, 242, 0.65);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--emerald-deep);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(248, 247, 242, 0.1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(248, 247, 242, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-hours li {
  font-size: 0.88rem;
  color: rgba(248, 247, 242, 0.6);
  padding: 0.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1rem;
}

.footer-hours li span:last-child {
  color: var(--gold-light);
}

.footer-divider {
  border-color: rgba(248, 247, 242, 0.1) !important;
  margin: 3rem 0 2rem;
}

.footer-bottom {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(248, 247, 242, 0.38);
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

.map-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(248, 247, 242, 0.14);
  margin-top: 1rem;
  filter: grayscale(0.55) contrast(1.05);
}

/* ===================== FLOATING CALL BUTTON ===================== */
.fixed-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 28px rgba(11, 21, 18, 0.35);
  z-index: 900;
  animation: ddPulse 3.5s infinite;
  transition: var(--transition);
}

.fixed-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.fixed-btn:hover {
  background: var(--gold);
  color: var(--emerald-deep);
  transform: scale(1.06);
}

@keyframes ddPulse {

  0%,
  100% {
    box-shadow: 0 10px 28px rgba(11, 21, 18, 0.35), 0 0 0 0 rgba(214, 174, 69, 0.5);
  }

  60% {
    box-shadow: 0 10px 28px rgba(11, 21, 18, 0.35), 0 0 0 16px rgba(214, 174, 69, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-btn {
    animation: none;
  }
}

@media (max-width: 768px) {
  .form-card {
    padding: 1.9rem 1.3rem;
  }

  .fixed-btn {
    bottom: 18px;
    right: 18px;
  }
}

/* ===================== NAV: active item + "All treatments" link (added with Home / About / hub pages) ===================== */
.navbar .nav-link.active {
  color: var(--gold-dark) !important;
}

.navbar .nav-link.active:not(.dropdown-toggle)::after {
  transform: scaleX(1);
}

.dropdown-item-all {
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.02em;
}

.dropdown-divider {
  border-color: var(--line);
  margin: 0.35rem 0.4rem;
}

/* ===================== NAV: doctors dropdown + tighter spacing (6 items) ===================== */
.dropdown-item-doctor small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar .nav-link {
    padding: 0.6rem 0.75rem !important;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
  }

  .navbar .nav-link:not(.dropdown-toggle):not(.btn-book-nav)::after {
    left: 0.75rem;
    right: 0.75rem;
  }

  .btn-book-nav {
    padding: 0.8rem 1.1rem !important;
  }

  .nav-item.ms-lg-3 {
    margin-left: 0.5rem !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }
  .navbar .nav-link { padding: 0.6rem 0.55rem !important; letter-spacing: 0.06em; }
}

/* ===================== PATIENT RESULTS GALLERY (patient-results.php) ===================== */
.results-section {
  padding: 6rem 0;
}

.results-section.bg-ivory { background: var(--ivory); }
.results-section.bg-white { background: #fff; }
.results-section.bg-mint { background: var(--mint); }

.results-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.results-head .section-eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.results-head p {
  color: var(--text-muted);
  margin: 0.9rem 0 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.results-grid.is-few {
  grid-template-columns: repeat(auto-fit, minmax(250px, 340px));
  justify-content: center;
}

.result-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 61, 48, 0.14);
}

.result-open {
  position: relative;
  display: block;
  aspect-ratio: 10 / 11;
  background: var(--ink);
  overflow: hidden;
}

.result-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.result-card:hover .result-open img {
  transform: scale(1.04);
}

.result-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 42, 33, 0.78);
  color: var(--gold-light);
  font-size: 0.9rem;
}

.result-card figcaption {
  padding: 1rem 1.2rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--emerald);
}

.ba-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.result-dialog {
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  max-width: min(92vw, 820px);
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.result-dialog::backdrop {
  background: rgba(11, 21, 18, 0.82);
}

.result-dialog img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.result-caption {
  margin: 0;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
}

.result-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(248, 247, 242, 0.92);
  color: var(--emerald);
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .results-section { padding: 4.25rem 0; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .results-grid.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-card figcaption { font-size: 0.82rem; padding: 0.75rem 0.85rem 0.9rem; }
}
