:root {
  --contact-bg: #f5f3ef;
  --contact-text: #1f1f1f;
  --contact-soft: #666666;
  --contact-accent: #a70d12;
  --yellow: #e7eb00;
  --pill-dark: rgba(14, 32, 36, 0.82);
  --content-max: 1400px;
  --page-gutter: clamp(16px, 2.5vw, 32px);
  --section-inline: max(var(--page-gutter), calc((100vw - var(--content-max)) / 2 + var(--page-gutter)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--contact-bg);
  color: var(--contact-text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.95rem var(--section-inline);
  background: rgba(245, 243, 239, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 56px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  flex-shrink: 0;
}

.top-logo {
  width: 140px;
  height: 50px;
}

.main-nav {
  flex: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 420px));
  max-width: 820px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.6rem);
  border-radius: 999px;
  padding: 0 1.2rem;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 240ms ease, background 240ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(15, 32, 36, 0.75);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.topbar.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.talk-btn {
  flex-shrink: 0;
  width: 196px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d0d0d;
  background: #ffffff;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.talk-btn:hover,
.talk-btn:focus-visible {
  background: var(--yellow);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.14);
}

.contact-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: 3rem var(--section-inline);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.54) 100%),
    url("./img/31.jpg") center center / cover no-repeat;
}

.hero-copy,
.hero-overlay {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 3rem;
  color: #ffffff;
}

.hero-copy h1,
.hero-overlay h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: rgba(255, 233, 172, 0.96);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy span {
  display: inline-block;
  width: 42px;
  height: 3px;
  margin: 1.2rem 0 1rem;
  background: var(--contact-accent);
}

.hero-copy p,
.hero-overlay p {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  margin-top: 1.2rem;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.social-rail {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.social-rail a {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffe900;
  color: var(--contact-accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.section-pad {
  padding: 4rem var(--section-inline) 5rem;
}

.section-pad > * {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.92fr);
  gap: 2.2rem;
  align-items: stretch;
}

.contact-info-panel {
  position: relative;
  border-radius: 0;
  min-height: 640px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    url("./img/12.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.contact-card {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  padding: 2rem 2rem 2.2rem;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.12);
}

.contact-card h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--contact-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-line {
  margin: 1.25rem 0 1.1rem;
  color: var(--contact-accent);
  font-weight: 500;
}

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

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #505050;
  line-height: 1.6;
}

.contact-list i {
  margin-top: 0.3rem;
  color: #1f1f1f;
}

.info-socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.info-socials a {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #1e1e1e;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.appointment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.7rem;
  min-width: 168px;
  height: 46px;
  background: var(--contact-accent);
  color: #ffffff;
  font-weight: 600;
}

.form-panel {
  display: flex;
}

.form-shell {
  width: 100%;
  background: #ffffff;
  padding: 2.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.form-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 54px;
  background: #bb0000;
  color: #ffffff;
  font-weight: 500;
}

.consult-form {
  display: grid;
  gap: 1.35rem;
}

.consult-form label {
  display: grid;
  gap: 0.6rem;
}

.consult-form span {
  font-size: 1.05rem;
  font-weight: 700;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  border: 1px solid #ededed;
  background: #ffffff;
  padding: 1rem 1rem;
  font: inherit;
  color: #111111;
}

.consult-form textarea {
  min-height: 128px;
  resize: vertical;
}

.consult-form button {
  width: 150px;
  height: 48px;
  border: 0;
  background: #171717;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.footer {
  background: #1f1f1f;
  padding: 80px var(--section-inline);
  color: #ffffff;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer .f-col img {
  width: 160px;
  margin-bottom: 0.9rem;
  filter: brightness(0) invert(1);
}

.footer .f-col h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.footer h4 {
  margin-bottom: 10px;
  font-size: 22px;
}

.footer p {
  font-size: 16px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.footer p:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .appointment-btn:hover,
  .consult-form button:hover,
  .info-socials a:hover {
    transform: translateY(-3px);
  }

  .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 1180px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    min-height: 520px;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.8rem;
    border-radius: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      max-height 260ms ease,
      opacity 220ms ease,
      transform 260ms ease;
  }

  .topbar.menu-open .main-nav {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .talk-btn {
    display: none;
  }

  .topbar {
    padding: 0.85rem 1rem;
  }

  .contact-hero {
    min-height: 370px;
    padding: 2rem 1.2rem 2.2rem 1.2rem;
  }

  .hero-overlay {
    padding-left: 0;
  }

  .social-rail {
    left: 0.75rem;
  }

  .section-pad {
    padding: 3rem 1.2rem 4rem;
  }

  .contact-card {
    position: static;
    transform: none;
    margin: 1.2rem;
  }

  .form-shell {
    padding: 1.4rem;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .online-pill,
  .consult-form button {
    width: 100%;
  }

  .footer {
    padding: 56px 24px 32px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .brand-pill {
    width: 144px;
    height: 52px;
    padding: 0 0.45rem;
  }

  .top-logo {
    width: 118px;
    height: 42px;
  }

  .main-nav {
    left: 0.85rem;
    right: 0.85rem;
    padding: 0.65rem;
    border-radius: 14px;
  }

  .main-nav a {
    font-size: 0.95rem;
    white-space: normal;
  }

  .contact-hero {
    min-height: 320px;
  }

  .social-rail {
    top: auto;
    left: 1rem;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
  }

  .hero-copy h1,
  .hero-overlay h1 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .hero-copy p,
  .hero-overlay p {
    font-size: 1rem;
  }

  .contact-card {
    margin: 0.8rem;
    padding: 1.4rem;
  }

  .contact-card h2 {
    font-size: 1.7rem;
  }

  .form-shell {
    padding: 1.1rem;
  }

  .footer {
    padding: 44px 16px 24px;
  }

  .footer h4 {
    font-size: 1.1rem;
  }

  .footer p,
  .copyright {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .appointment-btn,
  .consult-form button,
  .info-socials a,
  .main-nav {
    transition: none;
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
