/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr-white: #FFFFFF;
  --clr-navy: #00173C;
  --clr-red: #B40000;
  --clr-black: #0A0A0A;
  --clr-gray: #5A6473;
  --clr-light: #F5F7FA;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--clr-black);
  background: var(--clr-white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  position: relative;
  background: var(--clr-navy);
  padding: 90px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.page-banner__lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.page-banner__container { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.page-banner__label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(180, 0, 0, 0.16); color: var(--clr-red);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 18px;
}

.page-banner__title { font-size: 42px; font-weight: 700; color: var(--clr-white); margin-bottom: 16px; }

.page-banner__crumb { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.page-banner__crumb a { color: rgba(255, 255, 255, 0.85); transition: color 0.3s var(--ease); }
.page-banner__crumb a:hover { color: var(--clr-red); }
.page-banner__crumb i { font-size: 10px; opacity: 0.6; }
.page-banner__crumb span { color: var(--clr-red); font-weight: 600; }

.page-banner__gear { position: absolute; color: rgba(255, 255, 255, 0.06); z-index: 0; pointer-events: none; }
.page-banner__gear--1 { font-size: 160px; top: -40px; left: -40px; animation: spin-slow 24s linear infinite; }
.page-banner__gear--2 { font-size: 110px; bottom: -30px; right: -20px; animation: spin-slow-rev 20s linear infinite; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* ============================================================
   CONTACT INFO CARDS
   ============================================================ */
.contact-info {
  padding: 0 24px;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.contact-info__container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.contact-info__card {
  background: var(--clr-white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 23, 60, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.contact-info__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 55px rgba(0, 23, 60, 0.18);
}

.contact-info__card--active {
  background: var(--clr-navy);
}

.contact-info__icon {
  width: 66px; height: 66px; margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(180, 0, 0, 0.08);
  color: var(--clr-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.contact-info__card--active .contact-info__icon {
  background: var(--clr-red);
  color: var(--clr-white);
}

.contact-info__card:hover .contact-info__icon { transform: rotate(-10deg) scale(1.06); }

.contact-info__card h3 { font-size: 17px; font-weight: 600; color: var(--clr-navy); margin-bottom: 12px; }
.contact-info__card--active h3 { color: var(--clr-white); }

.contact-info__card p { font-size: 14px; line-height: 1.7; color: var(--clr-gray); }
.contact-info__card--active p { color: rgba(255, 255, 255, 0.8); }

.contact-info__card p a { color: inherit; transition: color 0.3s var(--ease); }
.contact-info__card:not(.contact-info__card--active) p a:hover { color: var(--clr-red); }
.contact-info__card--active p a:hover { color: var(--clr-red); }

.contact-info__person {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   FORM + SIDE PANEL
   ============================================================ */
.contact-main { padding: 130px 24px 100px; background: var(--clr-white); }

.contact-main__container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ---- Form ---- */
.contact-form__label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(180, 0, 0, 0.08); color: var(--clr-red);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 18px;
}

.contact-form__title { font-size: 30px; font-weight: 700; color: var(--clr-navy); margin-bottom: 14px; line-height: 1.3; }
.contact-form__text { font-size: 14.5px; line-height: 1.8; color: var(--clr-gray); margin-bottom: 34px; max-width: 480px; }

.contact-form__form { display: flex; flex-direction: column; gap: 18px; }

.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form__group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--clr-light);
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-form__group i {
  color: var(--clr-red);
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-form__group input,
.contact-form__group select {
  width: 100%;
  height: 54px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--clr-black);
  outline: none;
}

.contact-form__group select {
  appearance: none;
  cursor: pointer;
  color: var(--clr-gray);
}

.contact-form__group select:valid {
  color: var(--clr-black);
}

.contact-form__group:focus-within {
  border-color: var(--clr-red);
  background: var(--clr-white);
  box-shadow: 0 8px 20px rgba(180, 0, 0, 0.08);
}

.contact-form__group--textarea {
  align-items: flex-start;
  padding-top: 16px;
}

.contact-form__group--textarea i { margin-top: 3px; }

.contact-form__group--textarea textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  resize: vertical;
  min-height: 120px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--clr-black);
}

::placeholder { color: #9CA3AF; }

.contact-form__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-red);
  color: var(--clr-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 16px 34px;
  border: none;
  border-radius: 4px;
  margin-top: 6px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-form__btn i { transition: transform 0.35s var(--ease); }

.contact-form__btn:hover {
  background: var(--clr-navy);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 23, 60, 0.25);
}

.contact-form__btn:hover i { transform: translate(4px, -3px); }

.contact-form__success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #157347;
  background: #e9f7ef;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s var(--ease), height 0.4s var(--ease), padding 0.4s var(--ease), margin 0.4s var(--ease);
}

.contact-form__success.is-visible {
  opacity: 1;
  height: auto;
  padding: 12px 18px;
  margin-top: 4px;
}

/* ---- Side panel ---- */
.contact-side { display: flex; flex-direction: column; gap: 24px; }

.contact-side__card {
  background: var(--clr-light);
  border-radius: 10px;
  padding: 30px 28px;
}

.contact-side__card h3 { font-size: 16.5px; font-weight: 600; color: var(--clr-navy); margin-bottom: 18px; }

.contact-side__hours { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.contact-side__hours li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--clr-gray);
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 23, 60, 0.12);
}

.contact-side__hours li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-side__hours li span:first-child { color: var(--clr-navy); font-weight: 500; }

.contact-side__socials { display: flex; gap: 12px; }

.contact-side__socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--clr-white);
  color: var(--clr-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-side__socials a:hover {
  background: var(--clr-red);
  color: var(--clr-white);
  transform: translateY(-4px);
}

.contact-side__card--cta {
  background: var(--clr-navy);
  text-align: center;
}

.contact-side__card--cta h3 { color: var(--clr-white); }

.contact-side__cta-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--clr-red);
  color: var(--clr-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  animation: ring 2.4s ease-in-out infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(18deg); }
  20% { transform: rotate(-14deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(0deg); }
}

.contact-side__card--cta a {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-red);
  transition: color 0.3s var(--ease);
}

.contact-side__card--cta a:hover { color: var(--clr-white); }

/* ============================================================
   MAP
   ============================================================ */
.contact-map {
  width: 100%;
  height: 420px;
  filter: grayscale(15%);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}

.reveal--left { transform: translateX(-60px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-banner__gear, .contact-side__cta-icon { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .contact-main__container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 900px) {
  .contact-info__container { grid-template-columns: 1fr; }
  .contact-info { margin-top: -40px; }
}

@media (max-width: 767px) {
  .page-banner__title { font-size: 32px; }
  .contact-main { padding: 90px 20px 80px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-map { height: 320px; }
}

@media (max-width: 640px) {
  .page-banner { padding: 70px 20px 60px; }
  .page-banner__title { font-size: 27px; }
  .contact-info { padding: 0 18px; }
  .contact-info__card { padding: 32px 22px; }
  .contact-form__title { font-size: 24px; }
  .contact-form__group input,
  .contact-form__group select { height: 50px; }
  .contact-form__btn { width: 100%; justify-content: center; }
}