/* =========================================
   Contact Page - Dr. Harrasi Language School
   assets/css/contact-page.css
   ========================================= */

.contact-page {
  background: #ffffff;
}

.contact-page :where(a) {
  -webkit-tap-highlight-color: transparent;
}

/* Hero */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 7vw, 112px) 0 clamp(58px, 6vw, 92px);
  background: #061626;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-hero::before {
  display: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #12385b;
  background: #f1fbff;
  border: 1px solid rgba(142, 216, 232, .60);
  font-size: 14px;
  font-weight: 950;
}

.contact-kicker::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ed8e8;
  box-shadow: 0 0 0 6px rgba(142, 216, 232, .20);
}

.contact-hero h1 {
  margin: 24px 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -1.1px;
}

.contact-hero p {
  max-width: 720px;
  margin: 0;
  color: #526d86;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2.1;
  font-weight: 700;
}

.contact-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact-hero-actions .btn {
  min-height: 56px;
  border-radius: 999px;
  padding-inline: 26px;
}

/* Dr. Harrasi Links Box */
.drh-links-section {
  padding: clamp(52px, 6vw, 84px) 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(142, 216, 232, .14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.drh-links,
.drh-links * {
  box-sizing: border-box;
}

.drh-links {
  --text: #111827;
  --muted: #5f6f82;
  --stroke: rgba(15, 35, 55, 0.10);
  --shadow: 0 22px 55px rgba(10, 25, 40, 0.14);
  --shadow-hover: 0 26px 70px rgba(10, 25, 40, 0.18);
  --icon-size: 38px;
  --icon-svg: 21px;
  --stroke-width: 2;
  --pulse-duration: 1400ms;
  --hover-scale: 1.04;
  --ig: #e4405f;
  --yt: #ff0033;
  --wa: #25d366;
  --mail: #0b84ff;
  --phone: #0b5f8a;
  --bale: #00a3e0;

  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-family: inherit;
  direction: ltr;
}

.drh-links-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px 24px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(142, 216, 232, .20), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.drh-links-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(142, 216, 232, .13);
  pointer-events: none;
}

.drh-links-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 25, 40, .10);
}

.drh-links-title {
  margin: 8px 0 4px;
  color: #172235;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 900;
}

.drh-links-tag {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.drh-links-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .drh-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.drh-link-btn {
  --accent: #12a18e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px rgba(10, 25, 40, .08);
  transition: transform .18s ease, box-shadow .22s cubic-bezier(.2,.7,.2,1), border-color .22s ease;
}

.drh-link-btn:hover,
.drh-link-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(142, 216, 232, .55);
}

.drh-link-icon {
  --sw: var(--stroke-width);
  position: relative;
  overflow: hidden;
  flex: 0 0 var(--icon-size);
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: #fff;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.08), 0 8px 20px rgba(10,25,40,.08);
}

.drh-link-icon svg {
  width: var(--icon-svg);
  height: var(--icon-svg);
  display: block;
  transform-origin: center;
  transition: transform .25s ease;
}

.drh-link-icon .sw {
  stroke-width: var(--sw);
}

.drh-link-icon::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -30%;
  width: 160%;
  height: 130%;
  transform: translateX(-120%) rotate(25deg);
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.42) 45%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  opacity: .9;
}

.drh-link-btn:hover .drh-link-icon::before {
  animation: drh-shine .9s ease;
}

@keyframes drh-shine {
  to { transform: translateX(120%) rotate(25deg); }
}

.ring-pulse:hover .drh-link-icon svg {
  transform: scale(var(--hover-scale));
}

.ring-pulse .drh-link-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transform: scale(.86);
}

.ring-pulse:hover .drh-link-icon::after {
  animation: drh-pulse var(--pulse-duration) ease-out;
}

@keyframes drh-pulse {
  0% { opacity: .55; transform: scale(.88); }
  100% { opacity: 0; transform: scale(1.28); }
}

.drh-link-btn.ig { --accent: var(--ig); }
.drh-link-btn.yt { --accent: var(--yt); }
.drh-link-btn.wa { --accent: var(--wa); }
.drh-link-btn.mail { --accent: var(--mail); }
.drh-link-btn.phone { --accent: var(--phone); }
.drh-link-btn.bale { --accent: var(--bale); }

.drh-link-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Contact info cards */
.contact-info-section {
  padding: clamp(56px, 6vw, 88px) 0;
  background: #fff;
}

.contact-section-head {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.contact-section-head .eyebrow {
  margin-inline: auto;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.contact-info-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(142, 216, 232, .16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbfd);
  border: 1px solid rgba(151, 200, 220, .42);
  box-shadow: 0 20px 54px rgba(7, 24, 39, .07);
  text-align: center;
}

.contact-info-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #12385b;
  background: #eefaff;
  border: 1px solid rgba(142, 216, 232, .60);
  font-size: 22px;
  font-weight: 950;
}

.contact-info-card h3 {
  margin: 0 0 14px;
  color: #102236;
  font-size: 22px;
  font-weight: 950;
}

.contact-info-card p,
.contact-info-card a {
  display: block;
  margin: 8px 0 0;
  color: #526d86;
  text-decoration: none;
  line-height: 1.8;
  font-weight: 800;
  word-break: break-word;
}

.contact-info-card a:hover {
  color: #123f66;
}

/* Map section */
.contact-map-section {
  padding: clamp(58px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 10% 16%, rgba(142, 216, 232, .18), transparent 34%),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.contact-map-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.contact-map-copy h2 {
  margin: 18px 0;
  color: #102236;
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: 1.45;
  font-weight: 950;
}

.contact-map-copy p {
  margin: 0 0 28px;
  color: #526d86;
  line-height: 2.1;
  font-weight: 750;
}

.contact-map-frame {
  overflow: hidden;
  height: 360px;
  border-radius: 34px;
  border: 1px solid rgba(151, 200, 220, .48);
  box-shadow: 0 26px 70px rgba(7, 24, 39, .10);
  background: #eefaff;
}

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

.contact-form-section {
  padding-top: clamp(58px, 7vw, 92px);
}

/* Responsive */
@media (max-width: 1050px) {
  .contact-info-grid,
  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-copy {
    text-align: center;
  }

  .contact-map-copy .eyebrow {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 54px 0 64px;
  }

  .contact-hero h1 {
    font-size: 34px;
  }

  .contact-hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .drh-links-section {
    padding: 42px 0;
  }

  .drh-links-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .drh-links-logo {
    width: 72px;
    height: 72px;
  }

  .drh-links-title {
    font-size: 23px;
  }

  .drh-link-btn {
    min-height: 58px;
  }

  .contact-info-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .contact-map-frame {
    height: 290px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drh-links *,
  .drh-links *::before,
  .drh-links *::after {
    animation: none !important;
    transition: none !important;
  }
}
