/* =========================================================
   seals.css - "Our Seals" section (enamel-pin badges, inline SVG)
   ========================================================= */
.seals-section {
  --s-teal: #5f8e98;
  --s-teal-deep: #1f3a41;
  --s-orange: #d99a4f;
  --s-cream: #fff8ec;
  --s-ink: #1b2a30;
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at 12% 18%, rgba(230, 176, 114, .22), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(136, 176, 184, .30), transparent 45%),
    #fff;
  position: relative;
}
.seals-section::before {          /* fine dot texture */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(31, 58, 65, .09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}
.seals-section .container { position: relative; }

.seals-head { text-align: center; margin-bottom: 56px; }
.seals-eyebrow {
  display: inline-block;
  font: 600 13px/1 "Poppins", sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--s-orange);
  margin-bottom: 14px;
}
.seals-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  color: var(--s-ink);
  margin: 0;
}
.seals-title em { font-style: normal; color: var(--s-teal); font-weight: 700; }
.seals-rule {
  width: 84px; height: 4px; margin: 20px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--s-teal), var(--s-orange));
}

.seals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 991px) { .seals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .seals-grid { gap: 14px; } .seals-section { padding: 60px 0 50px; } }

/* ----- each seal sits in its own card ----- */
.seal-card {
  background: #fff;
  border-radius: 24px;
  padding: 30px 20px 26px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(27, 42, 48, .08), 0 0 0 1px rgba(31, 58, 65, .06);
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s;
  opacity: 0;
  transform: translateY(26px);
}
.seals-section.is-in .seal-card { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1), box-shadow .45s; }
.seals-section.is-in .seal-card:nth-child(2) { transition-delay: .12s; }
.seals-section.is-in .seal-card:nth-child(3) { transition-delay: .24s; }
.seals-section.is-in .seal-card:nth-child(4) { transition-delay: .36s; }
.seal-card:hover { transform: translateY(-8px) !important; box-shadow: 0 22px 44px rgba(27, 42, 48, .16), 0 0 0 1px rgba(31, 58, 65, .06); transition-delay: 0s !important; }

.seal-card::after {               /* light sweep on hover */
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg);
  transition: left .9s ease;
  pointer-events: none;
}
.seal-card:hover::after { left: 130%; }

.seal-svg {
  width: 100%; max-width: 190px; height: auto; display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 14px rgba(27, 42, 48, .22));
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.seal-card:hover .seal-svg { transform: rotate(-6deg) scale(1.05); }

.seal-svg text { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: .1em; }
.seal-svg .num { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

.seal-card h3 {
  font: 700 18px/1.25 "Poppins", sans-serif;
  color: var(--s-ink);
  margin: 0 0 6px;
}
.seal-card p {
  font: 400 14px/1.6 "Poppins", sans-serif;
  color: #5d6b70;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .seal-card { opacity: 1; transform: none; }
}

/* =========================================================================
   MOBILE: title + all 4 seals fit in ONE screen (2x2 grid, no scrolling)
   ========================================================================= */
@media (max-width: 767px) {
  .seals-section {
    padding: 18px 0 16px;
    min-height: calc(100vh - 90px);
    min-height: calc(100svh - 90px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .seals-section .container { padding: 0 14px; }
  .seals-head { margin-bottom: 14px; }
  .seals-eyebrow { font-size: 11px; margin-bottom: 8px; }
  .seals-title { font-size: 25px; }
  .seals-rule { margin-top: 10px; width: 64px; height: 3px; }

  .seals-grid { gap: 10px; }
  .seal-card { padding: 14px 8px 5px; border-radius: 18px; }
  .seal-svg { max-width: clamp(78px, 24vw, 104px); margin-bottom: 8px; }
  .seal-card h3 { font-size: 14.5px; margin-bottom: 3px; }
  .seal-card p { font-size: 12px; line-height: 1.4; }
}
/* phones with ~700px or less of visible height (Chrome/Safari with their bars): the section now FILLS the screen
   (above the floating "Make Appointment" widget); type and seals scale with the screen height and the
   cards stretch evenly, with the text centered inside each card */
@media (max-width: 767px) and (max-height: 700px) {
  .seals-section {
    padding: 10px 0 64px;
    min-height: calc(100vh - 90px);
    min-height: calc(100svh - 90px);
    justify-content: flex-start;
  }
  .seals-section .container { padding: 0 12px; flex: 1; display: flex; flex-direction: column; }
  .seals-head { margin-bottom: 10px; }
  .seals-eyebrow { font-size: 10.5px; margin-bottom: 6px; letter-spacing: .2em; }
  .seals-title { font-size: 22px; line-height: 1.1; }
  .seals-rule { margin-top: 8px; height: 3px; width: 56px; }
  .seals-grid { gap: 8px; flex: 1; grid-auto-rows: 1fr; }
  .seal-card {
    padding: 16px 7px 2px; border-radius: 16px;      /* less space at the bottom, a bit more on top */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  .seal-svg { max-width: clamp(76px, 13vh, 104px); margin-bottom: 5px; }
  .seal-card h3 { font-size: clamp(13px, 2.2vh, 15px); line-height: 1.15; margin: 0 0 3px; letter-spacing: -.01em; }
  .seal-card p { display: block; font-size: clamp(11px, 1.9vh, 13px); line-height: 1.32; }
}
@media (max-width: 767px) and (min-height: 701px) {
  .seal-svg { max-width: 92px; }
  .seal-card p { font-size: 11.5px; }
}

/* Touch screens / phones: no "hover" effects. After a tap the browser keeps :hover on that card, which
   lifted it by 8px and made it look crooked next to its neighbour. Cards stay perfectly aligned. */
@media (hover: none), (max-width: 767px) {
  .seal-card,
  .seals-section.is-in .seal-card,
  .seal-card:hover { transform: none !important; }
  .seals-section.is-in .seal-card { transition: opacity .8s ease; }
  .seal-card:hover { box-shadow: 0 6px 20px rgba(27, 42, 48, .08), 0 0 0 1px rgba(31, 58, 65, .06); }
  .seal-card:hover::after { left: -80%; }
  .seal-card:hover .seal-svg { transform: none; }
}
@media (max-width: 767px) and (max-height: 640px) {
  .seals-section { padding-bottom: 76px; }
}
@media (max-width: 767px) and (max-height: 640px) {
  .seal-svg { max-width: 68px; margin-bottom: 3px; }
  .seal-card { padding-top: 10px; }
  .seal-card p { font-size: 10.5px; line-height: 1.25; }
}
