/* =========================================================
   JOHNNY PEPPERSTEIN — CONTACT PAGE

   Sage / Gold / Old Literature Theme

   Header / Navigation:
   Handled separately by NavBar.css

   Footer:
   Handled separately by Footer.css
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
  --sage-dark: #26382f;
  --sage: #536b59;
  --sage-light: #718575;
  --sage-pale: #dce5d5;

  --gold: #c6a55b;
  --gold-light: #dfc987;
  --gold-dark: #a98335;

  --cream: #f4efe3;
  --paper: #ebe4d4;
  --paper-dark: #ddd4c0;
  --white: #fffdf7;

  --ink: #263029;
  --muted: #657066;

  --rust: #8a4a2e;

  --max-width: 850px;

  --serif: "EB Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --old: "IM Fell English", Georgia, serif;
  --blackletter: "UnifrakturMaguntia", serif;

  --shadow: 0 20px 50px rgba(20, 30, 24, 0.25);
  --shadow-sm: 0 10px 25px rgba(20, 30, 24, 0.16);
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--cream);
  color: var(--ink);

  font-family: var(--serif);
  font-size: 18px;
 

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* =========================================================
   CONTACT SECTION
========================================================= */

#contact {
  position: relative;

  min-height: 850px;

  padding: 110px 25px 125px;

  color: var(--cream);

  overflow: hidden;

  background: linear-gradient(rgba(38, 56, 47, 0.97), rgba(38, 56, 47, 0.97));
}

/* =========================================================
   PAPER / LITERARY TEXTURE
========================================================= */

#contact::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.1;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.4) 1px,
    transparent 1px
  );

  background-size: 8px 8px;

  pointer-events: none;
}

/* =========================================================
   GOLD ATMOSPHERIC GLOW
========================================================= */

#contact::after {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: radial-gradient(circle, rgba(198, 165, 91, 0.1), transparent 68%);

  pointer-events: none;
}

/* =========================================================
   INNER CONTAINER
========================================================= */

#contact .inner {
  position: relative;

  z-index: 2;

  width: min(100%, var(--max-width));

  margin: 0 auto;

  text-align: center;
}

/* =========================================================
   FISH LINE ORNAMENT
========================================================= */

.fish-line {
  display: block;

  width: 220px;
  height: 24px;

  margin: 0 auto 22px;

  opacity: 0.9;
}

/* =========================================================
   EYEBROW
========================================================= */

#contact .eyebrow {
  display: block;

  margin-bottom: 15px;

  color: var(--gold-light) !important;

  font-family: var(--old);

  font-size: 14px;

  letter-spacing: 0.25em;

  text-transform: uppercase;
}

/* =========================================================
   CONTACT TITLE
========================================================= */

#contact h2 {
  position: relative;

  margin: 0;

  color: var(--cream);

  font-family: var(--display);

  font-size: clamp(58px, 9vw, 100px);

  line-height: 0.85;

  font-weight: 600;

  letter-spacing: -0.04em;
}

/* =========================================================
   TITLE DECORATION
========================================================= */

#contact h2::after {
  content: "✦";

  display: block;

  margin: 25px auto 20px;

  color: var(--gold);

  font-family: Georgia, serif;

  font-size: 18px;

  font-weight: normal;
}

/* =========================================================
   INTRODUCTION
========================================================= */

#contact .inner > p:not(.email-line) {
  max-width: 650px;

  margin: 0 auto 45px;

  color: rgba(244, 239, 227, 0.72);

  font-family: var(--old);

  font-size: 19px;

  line-height: 1.8;

  font-style: italic;
}

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

.contact-card {
  position: relative;

  width: min(100%, 650px);

  margin: 0 auto;

  padding: 45px 45px 42px;

  display: flex;
  flex-direction: column;

  text-align: left;

  background: linear-gradient(
    145deg,
    rgba(244, 239, 227, 0.98),
    rgba(235, 228, 212, 0.98)
  );

  border: 1px solid rgba(198, 165, 91, 0.65);

  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   INNER GOLD BORDER
========================================================= */

.contact-card::before {
  content: "";

  position: absolute;

  inset: 9px;

  border: 1px solid rgba(166, 130, 46, 0.22);

  pointer-events: none;
}

/* =========================================================
   TOP GOLD ACCENT
========================================================= */

.contact-card::after {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 90px;
  height: 4px;

  transform: translateX(-50%);

  background: var(--gold);
}

/* =========================================================
   FORM LABELS
========================================================= */

.contact-card label {
  position: relative;

  margin-bottom: 7px;

  color: var(--sage-dark);

  font-family: var(--old);

  font-size: 15px;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* =========================================================
   FORM INPUTS
========================================================= */

.contact-card input,
.contact-card textarea {
  position: relative;

  width: 100%;

  margin-bottom: 25px;

  padding: 13px 14px;

  color: var(--ink);

  background: rgba(255, 253, 247, 0.75);

  border: 1px solid rgba(83, 107, 89, 0.35);

  border-radius: 0;

  outline: none;

  font-family: var(--serif);

  font-size: 17px;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* =========================================================
   INPUT HOVER
========================================================= */

.contact-card input:hover,
.contact-card textarea:hover {
  border-color: rgba(166, 130, 46, 0.65);
}

/* =========================================================
   INPUT FOCUS
========================================================= */

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--gold);

  background: var(--white);

  box-shadow: 0 0 0 3px rgba(198, 165, 91, 0.12);
}

/* =========================================================
   TEXTAREA
========================================================= */

.contact-card textarea {
  min-height: 170px;

  resize: vertical;

  line-height: 1.6;
}

/* =========================================================
   SEND BUTTON
========================================================= */

.contact-card .btn {
  position: relative;

  align-self: flex-start;

  margin-top: 5px;

  padding: 14px 28px;

  color: var(--sage-dark);

  background: var(--gold);

  border: 1px solid var(--gold);

  border-radius: 0;

  cursor: pointer;

  font-family: var(--old);

  font-size: 15px;

  font-weight: 400;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* =========================================================
   BUTTON HOVER
========================================================= */

.contact-card .btn:hover {
  color: var(--sage-dark);

  background: var(--gold-light);

  transform: translateY(-3px);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   DIRECT EMAIL
========================================================= */

.email-line {
  position: relative;

  margin: 35px auto 0 !important;

  color: rgba(244, 239, 227, 0.62) !important;

  font-family: var(--serif) !important;

  font-size: 16px !important;

  font-style: normal !important;
}

/* =========================================================
   EMAIL LINK
========================================================= */

.email-line a {
  color: var(--gold-light);

  text-decoration: none;

  border-bottom: 1px solid rgba(223, 201, 135, 0.45);

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.email-line a:hover {
  color: var(--white);

  border-color: var(--white);
}

/* =========================================================
   DECORATIVE DIVIDER
========================================================= */

#contact .inner::after {
  content: "";

  display: block;

  width: 90px;
  height: 1px;

  margin: 45px auto 0;

  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(45px);

  filter: blur(4px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.reveal.visible,
.reveal.in {
  opacity: 1;

  transform: translateY(0);

  filter: blur(0);
}

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

@media (max-width: 800px) {
  #contact {
    min-height: auto;

    padding: 95px 25px 110px;
  }

  #contact h2 {
    font-size: clamp(55px, 12vw, 85px);
  }

  .contact-card {
    padding: 40px 35px;
  }
}

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

@media (max-width: 650px) {
  #contact {
    padding: 80px 20px 90px;
  }

  /* -----------------------------------------
     ORNAMENT
  ----------------------------------------- */

  .fish-line {
    width: 180px;

    margin-bottom: 18px;
  }

  /* -----------------------------------------
     EYEBROW
  ----------------------------------------- */

  #contact .eyebrow {
    font-size: 12px;

    letter-spacing: 0.2em;
  }

  /* -----------------------------------------
     TITLE
  ----------------------------------------- */

  #contact h2 {
    font-size: clamp(50px, 14vw, 70px);
  }

  /* -----------------------------------------
     INTRO
  ----------------------------------------- */

  #contact .inner > p:not(.email-line) {
    margin-bottom: 35px;

    font-size: 17px;

    line-height: 1.7;
  }

  /* -----------------------------------------
     CONTACT CARD
  ----------------------------------------- */

  .contact-card {
    padding: 38px 27px 32px;
  }

  .contact-card input,
  .contact-card textarea {
    font-size: 16px;
  }

  /* -----------------------------------------
     BUTTON
  ----------------------------------------- */

  .contact-card .btn {
    width: 100%;

    justify-content: center;

    padding: 14px 20px;
  }

  /* -----------------------------------------
     EMAIL
  ----------------------------------------- */

  .email-line {
    font-size: 15px !important;

    overflow-wrap: anywhere;
  }
}

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

@media (max-width: 420px) {
  #contact {
    padding: 70px 16px 80px;
  }

  .fish-line {
    width: 160px;
  }

  #contact .eyebrow {
    font-size: 11px;
  }

  #contact h2 {
    font-size: 54px;
  }

  #contact .inner > p:not(.email-line) {
    font-size: 16px;
  }

  .contact-card {
    padding: 35px 22px 28px;
  }

  .contact-card::before {
    inset: 7px;
  }

  .contact-card label {
    font-size: 14px;
  }

  .contact-card input,
  .contact-card textarea {
    padding: 12px;

    margin-bottom: 22px;
  }

  .contact-card textarea {
    min-height: 150px;
  }

  .contact-card .btn {
    font-size: 14px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .contact-card .btn:hover {
    transform: none;
  }
}
