/* =========================================================
   CONTACT PAGE – centered, clean (no divider lines)
   Inspired by goldenretriever.studio/contact
   ========================================================= */

.contact-page{
  /* slightly closer to the menu */
  padding: 140px 40px 90px;
  background: var(--gryt-orange);
}

.contact-wrap{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.contact-kicker{
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 18px;
}

.contact-hero{
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
  font-weight: 300;
}

.contact-hero a{
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: border-color .2s ease, opacity .2s ease;
}
.contact-hero a:hover{
  border-color: var(--gryt-accent);
  opacity: 1;
}

.contact-sections{
  margin-top: 24px;
  display: grid;
  gap: 22px;
  justify-items: center;
}

/* no lines, just spacing */
.contact-section{
  padding-top: 0;
  border-top: none;
}

.contact-section h2{
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}

.contact-section .contact-lines{
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.98;
}

.contact-section .contact-lines a{
  /* match the rest of the site: no "always-on" underline */
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
}
.contact-section .contact-lines a:hover{
  text-decoration: none;
}

.contact-subhead{
  margin-top: 26px;
  font-size: 20px;
  opacity: 0.95;
}

.team-list{
  margin-top: 10px;
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
}

.team-card{
  padding-top: 0;
  border-top: none;
}

.team-card h3{
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 8px;
}

.team-meta{
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.98;
}

/* IMPORTANT: Fix mobile header overlay trick on pages without hero (contact) */
body.contact-body .header{
  margin-bottom: 0 !important;
}
@media (max-width: 900px){
  body.contact-body .header{
    position: relative !important;
    padding: 20px 20px 0 !important;
  }
}

/* Mobile */
@media (max-width: 900px){
  .contact-page{ padding: 140px 20px 70px; }
}
@media (max-width: 768px){
  /* v64: mobile – less empty space between menu and content */
  /* v75: even less empty space between logo/header and "Work with us" */
  .contact-page{ padding: 28px 20px 70px; }
  .contact-hero{ font-size: 42px; }
  .contact-section h2{ font-size: 22px; }
  .contact-section .contact-lines, .team-meta{ font-size: 18px; }
}

/* v64: CONTACT – swap colors only on this page
   background = teal, underline = orange */
body.contact-body .contact-page{
  background: var(--teal);
}
body.contact-body{ background: var(--teal); }
body.contact-body .section-title{
  display: inline-block; /* underline follows text width */
}
body.contact-body .section-title::after{
  /* v73: underline uses the same strong orange as Services background */
  background: #D36327;
  left: 0;
  width: 100%;
  box-shadow: none;
  filter: none;
}

/* Kill any other underline implementations on contact (prevents ghost/dark line) */
body.contact-body .contact-section h2::after{ display: none !important; }


/* --- Tweaks (v32) --- */
.contact-section h2,
.contact-section .contact-subhead{
  font-weight: 800;
}

.contact-section h2{
  font-size: 32px;
}

/* Keep underline teal, but give it presence */
.contact-section h2::after{
  height: 3px;
}

/* Team typography: name larger than details */
.team-card{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 18px 0;
}

.team-card h3{
  /* Names should match the size of the contact lines above */
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 6px;
}

/* role + contact */
.team-role{
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 10px;
}

.team-meta{
  /* Two lines under the name slightly smaller than the names */
  font-size: 16px;
  line-height: 1.6;
}

.team-meta a{
  font-size: inherit;
  opacity: 0.92;
}
.team-meta a:hover{ opacity: 1; }

/* Remove any default underline styling that can appear on some browsers */
body.contact-body .contact-lines a,
body.contact-body .team-meta a{
  text-decoration: none;
}

/* Reduce overall width a touch */
.contact-container{
  max-width: 920px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Headings: bigger + bold + teal underline */
.section-title{
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 220px;
  height: 3px;
  background: var(--gryt-accent);
}

/* v83: Contact – make content under headings larger + bold (reverse hierarchy) */
body.contact-body .contact-section .contact-lines{
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.25;
  font-weight: 800;
  opacity: 1;
}
body.contact-body .contact-section .contact-lines a{
  font-weight: 800;
  border-bottom-width: 2px;
}

body.contact-body .team-meta{
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 800;
  opacity: 1;
}

/* v85: Contact – headings smaller, team section content much larger */
body.contact-body .section-title{
  /* smaller headings on contact */
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  padding-bottom: 12px !important;
  margin-bottom: 14px !important;
}
body.contact-body .section-title::after{
  height: 3px !important;
  width: 180px !important;
}

/* The team: make content under heading significantly larger */
body.contact-body .team-card h3{
  font-size: clamp(28px, 2.8vw, 38px) !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}
body.contact-body .team-meta{
  /* same size as the big contact text above, but slightly smaller than the name */
  font-size: clamp(22px, 2.2vw, 28px) !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}

/* v86: Contact – a bit more breathing room between the different sections */
body.contact-body .contact-sections{
  gap: 36px !important;
}
