/* ==========================================================================
   AROZEN CARE — CONTACT PAGE (contact.html)
   Kept in its own file per spec. Reuses global tokens/utilities from
   home.css (:root vars, .container, .text-gradient, the fadeUpIn
   keyframe, and the global prefers-reduced-motion reset) — this file
   only adds page-specific rules, same pattern as about.css/blogs.css.
   Mobile-first; desktop switch at 900px, matching the breakpoint used
   site-wide.
   Section map: S1. Reach Out
   ========================================================================== */

/* --------------------------------------------------------------------------
   CONTACT — S1: REACH OUT
   Premium, text-focused hero — no image. Centered on every breakpoint
   (a welcoming, magazine-style intro, not paired with left-aligned body
   content below it). Reveals on load via fadeUpIn (reused from
   home.css), staggered per element.
   -------------------------------------------------------------------------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 4.5rem;
  background: var(--color-bg);
  text-align: center;
}

/* Subtle organic background fade — two soft, asymmetric blobs with a
   slow drift; global prefers-reduced-motion handling in home.css
   already covers this animation. */
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 6%, rgba(38, 59, 143, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 92% 88%, rgba(91, 199, 176, 0.09) 0%, transparent 70%);
  animation: contactHeroDrift 18s ease-in-out infinite alternate;
}

@keyframes contactHeroDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-14px, 10px) scale(1.04); }
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
}

.contact-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUpIn 0.7s var(--ease) both;
}

.contact-hero-heading {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.08s both;
}

.contact-hero-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 2.25rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.16s both;
}

/* Contact details — phone (a real tel: link) and service area (plain
   text, not a link). Same rounded-icon language as .footer-contact-icon. */
.contact-hero-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.24s both;
}

.contact-hero-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.contact-hero-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(38, 59, 143, 0.08);
  color: var(--color-primary);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-hero-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-hero-detail:hover .contact-hero-detail-icon,
.contact-hero-detail:focus-visible .contact-hero-detail-icon {
  background: rgba(38, 59, 143, 0.16);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.contact-hero-detail-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-hero-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-hero-detail-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Premium CTA — placeholder for the future Oracle APEX form; the arrow
   nudges right on hover/focus, same interaction language used for
   "Explore Service" / "Read Article" links elsewhere on the site. */
.contact-hero-cta {
  opacity: 0;
  /* fadeIn (opacity-only), not fadeUpIn — fadeUpIn also animates
     transform, and a `both`-fill animation's transform keeps
     overriding any other non-!important transform declaration on the
     same element (including :hover), which would otherwise silently
     break the premium hover lift from the global .btn-primary:hover
     rule in home.css. */
  animation: fadeIn 0.6s var(--ease) 0.32s both;
}

.contact-hero-cta span {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s var(--ease);
}

.contact-hero-cta:hover span,
.contact-hero-cta:focus-visible span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CONTACT — RESPONSIVE (900px+, matching the breakpoint used site-wide)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .contact-hero {
    padding-block: 5.5rem 6rem;
  }

  .contact-hero-details {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
  }
}

/* CONTACT — Location Icon Hover */
.contact-hero-detail-icon:hover {
  background: #e8edff;
  color: #29439b;
  transform: scale(1.08);
  transition: all 0.25s ease;
}

/* ==========================================================================
   CONTACT HERO — PREMIUM ENHANCEMENTS
   Layered on top of the S1 rules above — reuses the existing
   .contact-hero-* classes rather than introducing new structure, per
   spec. Two new decorative-only elements are added in contact.html:
   .contact-hero-connector (a short line between the two info cards,
   desktop only) and .contact-hero-trust (a small trust line under the
   CTA). Everything else here restyles existing elements.
   ========================================================================== */

/* Stronger visual hierarchy: a short gradient accent under the H1,
   reinforcing the heading as the section's focal point without
   changing its centered alignment. */
.contact-hero-heading {
  position: relative;
  padding-bottom: 1.1rem;
}

.contact-hero-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
}

/* Additional soft, blurred glow shapes layered behind the existing
   .contact-hero-bg radial gradients — a more tangible "blurred
   decorative shape" feel, still very low-opacity and fully contained
   by .contact-hero's overflow: hidden. */
.contact-hero-bg::before,
.contact-hero-bg::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.contact-hero-bg::before {
  top: -60px;
  left: 6%;
  background: rgba(38, 59, 143, 0.14);
}

.contact-hero-bg::after {
  bottom: -80px;
  right: 8%;
  background: rgba(91, 199, 176, 0.16);
}

/* Premium information cards — rounded corners, subtle border, soft
   shadow, light background. Hover is intentionally scoped to the icon
   badge only (see the unified rule above); the card itself never
   changes on hover, keeping the interaction subtle and focused. The
   existing align-items: center on .contact-hero-details (S1 rule
   above) already keeps these width-capped cards centered in both the
   stacked mobile layout and the row-based desktop layout, so it isn't
   restated here. */
.contact-hero-detail {
  gap: 0.9rem;
  padding: 1.1rem 1.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 320px;
}

/* Small decorative connector between the two cards — desktop only, so
   mobile stays a clean vertical stack with no stray decoration. */
.contact-hero-connector {
  display: none;
}

/* Small trust line beneath the CTA — subtle, no icon */
.contact-hero-trust {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.4s both;
}

/* Entrance state driven by contact.js — the connector line draws in
   from zero width once the hero has settled, a slightly richer effect
   than the plain on-load fade used by the rest of this section.
   Respects prefers-reduced-motion via the global reset in home.css
   (transition-duration is neutralized there), so it still ends in the
   correct final state, just without the animated draw. */
@media (min-width: 900px) {
  /* Widened so the two 320px-capped cards plus the connector plus the
     row gap all fit without flexbox's default flex-shrink squeezing
     them — .contact-hero-inner stays narrower on mobile/tablet where
     the cards stack in a column and don't need the extra width. */
  .contact-hero-inner {
    max-width: 820px;
  }

  .contact-hero-detail {
    flex-shrink: 0;
  }

  .contact-hero-connector {
    display: block;
    flex-shrink: 0;
    align-self: center;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease) 0.3s;
  }

  .contact-hero.is-loaded .contact-hero-connector {
    width: 56px;
  }
}

/* ===== CONTACT SECTION 2 — FIND US ===== */
/* Mobile: location panel stacked above the map (source order already
   places the panel first, so no CSS reordering is needed). Desktop
   (900px+): a two-column grid, panel on the left, map on the right.
   Reuses the same card language as the S1 info cards (white bg,
   border, radius-md, shadow-sm) for visual consistency. Scroll-
   revealed together as a block — see contact.js. */
.contact-find-us {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem 4rem;
  background: var(--color-white);
}

.contact-find-us-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(38, 59, 143, 0.05) 0%, transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(91, 199, 176, 0.06) 0%, transparent 42%);
}

.contact-find-us-inner {
  position: relative;
  z-index: 1;
}

.contact-find-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin-inline: auto;
}

.contact-find-us-panel,
.contact-find-us-map {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.contact-find-us-grid.is-visible .contact-find-us-panel,
.contact-find-us-grid.is-visible .contact-find-us-map {
  opacity: 1;
  transform: translateY(0);
}

.contact-find-us-grid.is-visible .contact-find-us-map {
  transition-delay: 0.1s;
}

.contact-find-us-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-find-us-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin: 0 0 0.75rem;
}

.contact-find-us-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.contact-find-us-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

.contact-find-us-details {
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-find-us-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.contact-find-us-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-find-us-detail-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-find-us-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-find-us-directions {
  margin-top: auto;
}

.contact-find-us-directions span {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s var(--ease);
}

.contact-find-us-directions:hover span,
.contact-find-us-directions:focus-visible span {
  transform: translateX(4px);
}

/* Responsive map container: fixed aspect ratio on mobile (prevents
   layout shift while the iframe loads); fills the grid row's height on
   desktop instead, so it visually balances against the panel. */
.contact-find-us-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 900px) {
  .contact-find-us {
    padding-block: 5rem 5.5rem;
  }

  .contact-find-us-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    gap: 2.5rem;
  }

  .contact-find-us-panel {
    align-items: flex-start;
    text-align: left;
  }

  .contact-find-us-map {
    aspect-ratio: auto;
    min-height: 320px;
  }
}