/* ===============================
   AKopiCafe Contact Page
   File: contact.css
   Professional + mobile ready
================================ */

/* ===============================
   PAGE BASE
================================ */

body.internal-page.contact-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(181, 139, 96, 0.12), transparent 30%),
    radial-gradient(circle at 86% 80%, rgba(90, 56, 37, 0.08), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #fffdf9 48%, #f8efe6 100%);
  color: var(--dark, #2d1c13);
}

/* ===============================
   CONTACT HEADER
================================ */

body.contact-page .contact-header {
  position: relative;
  overflow: hidden;

  margin: 0;
  padding: 154px 24px 86px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background:
    radial-gradient(circle at 14% 16%, rgba(181, 139, 96, 0.10), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(90, 56, 37, 0.07), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #f7ecdf 100%);

  border-bottom: 1px solid rgba(181, 139, 96, 0.12);
  box-sizing: border-box;
}

body.contact-page .contact-header::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;

  width: min(780px, 92%);
  height: 300px;

  transform: translateX(-50%);

  background: radial-gradient(circle, rgba(217, 174, 124, 0.16), transparent 68%);
  pointer-events: none;
}

body.contact-page .contact-header::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);

  background-size: 34px 34px;
  pointer-events: none;
  opacity: 0.5;
}

.contact-header-content {
  position: relative;
  z-index: 2;

  width: min(1120px, 100%);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-kicker {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 7px 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(181, 139, 96, 0.26);

  background: rgba(255, 255, 255, 0.62);
  color: var(--coffee, #5a3825);

  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 10px 24px rgba(45, 26, 17, 0.05);
}

body.contact-page .contact-header h1 {
  width: 100%;
  max-width: 1120px;

  margin: 0 0 18px;
  padding: 0;
  border: 0;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: center;
}

body.contact-page .contact-header h1::after {
  content: "";
  display: block;

  width: 92px;
  height: 4px;

  margin: 20px auto 0;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--coffee, #5a3825), var(--accent, #b58b60));
}

body.contact-page .contact-header p {
  width: min(760px, 100%);
  margin: 0 auto;

  color: #6d5a4f;

  font-family: var(--body-font, 'Lora', serif);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  text-align: center;
}

/* Mobile contact header */
@media (max-width: 768px) {
  body.contact-page .contact-header {
    padding: 130px 20px 72px;
  }

  body.contact-page .contact-header h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  body.contact-page .contact-header p {
    font-size: 15.5px;
  }
}

@media (max-width: 480px) {
  body.contact-page .contact-header {
    padding: 118px 16px 64px;
  }

  .contact-kicker {
    font-size: 10px;
    padding: 7px 13px;
  }
}
/* ===============================
   CONTACT FORM CARD
================================ */

body.contact-page main {
  width: 100%;
}

body.contact-page .form-container,
body.contact-page .contact-form-card {
  position: relative;
  overflow: hidden;

  width: min(760px, calc(100% - 32px));
  max-width: 760px;

  margin: 64px auto 46px;
  padding: 38px;

  border-radius: 24px;
  border: 1px solid rgba(181, 139, 96, 0.18);

  background:
    radial-gradient(circle at top right, rgba(181, 139, 96, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 246, 0.96));

  box-shadow: 0 18px 45px rgba(45, 26, 17, 0.10);

  font-family: var(--body-font, 'Lora', serif);
  color: var(--dark, #2d1c13);

  animation: contactFadeUp 0.55s ease both;
  box-sizing: border-box;
}

body.contact-page .form-container::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -130px;

  width: 280px;
  height: 280px;

  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 174, 124, 0.18), transparent 68%);
  pointer-events: none;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.contact-page .contact-form {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  text-align: left;
}

/* ===============================
   FORM FIELDS
================================ */

body.contact-page .contact-form label {
  margin: 18px 0 8px;

  color: var(--dark, #2d1c13);

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.015em;
}

body.contact-page .contact-form label:first-child {
  margin-top: 0;
}

body.contact-page .contact-form input,
body.contact-page .contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 0 15px;

  border: 1px solid rgba(90, 56, 37, 0.14);
  border-radius: 12px;
  outline: none;

  background: rgba(255, 255, 255, 0.92);
  color: var(--dark, #2d1c13);

  font-family: var(--body-font, 'Lora', serif);
  font-size: 15.5px;
  line-height: 1.4;

  box-shadow: 0 6px 16px rgba(45, 26, 17, 0.035);

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

  box-sizing: border-box;
}

body.contact-page .contact-form input {
  height: 50px;
}

body.contact-page .contact-form textarea {
  min-height: 140px;
  padding-top: 14px;
  resize: vertical;
}

body.contact-page .contact-form input::placeholder,
body.contact-page .contact-form textarea::placeholder {
  color: rgba(111, 90, 75, 0.55);
}

body.contact-page .contact-form input:hover,
body.contact-page .contact-form textarea:hover {
  border-color: rgba(181, 139, 96, 0.42);
  background: #fff;
}

body.contact-page .contact-form input:focus,
body.contact-page .contact-form textarea:focus {
  border-color: var(--accent, #b58b60);
  background: #fff;

  box-shadow:
    0 0 0 4px rgba(181, 139, 96, 0.15),
    0 10px 24px rgba(45, 26, 17, 0.07);
}

/* ===============================
   SUBMIT BUTTON
================================ */

body.contact-page .contact-form button {
  width: 100%;
  min-height: 52px;

  margin: 24px 0 0;
  padding: 0 22px;

  border: 0;
  border-radius: 999px;

  color: #fff8ef;
  background: linear-gradient(135deg, var(--coffee-dark, #3e261a), var(--accent, #b58b60));

  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow:
    0 14px 28px rgba(90, 56, 37, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

body.contact-page .contact-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);

  box-shadow:
    0 18px 36px rgba(90, 56, 37, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.contact-page .contact-form button:active {
  transform: translateY(0);
}

/* ===============================
   ERROR MESSAGE
================================ */

body.contact-page .error-msg {
  position: relative;
  z-index: 2;

  margin: 0 0 22px;
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid rgba(176, 0, 32, 0.18);

  background: rgba(176, 0, 32, 0.07);
  color: #9f2638;

  text-align: center;

  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
}

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

.contact-info {
  position: relative;
  overflow: hidden;

  margin-top: 0;
  padding: 74px 20px 86px;

  text-align: center;

  background:
    radial-gradient(circle at 12% 18%, rgba(181, 139, 96, 0.10), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(90, 56, 37, 0.07), transparent 32%),
    linear-gradient(180deg, #fffaf4 0%, #f8efe6 100%);

  border-top: 1px solid rgba(181, 139, 96, 0.12);
}

.contact-info::before {
  content: "";
  position: absolute;
  inset: 24px;

  border: 1px solid rgba(181, 139, 96, 0.13);
  border-radius: 32px;

  pointer-events: none;
}

.contact-info h2 {
  position: relative;
  z-index: 2;

  display: inline-block;
  margin: 0 0 42px;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.contact-info h2::after {
  content: "";
  display: block;

  width: 82px;
  height: 4px;

  margin: 16px auto 0;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--coffee, #5a3825), var(--accent, #b58b60));
}

.contact-methods {
  position: relative;
  z-index: 2;

  width: min(860px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ===============================
   CONTACT METHOD CARDS
================================ */

.contact-item {
  position: relative;
  overflow: hidden;

  min-height: 120px;
  padding: 24px;

  display: flex;
  align-items: center;
  gap: 18px;

  border-radius: 22px;
  border: 1px solid rgba(181, 139, 96, 0.20);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.95));

  box-shadow: 0 14px 34px rgba(45, 26, 17, 0.08);

  text-align: left;

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

.contact-item::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;

  width: 135px;
  height: 135px;

  border-radius: 50%;
  background: rgba(181, 139, 96, 0.11);

  transition: transform 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 139, 96, 0.36);
  box-shadow: 0 22px 50px rgba(45, 26, 17, 0.14);
}

.contact-item:hover::before {
  transform: scale(1.16);
}

.contact-item img {
  position: relative;
  z-index: 2;

  width: 56px;
  height: 56px;

  flex: 0 0 auto;

  object-fit: contain;

  padding: 8px;

  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fffdf8 0%, #fff3e4 44%, #e8c9aa 100%);

  box-shadow:
    0 10px 22px rgba(45, 26, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-item:hover img {
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 14px 28px rgba(45, 26, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-item div {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.contact-item strong {
  display: block;

  margin-bottom: 6px;

  color: var(--coffee, #5a3825);

  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.contact-item p {
  margin: 0;

  color: #6d5a4f;

  font-size: 15px;
  line-height: 1.55;
}

.contact-item a {
  color: var(--coffee, #5a3825);

  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-decoration: none;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.contact-item a:hover {
  color: var(--accent, #b58b60);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===============================
   ANIMATION
================================ */

@keyframes contactFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .contact-methods {
    width: min(640px, 100%);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.contact-page header {
    padding: 130px 20px 72px;
  }

  body.contact-page header h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  body.contact-page header p {
    font-size: 15.5px;
  }

  body.contact-page .form-container,
  body.contact-page .contact-form-card {
    width: min(100% - 24px, 760px);
    margin: 44px auto 38px;
    padding: 26px;
    border-radius: 22px;
  }

  .contact-info {
    padding: 62px 16px 72px;
  }

  .contact-info::before {
    inset: 18px 14px;
    border-radius: 26px;
  }

  .contact-item {
    min-height: auto;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  body.contact-page header {
    padding: 118px 16px 64px;
  }

  body.contact-page .form-container,
  body.contact-page .contact-form-card {
    width: min(100% - 18px, 760px);
    margin: 34px auto 30px;
    padding: 20px;
    border-radius: 18px;
  }

  body.contact-page .contact-form input {
    height: 48px;
    font-size: 15px;
  }

  body.contact-page .contact-form textarea {
    min-height: 130px;
    font-size: 15px;
  }

  body.contact-page .contact-form button {
    min-height: 50px;
    font-size: 12.5px;
  }

  .contact-info {
    padding: 52px 12px 64px;
  }

  .contact-info h2 {
    font-size: 30px;
  }

  .contact-item {
    padding: 18px;
    border-radius: 18px;
    gap: 14px;
  }

  .contact-item img {
    width: 50px;
    height: 50px;
  }

  .contact-item strong {
    font-size: 14px;
  }

  .contact-item p {
    font-size: 14px;
  }
}
