/* Contact section (#contact) and site footer. Replaces the template's
   contact-us and footer-section styles. The forms keep their names and
   field names so mymain.js (EmailJS) still reads them. Template rules size
   every p/span/li/label, so selectors are prefixed with .contact or
   .site-footer to win. */

/* ================= Contact ================= */
.contact {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 10% 20%, rgba(255, 122, 31, 0.14), transparent 70%),
    radial-gradient(45% 55% at 90% 70%, rgba(122, 52, 255, 0.24), transparent 70%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 60px;
}

.contact .contact__eyebrow,
.contact .contact__follow {
  margin: 0 0 14px;
  color: var(--primary-color, #ff7a1f);
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .contact__title,
.contact__title {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--head-font);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  text-transform: none;
}

.contact .contact__accent {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  background: linear-gradient(90deg, #ffb347 0%, #ff7a1f 55%, #ff4f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.contact .contact__lead {
  max-width: 460px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
}

/* Contact cards */
.contact__cards {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.contact__cards li {
  position: relative;
}

.ccard {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0f35;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ccard:hover {
  color: #fff;
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.ccard__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  font-size: 20px;
}

.ccard__icon--orange { background: #ff7a1f; box-shadow: 0 4px 0 #c4520a; }
.ccard__icon--teal { background: #0fa99b; box-shadow: 0 4px 0 #08766c; }

.ccard__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact .ccard__label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.3;
}

.contact .ccard__value {
  color: #fff;
  font-family: var(--head-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ccard__copy {
  position: absolute;
  top: 50%;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--head-font);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact .ccard__copy span {
  font: inherit;
  line-height: 1;
  color: inherit;
}

.ccard__copy:hover { background: rgba(255, 255, 255, 0.16); }
.ccard__copy.is-copied { background: #18b26b; }

.contact__social,
.footer-brand__social {
  display: flex;
  gap: 12px;
}

.contact__social a,
.footer-brand__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 19px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact__social a:hover,
.footer-brand__social a:hover {
  color: #fff;
  background: var(--primary-color, #ff7a1f);
  transform: translateY(-3px);
}

/* Form card */
.contact__form {
  padding: 36px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #2a1667 0%, #0c0f35 70%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.contact .contact__form-title {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.contact__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.topic {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--head-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.topic:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

.topic.is-active {
  background: #ff7a1f;
  border-color: #ff7a1f;
  color: #fff;
}

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

.field {
  margin-bottom: 16px;
}

.contact .field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--head-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.contact .field input,
.contact .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(1, 5, 48, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact .field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact .field input::placeholder,
.contact .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact .field input:focus,
.contact .field textarea:focus {
  outline: none;
  border-color: #ff7a1f;
  background: rgba(1, 5, 48, 0.85);
}

.contact__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 17px 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff9a45 0%, #ff7a1f 100%);
  color: #fff;
  font-family: var(--head-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 0 #c4520a, 0 14px 28px rgba(255, 122, 31, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact__send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c4520a, 0 18px 34px rgba(255, 122, 31, 0.4);
}

.contact__send:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #c4520a;
}

.ccard:focus-visible,
.ccard__copy:focus-visible,
.topic:focus-visible,
.contact__send:focus-visible,
.contact__social a:focus-visible,
.site-footer a:focus-visible,
.footer-news__form button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ================= Footer ================= */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
  background: #00031f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Newsletter band */
.footer-news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 50px 0 70px;
  padding: 30px 34px;
  border-radius: 28px;
  background: linear-gradient(120deg, #ff7a1f 0%, #ff4f8b 55%, #7a34ff 100%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25), 0 26px 50px rgba(0, 0, 0, 0.35);
}

.footer-news__copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-news__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 26px;
}

.dark .footer-news__title,
.footer-news__title {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 26px;
  line-height: 1.15;
  text-transform: none;
}

.site-footer .footer-news__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
}

.footer-news__form {
  display: flex;
  flex: 1 1 360px;
  max-width: 460px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
}

.site-footer .footer-news__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #201048;
  font-size: 16px;
}

.site-footer .footer-news__form input::placeholder { color: #8a84a8; }
.site-footer .footer-news__form input:focus { outline: none; }

.footer-news__form button {
  padding: 12px 22px;
  border: 0;
  border-radius: 13px;
  background: #201048;
  color: #fff;
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-news__form button:hover { background: #3a1f80; }

/* Columns */
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand__logo {
  width: auto;
  height: 52px;
}

.site-footer .footer-brand__tag {
  margin: 16px 0 8px;
  color: var(--primary-color, #ff7a1f);
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.site-footer .footer-brand__text {
  max-width: 320px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer .footer-col__title {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-col li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #ff9a45; }

.footer-stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-stores img {
  width: 150px;
  height: auto;
  transition: transform 0.15s ease;
}

.footer-stores a:hover img { transform: translateY(-2px); }

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer .footer-bottom span { font: inherit; color: inherit; }
.footer-bottom .fa-heart { color: #ff4f8b; margin: 0 3px; }

/* Giant faded wordmark */
.site-footer .footer-mark {
  margin: 0 0 -0.22em;
  color: transparent;
  font-family: var(--head-font);
  font-size: clamp(2.2rem, 8.4vw, 9rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 122, 31, 0.22), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .contact { padding: 80px 0 90px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .contact { padding: 64px 0 72px; }
  .contact .contact__lead { font-size: 16px; }
  .contact__form { padding: 24px 18px; border-radius: 24px; }
  .contact__row { grid-template-columns: 1fr; gap: 0; }
  .contact .ccard__value { font-size: 16px; }
  .ccard { padding: 14px 16px; gap: 14px; }
  .ccard__icon { width: 44px; height: 44px; font-size: 17px; }
  .ccard__copy span { display: none; }
  .footer-news { padding: 24px 20px; margin: 30px 0 50px; }
  .dark .footer-news__title, .footer-news__title { font-size: 21px; }
  .footer-news__icon { width: 48px; height: 48px; font-size: 21px; }
  .footer-news__form { flex-basis: 100%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .footer-stores img { width: 135px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .contact *, .site-footer * { transition: none !important; }
}

/* Result message under the contact and subscribe forms (mymain.js) */
.contact .form-status,
.site-footer .form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.contact .form-status--success,
.site-footer .form-status--success {
  background: rgba(24, 178, 107, 0.16);
  border: 1px solid rgba(24, 178, 107, 0.5);
  color: #7ff0b8;
}

.contact .form-status--error,
.site-footer .form-status--error {
  background: rgba(255, 79, 139, 0.14);
  border: 1px solid rgba(255, 79, 139, 0.5);
  color: #ffb3cd;
}

/* The subscribe form is a single row; put its message underneath */
.footer-news__form { flex-wrap: wrap; }
.site-footer .footer-news__form .form-status { flex-basis: 100%; margin: 8px 2px 2px; }
.site-footer .footer-news__form .form-status--success { color: #0d7a47; background: #e6f8ef; }
.site-footer .footer-news__form .form-status--error { color: #a0194a; background: #ffe6ef; }

/* Fallback buttons when the email app doesn't open (mymain.js) */
.form-status__text { display: block; }

.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.form-status__actions a,
.form-status__actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #201048;
  font-family: var(--head-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.form-status__actions a:hover,
.form-status__actions button:hover {
  color: #201048;
  transform: translateY(-2px);
}

.site-footer .footer-news__form .form-status__actions a,
.site-footer .footer-news__form .form-status__actions button {
  background: #201048;
  color: #fff;
}
