/* ==========================================================
   CONTACT PAGE
   ========================================================== */

.contact-page {
  --contact-panel: #e8f0ec;
  --contact-soft-bg: #f5f8f6;
  --contact-card: #f8faf9;
  --contact-text: #414945;
  --contact-soft: #66716b;
  --contact-accent: #718193;
  --contact-line: rgba(55, 70, 62, 0.13);
}

.contact-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}


/* ==========================================================
   HERO
   ========================================================== */

.contact-hero {
  padding: 110px 0 48px;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.contact-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.contact-eyebrow {
  margin: 0 0 18px;
  color: var(--contact-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0;
  color: var(--contact-text);
  font-size: clamp(2.6rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contact-hero h1 span {
  display: block;
  font-weight: 400;
}

.contact-lead {
  max-width: 460px;
  margin: 30px 0 0;
  color: var(--contact-soft);
  font-size: 1rem;
  line-height: 1.75;
}


/* ==========================================================
   DIRECT CONTACT CARD
   ========================================================== */

.contact-primary {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin-right: auto;
  padding: 34px 36px;
  box-sizing: border-box;
  background: #F4F8F5;
  border: 1px solid #DFE7E1;
}

.contact-primary-label {
  margin: 0 0 24px;
  color: #414945;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid rgba(65, 73, 69, 0.1);
  border-bottom: 1px solid rgba(65, 73, 69, 0.1);
  color: #414945;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email span {
  flex: 0 0 auto;
  color: #718193;
  transition: transform 0.25s ease;
}

.contact-email:hover {
  color: #252B29;
}

.contact-email:hover span {
  transform: translateX(5px);
}

.contact-response {
  margin: 18px 0 0;
  color: #66716B;
  font-size: 0.85rem;
  line-height: 1.6;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(65, 73, 69, 0.1);
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66716B;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-social a .cta-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.contact-social a:hover {
  color: #414945;
}

.contact-social a:hover .cta-arrow {
  transform: translateX(4px);
  opacity: 1;
}


/* ==========================================================
   SERVICES
   ========================================================== */

.contact-section {
  padding: 80px 0;
}

.contact-section-head {
  max-width: 760px;

  margin-bottom: 40px;
}

.contact-section-head h2 {
  margin: 0;

  color: var(--contact-text);

  font-size: clamp(2.2rem, 3.8vw, 3.6rem);

  line-height: 1.04;

  letter-spacing: -0.04em;
}

.contact-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.contact-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;

  padding: 30px;
  background: var(--contact-card);
  border: 1px solid var(--contact-line);
}

.contact-service h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--contact-text);
  font-size: 1.15rem;
}

.contact-service p {
  grid-column: 1;
  grid-row: 2;
  max-width: 470px;
  margin: 12px 0 0;
  color: var(--contact-soft);
  line-height: 1.65;
}


/* ==========================================================
   ABOUT
   ========================================================== */

.contact-about {
  padding: 85px 0;

  background: var(--contact-panel);
}

.contact-about-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 80px;
}

.contact-about h2 {
  margin: 0;

  color: var(--contact-text);

  font-size: clamp(2.2rem, 3.8vw, 3.6rem);

  line-height: 1.04;

  letter-spacing: -0.04em;
}

.contact-about-copy p {
  margin: 0 0 22px;

  max-width: 600px;

  color: var(--contact-soft);

  line-height: 1.75;
}

.contact-text-link {
  color: var(--contact-accent);

  font-weight: 700;

  text-decoration: none;
}

.contact-text-link:hover {
  opacity: 0.7;
}


/* ==========================================================
   CTA
   ========================================================== */

.contact-cta {
  padding: 95px 0 115px;
}

.contact-cta-box {
  padding: 60px 40px;

  text-align: center;

  background: var(--contact-panel);
}

.contact-cta-box h2 {
  margin: 0;

  color: var(--contact-text);

  font-size: clamp(2.4rem, 4vw, 4rem);

  line-height: 1.03;

  letter-spacing: -0.045em;
}

.contact-cta-box > p:not(.contact-eyebrow) {
  max-width: 650px;

  margin: 22px auto 10px;

  color: var(--contact-soft);

  line-height: 1.7;
}

.contact-cta-box .btn-link {
  margin-right: 0;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

  .contact-social {
    margin-top: 26px;
  }

  .contact-about-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 739px) {

  .contact-shell {
    width: calc(100% - 24px);
  }


  /* ---- Hero ---- */

  .contact-hero {
    padding: 30px 0 34px;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-page .contact-eyebrow {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
    color: var(--contact-soft);
    margin-bottom: 10px;
  }

  .contact-page .contact-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
  }

  .contact-page .contact-hero h1 span {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
  }

  .contact-page .contact-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 18px;
    color: var(--contact-soft);
  }


  /* ---- Direct Contact card ---- */

  .contact-primary {
    padding: 22px 18px;
    background: #F4F8F5;
    border: 1px solid #DFE7E1;
  }

  .contact-primary-label {
    margin: 0 0 16px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #414945;
  }

  .contact-email {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 0;
    border-top: 0;
    border-bottom: 0;
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
    font-weight: 600;
    color: #414945;
    text-decoration: none;
  }

  .contact-email .cta-arrow {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #718193;
    opacity: 0.7;
  }

  .contact-response {
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #66716B;
  }

  .contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 0;
  }

  .contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #66716B;
    text-decoration: none;
  }

  .contact-social a .cta-arrow {
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
  }


  /* ---- Services ---- */

  .contact-services {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 12px;
  }

  .contact-service {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
    height: 80px;
    padding: 0 14px;
    align-content: center;
    border-bottom: 1px solid var(--contact-line);
  }

  .contact-service:nth-child(odd) {
    background: rgba(232, 240, 236, 0.55);
  }

  .contact-service:nth-child(even) {
    background: rgba(250, 249, 247, 0.7);
  }

  .contact-service:first-child {
    border-top: 1px solid var(--contact-line);
  }

  .contact-service h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--contact-text);
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
  }

  .contact-service p {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    color: var(--contact-soft);
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


  /* ---- About text link ---- */

  .contact-text-link {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 24px;
    margin-top: 20px;
    background: #718193;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
  }

  .contact-text-link:hover {
    opacity: 1;
    background: #5e6e7a;
  }


  /* ---- Sections ---- */

  .contact-section,
  .contact-about {
    padding: 44px 0;
    margin-left: 12px;
    margin-right: 12px;
  }

  .contact-page .contact-section-head h2,
  .contact-page .contact-about h2,
  .contact-page .contact-cta h2 {
    font-size: 1.95rem !important;
    line-height: 1.06 !important;
  }

  .contact-page .contact-about-copy p,
  .contact-page .contact-cta p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }


  /* ---- CTA ---- */

  .contact-cta {
    padding: 40px 0 65px;
  }

  .contact-cta-box {
    padding: 34px 18px;
  }


  /* ---- Buttons: shared mobile arrow system (matches Home) ---- */

  .contact-page .cta-arrow svg {
    width: 18px;
    height: 18px;
  }

  .contact-page .btn-link,
  .contact-page .contact-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
  }

}


/* Desktop only — Contact typography and buttons follow the Home page system */
@media (min-width: 901px) {

  /* Eyebrows / small uppercase labels → Home eyebrow */
  .contact-eyebrow,
  .contact-primary-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  /* Hero heading → Home hero h1 */
  .contact-hero h1 {
    font-size: clamp(3.1rem, 5.5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  /* Hero lead → Home lead */
  .contact-lead {
    font-size: 1.08rem;
    line-height: 1.78;
  }

  /* Direct Contact email (card title level) → Home project card title */
  .contact-email {
    justify-content: flex-start;
    gap: 8px;
    border-top: 0;
    border-bottom: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  .contact-social {
    border-top: 0;
  }

  /* Response / supporting text → Home explore card description */
  .contact-response {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Social links → Home link typography */
  .contact-social a {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  /* Section headings → Home section-head h2 */
  .contact-section-head h2,
  .contact-about h2 {
    font-size: clamp(2.2rem, 3.8vw, 3.7rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  /* Service card descriptions → Home explore card description */
  .contact-service p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Body / supporting paragraphs → Home body */
  .contact-about-copy p,
  .contact-cta-box > p:not(.contact-eyebrow) {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  /* "Start a Conversation" → Home section-head h2 */
  .contact-cta-box .contact-eyebrow {
    font-size: clamp(2.2rem, 3.8vw, 3.7rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--contact-text);
    text-transform: none;
  }

  /* Buttons → Home shared button system */
  .contact-page .btn-link,
  .contact-page .contact-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .contact-page .btn-link .cta-arrow svg,
  .contact-page .contact-text-link .cta-arrow svg {
    width: 30px;
    height: 30px;
  }

  .contact-text-link {
    color: var(--contact-accent);
    font-weight: 700;
  }

  .contact-text-link:hover {
    opacity: 1;
  }
}
