/* ══════════════════════════════════════════════
   Amelie Designs — contact.css
   Page-specific styles for contact.html
══════════════════════════════════════════════ */


/* Header loads immediately on contact page (no intro) */
.header--loaded {
  animation: none;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   CONTACT HERO
══════════════════════════════════════════════ */
.contact-hero {
  padding-top: 6vh;
  padding-bottom: 6vh;
}

.contact-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3vh;
}
.contact-hero__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink60);
}
.contact-hero__loc {
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink60);
}

/* Animated heading */
.c-overflow {
  overflow: hidden;
}
.c-overflow--indent {
  padding-left: 18vw;
}

.c-line {
  font-family: var(--ff-disp);
  font-size: clamp(14vw, 16vw, 18vw);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--ink);
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: slideUp 1.1s cubic-bezier(.25,1,.5,1) forwards;
}
#cLine1 { animation-delay: .1s; }
#cLine2 { animation-delay: .22s; }

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

.contact-hero__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4vw;
  margin-top: 3vh;
  opacity: 0;
  animation: fadeIn .8s ease .7s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.contact-hero__sub p {
  font-size: clamp(.75rem, 1vw, .9rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink60);
  max-width: 40ch;
}

.contact-hero__email {
  font-family: var(--ff-disp);
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--ink20);
  padding-bottom: .15rem;
  transition: border-color .25s, color .25s;
}
.contact-hero__email:hover {
  border-color: var(--ink);
  color: var(--masala);
}

/* Divider */
.contact-divider {
  height: 1px;
  background: var(--ink20);
  margin-bottom: 8vh;
}

/* ══════════════════════════════════════════════
   CONTACT BODY
══════════════════════════════════════════════ */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8vw;
  padding-bottom: 12vh;

  /* fade in on load */
  opacity: 0;
  animation: fadeIn .9s ease .5s forwards;
}

/* ── Info column ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: .5rem;
}

.contact-info__label {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink60);
  margin-bottom: .4rem;
}

.contact-info__value {
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.contact-info__value--link {
  border-bottom: 1px solid var(--ink20);
  padding-bottom: .1rem;
  transition: border-color .25s;
  display: inline-block;
  font-size: .82rem;
}
.contact-info__value--link:hover { border-color: var(--ink); }

.contact-info__socials { display: flex; flex-direction: column; gap: .2rem; }
.contact-info__links   { display: flex; flex-direction: column; gap: .5rem; margin-top: .2rem; }
.contact-info__links a {
  font-size: .82rem;
  color: var(--ink60);
  transition: color .2s, letter-spacing .25s;
}
.contact-info__links a:hover { color: var(--ink); letter-spacing: .04em; }

/* ── Form column ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-field label {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink60);
  margin-bottom: .7rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink20);
  outline: none;
  padding: .5rem 0 .8rem;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink);
  width: 100%;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink20);
  font-weight: 300;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--ink);
}

/* Animated underline on focus */
.form-field__line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width .4s cubic-bezier(.83,0,.17,1);
  pointer-events: none;
}
.form-field:focus-within .form-field__line { width: 100%; }

/* Select wrapper */
.form-select-wrap {
  position: relative;
}
.form-select-wrap select {
  cursor: pointer;
  padding-right: 2rem;
}
.form-select__arrow {
  position: absolute;
  right: 0; bottom: .7rem;
  font-size: .75rem;
  color: var(--ink60);
  pointer-events: none;
  transition: transform .3s;
}
.form-select-wrap:focus-within .form-select__arrow {
  transform: rotate(180deg);
}

/* Textarea */
.form-field--textarea textarea {
  resize: none;
  line-height: 1.8;
  min-height: 8rem;
}

/* Form footer row */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: .5rem;
}

.form-footer__note {
  font-size: .72rem;
  font-weight: 300;
  color: var(--ink60);
  max-width: 28ch;
  line-height: 1.6;
}

/* Submit button */
.form-submit {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--ink);
  border-radius: 4rem;
  padding: .8rem 2rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, gap .3s;
  white-space: nowrap;
}
.form-submit:hover {
  background: transparent;
  color: var(--ink);
  gap: 1.4rem;
}
.form-submit__arrow {
  font-size: 1rem;
  transition: transform .3s;
}
.form-submit:hover .form-submit__arrow {
  transform: translate(2px, -2px);
}

/* ── Form success state ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  position: absolute;
  inset: 0;
  background: var(--bg);
  padding: 4rem 2rem;
}
.form-success.visible { display: flex; }

.form-success__star {
  font-size: 3rem;
  color: var(--cinnamon);
  animation: spinStar 6s linear infinite;
  display: block;
}
.form-success p {
  font-family: var(--ff-disp);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--ink);
  line-height: 1.4;
  max-width: 36ch;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-body {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .contact-info__block,
  .contact-info__socials { width: calc(50% - 1rem); }
  .c-overflow--indent { padding-left: 8vw; }
  .contact-hero__sub { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .form-submit { width: 100%; justify-content: center; }
  .contact-info { flex-direction: column; }
  .contact-info__block,
  .contact-info__socials { width: 100%; }
}