/* ==========================================================================
   SAJ Dental Clinic — "Find Us" section
   Scope: everything lives under .find-us-section (tokens included, so nothing
   leaks to :root). Desktop: contact card + map side by side (≈44 / 56).
   iPad portrait and mobile: stacked — header, card, map.
   ========================================================================== */

.find-us-section {
  /* ---- Brand ---- */
  --saj-navy: #0D3674;
  --saj-navy-deep: #0A2350;
  --saj-blue: #1677E8;
  --saj-orange: #FF641F;
  --saj-light-blue: #EAF5FF;
  --saj-white: #FFFFFF;

  --fu-text: #4A5A75;
  --fu-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --fu-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fu-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fu-radius: clamp(20px, 2vw, 30px);
  --fu-icon: clamp(52px, 4.6vw, 68px);

  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(64px, 6vw, 100px) 0 clamp(72px, 7vw, 120px);
  background:
    radial-gradient(50% 45% at 50% 22%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #EEF6FE 0%, #E3EFFB 100%);
  font-family: var(--fu-font-body);
  color: var(--fu-text);
  -webkit-font-smoothing: antialiased;
}

.find-us-section *,
.find-us-section *::before,
.find-us-section *::after {
  box-sizing: border-box;
}

.find-us-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Reveal fail-safe: GSAP owns visibility once the section is .find-us-ready.
   -------------------------------------------------------------------------- */
.find-us-section.find-us-js [data-fu-reveal] {
  visibility: hidden;
  animation: find-us-failsafe 0s linear 2.5s forwards;
}

.find-us-section.find-us-ready [data-fu-reveal] {
  animation: none;
}

@keyframes find-us-failsafe {
  to { visibility: visible; }
}

/* ==========================================================================
   1. Background
   ========================================================================== */
.find-us-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.find-us-bg-layer {
  position: absolute;
}

.find-us-bg-shape {
  display: block;
  width: 100%;
  height: 100%;
}

.find-us-bg-layer--waves {
  inset: 0;
}

.find-us-bg-layer--blob-a {
  top: -14%;
  right: -10vw;
  width: 42vw;
  height: 70%;
}

.find-us-bg-shape--blob-a {
  border-radius: 58% 42% 46% 54% / 50% 56% 44% 50%;
  background: radial-gradient(closest-side, rgba(176, 210, 242, 0.6), rgba(176, 210, 242, 0));
}

.find-us-bg-layer--blob-b {
  bottom: -20%;
  left: -12vw;
  width: 46vw;
  height: 70%;
}

.find-us-bg-shape--blob-b {
  border-radius: 44% 56% 60% 40% / 56% 44% 56% 44%;
  background: radial-gradient(closest-side, rgba(186, 216, 244, 0.55), rgba(186, 216, 244, 0));
}

.find-us-bg-layer--tooth {
  top: clamp(16px, 3vw, 56px);
  left: clamp(-30px, 1.4vw, 40px);
  width: clamp(130px, 15vw, 260px);
  aspect-ratio: 400 / 440;
  opacity: 0.9;
}

.find-us-tooth {
  overflow: visible;
  transform: rotate(-6deg);
  filter: blur(0.6px) drop-shadow(0 20px 30px rgba(22, 119, 232, 0.12));
}

/* ==========================================================================
   2. Header
   ========================================================================== */
.find-us-container {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(32px, 6vw, 80px), 1400px);
  margin: 0 auto;
}

.find-us-header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.find-us-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saj-navy);
}

.find-us-eyebrow-line {
  display: block;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--saj-orange);
}

.find-us-heading {
  margin: 22px 0 18px;
  font-family: var(--fu-font-display);
  font-size: clamp(36px, 4.6vw, 70px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--saj-navy);
}

.find-us-heading-line,
.find-us-heading-highlight {
  display: block;
  padding-bottom: 0.06em;
}

.find-us-heading-highlight {
  font-style: italic;
  font-weight: 600;
  color: var(--saj-orange);
}

.find-us-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--fu-text);
  text-wrap: balance;
}

/* ==========================================================================
   3. Content grid
   ========================================================================== */
.find-us-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
  max-width: 1320px;
  margin: clamp(32px, 3.4vw, 52px) auto 0;
}

/* ==========================================================================
   4. Contact card
   ========================================================================== */
.find-us-contact-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 48px) clamp(24px, 3.4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--fu-radius);
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(52, 140, 240, 0.55), rgba(52, 140, 240, 0) 70%),
    linear-gradient(135deg, var(--saj-navy-deep) 0%, var(--saj-navy) 42%, #1E5FC0 78%, #2D7FE2 100%);
  box-shadow:
    0 34px 70px -34px rgba(10, 35, 80, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.35);
  color: var(--saj-white);
}

/* Decorative translucent shapes (behind content) */
.find-us-contact-card::before,
.find-us-contact-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.find-us-contact-card::before {
  right: -22%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.find-us-contact-card::after {
  right: -18%;
  bottom: -26%;
  width: 78%;
  height: 70%;
  border-radius: 62% 38% 46% 54% / 58% 46% 54% 42%;
  background: linear-gradient(160deg, rgba(120, 186, 255, 0.28), rgba(120, 186, 255, 0));
}

.find-us-contact-decor {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.find-us-contact-decor svg {
  display: block;
  width: 100%;
  height: 100%;
}

.find-us-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.find-us-contact-item + .find-us-contact-item {
  margin-top: clamp(16px, 1.6vw, 22px);
}

.find-us-contact-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--fu-icon) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(16px, 2.4vw, 34px);
  padding-bottom: clamp(16px, 1.6vw, 22px);
  transition: transform 0.5s var(--fu-ease);
}

/* Thin divider, aligned with the icon column, not under the last item */
.find-us-contact-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.5s var(--fu-ease);
}

.find-us-contact-item:last-child .find-us-contact-row {
  padding-bottom: 0;
}

.find-us-contact-item:last-child .find-us-contact-row::after {
  display: none;
}

.find-us-contact-icon {
  display: block;
  width: var(--fu-icon);
  height: var(--fu-icon);
}

.find-us-contact-icon-disc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(74, 150, 240, 0.9), rgba(30, 100, 210, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 22px -10px rgba(0, 20, 60, 0.6);
  transition: transform 0.5s var(--fu-ease), filter 0.5s var(--fu-ease);
}

.find-us-contact-icon svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: var(--saj-white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.find-us-contact-content {
  min-width: 0;
  padding-top: 2px;
}

.find-us-contact-label {
  margin: 0 0 6px;
  font-family: var(--fu-font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--saj-white);
}

.find-us-contact-value {
  margin: 0;
  font-size: clamp(14.5px, 1.1vw, 16px);
  font-style: normal;
  line-height: 1.6;
  color: rgba(234, 245, 255, 0.92);
  overflow-wrap: anywhere;
}

.find-us-contact-link {
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--fu-ease), color 0.3s;
}

.find-us-contact-link:hover {
  color: var(--saj-white);
  background-size: 100% 1px;
}

.find-us-contact-link:focus-visible {
  outline: 2px solid var(--saj-orange);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .find-us-contact-row:hover {
    transform: translateX(4px);
  }

  .find-us-contact-row:hover .find-us-contact-icon-disc {
    transform: scale(1.07);
    filter: brightness(1.15);
  }

  .find-us-contact-row:hover::after {
    background: rgba(255, 255, 255, 0.34);
  }
}

/* ==========================================================================
   5. Map
   ========================================================================== */
.find-us-map-wrap {
  display: flex;
  min-width: 0;
}

.find-us-map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(6px, 0.6vw, 10px);
  border-radius: var(--fu-radius);
  background: var(--saj-white);
  box-shadow:
    0 34px 70px -36px rgba(13, 54, 116, 0.4),
    0 4px 14px rgba(13, 54, 116, 0.05);
  transition: transform 0.6s var(--fu-ease), box-shadow 0.6s var(--fu-ease);
}

@media (hover: hover) and (pointer: fine) {
  .find-us-map-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 40px 80px -36px rgba(13, 54, 116, 0.46),
      0 4px 14px rgba(13, 54, 116, 0.06);
  }
}

.find-us-map-frame {
  position: relative;
  flex: 1 1 auto;     /* grows to the contact card's height when that is taller */
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: calc(var(--fu-radius) - 8px);
  background:
    repeating-linear-gradient(0deg, rgba(13, 54, 116, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(13, 54, 116, 0.04) 0 1px, transparent 1px 48px),
    #EEF3F8;
}

.find-us-map-iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "Get Directions" pill — top right, clear of Google's own controls */
.find-us-map-link {
  position: absolute;
  top: clamp(18px, 1.6vw, 24px);
  right: clamp(18px, 1.6vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: var(--saj-white);
  box-shadow: 0 10px 24px -10px rgba(13, 54, 116, 0.45), 0 0 0 1px rgba(13, 54, 116, 0.06);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--saj-navy);
  text-decoration: none;
  transition: transform 0.4s var(--fu-ease), color 0.3s;
}

.find-us-map-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--saj-orange);
  stroke-width: 2;
  stroke-linejoin: round;
}

.find-us-map-link:hover {
  color: var(--saj-orange);
  transform: translateY(-2px);
}

.find-us-map-link:focus-visible {
  outline: 3px solid var(--saj-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* iPad landscape */
@media (max-width: 1199.98px) {
  .find-us-section {
    --fu-icon: 54px;
  }

  .find-us-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .find-us-contact-card {
    padding: 30px 28px;
  }

  .find-us-contact-row {
    column-gap: 18px;
  }

  .find-us-map-frame {
    aspect-ratio: 1.15;
  }
}

/* iPad portrait + mobile: stacked */
@media (max-width: 1023.98px) {
  .find-us-content {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }

  .find-us-contact-card {
    padding: 34px clamp(22px, 5vw, 44px);
  }

  .find-us-map-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767.98px) {
  .find-us-section {
    --fu-icon: 48px;
  }

  .find-us-eyebrow {
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  .find-us-eyebrow-line {
    width: 30px;
  }

  .find-us-heading {
    margin: 16px 0 14px;
    font-size: clamp(32px, 9.2vw, 44px);
  }

  .find-us-description {
    font-size: 15px;
  }

  .find-us-contact-card {
    padding: 26px 20px;
  }

  .find-us-contact-row {
    column-gap: 16px;
  }

  .find-us-contact-row::after {
    right: 0;
  }

  .find-us-contact-label {
    font-size: 17px;
  }

  .find-us-contact-value {
    font-size: 15px;
  }

  .find-us-map-frame {
    aspect-ratio: auto;
    height: clamp(280px, 86vw, 360px);
  }

  .find-us-map-link {
    padding: 9px 13px 9px 11px;
    font-size: 13px;
  }

  .find-us-bg-layer--tooth {
    top: 6px;
    left: -12vw;
    width: 36vw;
    opacity: 0.55;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .find-us-contact-row,
  .find-us-contact-icon-disc,
  .find-us-map-card,
  .find-us-map-link,
  .find-us-contact-link {
    transition: none;
  }

  .find-us-contact-row:hover,
  .find-us-map-card:hover,
  .find-us-map-link:hover {
    transform: none;
  }
}

/* Standalone preview page only */
body.find-us-preview {
  margin: 0;
  background: #FFFFFF;
}
