/* ==========================================================================
   Cookie Moments — contact page (contact.html)
   1. Header + entrance animation
   2. Contact section
   3. Footer (same as the other pages)
   4. Tablet + phone
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header + entrance animation
   -------------------------------------------------------------------------- */
/* -------- Header / menu bar -------- */
/* -------- Header / menu bar -------- */
.site-header {
  background: #2A1A14;
  color: #FFFFFF;
  position: relative;
  z-index: 60;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 12px 30px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: 1344px; /* lines up with the content edge */
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  height: 66px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  text-align: center;
}
.brand-name {
  font-family: 'Pinyon Script', cursive;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
}
.brand-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -10px;
  color: #D9C7C0;
}
.site-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}
.header-link,
.header-link-2 {
  color: #F4E6E1;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes cmRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   2. Contact section
   -------------------------------------------------------------------------- */
.contact {
  background: #FFFFFF;
  padding: 96px 32px 136px;
  overflow: hidden; /* trims the props where they run past the screen edge */
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 120px;
  align-items: stretch; /* photo column matches the form column's height */
}

/* Left: arch photo, as tall as the form column */
.contact-media {
  position: relative;
  display: flex;
  min-height: 640px;
  animation: cmRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.contact-photo {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px;
  overflow: hidden;
  background: #EAD7D0;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-photo-pill {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  color: #5A4740;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Decorations overlapping the photo (from the Contact board) */
.contact-prop {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(10px 16px 18px rgba(42, 26, 20, 0.32)) drop-shadow(2px 3px 4px rgba(42, 26, 20, 0.18));
}

.contact-prop--pink-flower {
  left: 66px;
  top: -10px;
  width: 94px;
  transform: rotate(17deg);
  z-index: 1;
}

.contact-prop--lilac {
  left: -66px;
  top: 75px;
  width: 168px;
  transform: rotate(14deg);
  z-index: 2;
}

.contact-prop--tools {
  right: -41px;
  bottom: -65px;
  width: 211px;
  transform: rotate(-12deg);
  z-index: 4;
}

.contact-badge {
  position: absolute;
  right: -38px;
  bottom: 93px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 16px;
  border-radius: 20px;
  background: var(--cocoa);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(42, 26, 20, 0.28);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-badge:hover {
  color: #FFFFFF;
  transform: translateY(-3px);
}

.contact-badge-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}

.contact-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-badge-label {
  font-size: 12px;
  color: #BFA9A1;
}

.contact-badge-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* Right: intro + form */
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cmRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.contact-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
}

.contact-title {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.contact-title em {
  font-weight: 500;
  color: var(--rose);
}

.contact-text {
  margin: 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  color: #6B5750;
}

.contact-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B5750;
}

.contact-req {
  color: var(--rose);
}

.contact-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on tap */
  color: var(--cocoa);
  background: #FFFFFF;
  border: 1px solid #E3D3CD;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:hover {
  border-color: #CDB9B1;
}

.contact-input:focus {
  outline: none;
  border-color: var(--cocoa);
  box-shadow: 0 0 0 4px rgba(200, 172, 110, 0.25);
}

.contact-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.contact-input[aria-invalid="true"] {
  border-color: var(--rose);
}

.contact-error {
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
}

.contact-error:empty {
  display: none;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-btn {
  min-height: 56px;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 172, 110, 0.4);
}

.contact-note {
  font-size: 13px;
  color: #6B5750;
}

/* Thank-you message (replaces the form after sending) */
.contact-sent {
  margin-top: 12px;
  padding: 32px;
  border-radius: 24px;
  background: #F7EEEA;
  display: flex;
  flex-direction: column;
  gap: 8px;
  outline: none;
}

.contact-sent-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cocoa);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.contact-sent-title {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.contact-sent-text {
  margin: 0;
  font-size: 15px;
  color: #6B5750;
}

/* Desktop: the header + contact section fill exactly one screen, the footer sits below.
   Spacing and sizes shrink a little on shorter laptop screens so everything still fits. */
@media (min-width: 961px) {
  .contact {
    min-height: calc(100vh - 100px); /* 100px = header height */
    min-height: calc(100svh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(28px, 5vh, 72px);
    padding-bottom: clamp(72px, 9vh, 112px); /* room for the piping tools */
  }

  .contact-inner {
    width: 100%;
  }

  .contact-media {
    min-height: 0;
  }

  .contact-copy {
    gap: clamp(12px, 2vh, 22px);
  }

  .contact-title {
    font-size: clamp(40px, min(5vw, 7.5vh), 72px);
  }

  .contact-text {
    font-size: 16px;
  }

  .contact-form {
    margin-top: 4px;
    gap: clamp(14px, 2.4vh, 24px);
  }

  .contact-fields {
    gap: clamp(12px, 2vh, 20px) 16px;
  }

  .contact-field {
    gap: 6px;
  }

  .contact-input {
    min-height: clamp(44px, 5.6vh, 52px);
    padding-top: clamp(10px, 1.4vh, 14px);
    padding-bottom: clamp(10px, 1.4vh, 14px);
  }

  .contact-textarea {
    height: clamp(88px, 15vh, 160px);
    min-height: 88px;
  }

  .contact-btn {
    min-height: clamp(48px, 6vh, 56px);
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Short laptop screens (768px-tall and below): tighter still, so it all fits */
@media (min-width: 961px) and (max-height: 800px) {
  .contact {
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .contact-copy {
    gap: 10px;
  }

  .contact-title {
    font-size: clamp(36px, 6.4vh, 52px);
  }

  .contact-text {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-fields {
    gap: 10px 16px;
  }

  .contact-field {
    gap: 4px;
  }

  .contact-label {
    font-size: 11px;
  }

  .contact-input {
    min-height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .contact-textarea {
    height: clamp(76px, 12vh, 110px);
    min-height: 76px;
  }

  .contact-btn {
    min-height: 46px;
  }

  .contact-prop--tools {
    bottom: -30px;
    width: 180px;
  }
}

/* --------------------------------------------------------------------------
   3. Footer (same as the other pages)
   -------------------------------------------------------------------------- */
/* -------- Footer -------- */
.footer {
  background: #1E120E;
  color: #E6D6D0;
  padding: 88px 32px 40px;
}
.footer-stack {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
}
.footer-stack-2 {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-stack-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.footer-logo {
  height: 230px;
  width: auto;
  display: block;
}
.footer-txt {
  font-family: 'Pinyon Script', cursive;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 4px;
}
.footer-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -10px;
  color: #D9C7C0;
}
.footer-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 360px;
}
.footer-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 420px;
}
.footer-field {
  flex: 1 1 200px;
  font: inherit;
  font-size: 15px;
  background: #2A1A14;
  color: #FFFFFF;
  border: 1px solid #4A3229;
  border-radius: 999px;
  padding: 13px 18px;
  min-height: 48px;
}
.footer-btn {
  background: var(--gold);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 48px;
  cursor: pointer;
}
.footer-row-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.footer-eyebrow-2 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F4C9C3;
  font-weight: 800;
  margin-bottom: 4px;
}
.footer-link {
  color: #E6D6D0;
  text-decoration: none;
}
.footer-stack-4 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.footer-row-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #3B261E;
  font-size: 13px;
  color: #BFA9A1;
}

/* --------------------------------------------------------------------------
   4. Tablet + phone
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .contact-media {
    order: 2; /* form first, photo after */
    width: 100%;
    max-width: 520px;
    min-height: 0;
    margin: 0 auto 48px; /* room for the piping tools below */
  }

  .contact-photo {
    flex: none;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 88px 20px 72px; /* clears the floating menu button */
  }

  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-btn {
    width: 100%;
  }

  .contact-media {
    width: calc(100% - 40px); /* leaves room for the props to overlap */
  }

  .contact-prop--pink-flower {
    left: 44px;
    top: -12px;
    width: 64px;
  }

  .contact-prop--lilac {
    left: -40px;
    top: 52px;
    width: 112px;
  }

  .contact-prop--tools {
    right: -30px;
    bottom: -48px;
    width: 150px;
  }

  .contact-badge {
    right: -24px;
    bottom: 64px;
    gap: 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
  }

  .contact-badge-icon {
    width: 34px;
    height: 34px;
  }

  .contact-badge-value {
    font-size: 14px;
  }

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

  .footer-logo {
    height: 160px;
  }
}

/* Logo text: same gold as the logo mark */
.brand-name,
.brand-tagline,
.intro-name,
.intro-tagline,
.footer-txt,
.footer-eyebrow {
  color: #C5A96D;
}


/* Navbar logo: 30% smaller */
.brand {
  gap: 10px;
}
.brand-logo {
  height: 46px;
}
.brand-name {
  font-size: 32px;
}
.brand-tagline {
  font-size: 7px;
  margin-top: -7px;
}

/* Contact: less space above the heading on phones */
@media (max-width: 600px) {
  .contact {
    padding-top: 64px;
  }
}


/* TEMP: floating decorations hidden on the contact page (delete this block to bring them back) */
.contact-prop {
  display: none;
}

/* --------------------------------------------------------------------------
   Phone & tablet header: logo bar at the top that scrolls away with the page
   (same as the class pages). The menu button still floats top-right.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  html .site-header {
    position: relative;
    background: var(--cocoa);
    pointer-events: auto;
  }
  .site-header .header-inner {
    justify-content: flex-start;
    padding: 14px 32px;
  }
  .site-header .brand {
    display: flex;
    gap: 10px;
  }
  .site-header .brand-logo {
    height: 46px;
  }
  .site-header .brand-name {
    font-size: 32px;
    color: #C5A96D;
  }
  .site-header .brand-tagline {
    font-size: 7px;
    margin-top: -7px;
    color: #C5A96D;
  }
  .site-header .menu-btn {
    position: fixed;
    top: 15px;
    right: 32px;
  }
  .site-header .site-nav {
    position: fixed;
    top: 70px;
  }
}
@media (max-width: 600px) {
  .site-header .header-inner {
    padding: 14px 20px;
  }
  .site-header .menu-btn {
    right: 20px;
  }
  .contact {
    padding-top: 40px; /* the logo bar now sits above, so less room is needed */
  }
}