/*
Theme Name: Aurum Media Group
Description: Custom WordPress theme for Aurum Media Group.
Author: Aurum Media Group
Version: 1.0.0
*/

@font-face {
  font-family: 'Canicule Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/canicule-display-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Canicule Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/canicule-display-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Canicule Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/canicule-display-bold.woff2') format('woff2');
}

:root {
  --display: 'Canicule Display', Georgia, 'Times New Roman', serif;
  --bg: #0a0908;
  --text: #ffffff;
  --muted: #b9b6b4;
  --pill-border: rgba(255, 255, 255, 0.14);
  --pill-active-bg: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ambient gradient glows in the background */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 900px;
  height: 900px;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 65, 126, 0.20) 0%, rgba(201, 79, 201, 0.12) 40%, rgba(10, 9, 8, 0) 70%);
}

body::after {
  width: 1100px;
  height: 800px;
  bottom: -360px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46, 155, 230, 0.16) 0%, rgba(240, 65, 126, 0.10) 45%, rgba(10, 9, 8, 0) 72%);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 56px;
}

.site-logo img {
  height: 62px;
  width: auto;
  display: block;
}

/* Glass button base */
.btn-glass {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn {
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 13px 26px;
}

/* ---------- Layout Common ---------- */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-home .site-main {
  justify-content: center;
  padding: 50px 24px 90px;
}

.page-contact .site-main {
  padding: 40px 24px;
}

/* ---------- Typography ---------- */
.page-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.5px;
  max-width: 1000px;
}

.page-home .page-title {
  font-size: 49px;
  margin-top: 36px;
}

.page-contact .page-title {
  font-size: 49px;
  margin-top: 24px;
}

.subhead {
  font-weight: 400;
  line-height: 1.6;
}

.page-home .subhead {
  font-size: clamp(20px, 2.4vw, 32px);
  margin-top: 40px;
  max-width: 800px;
}

.page-contact .subhead {
  font-size: 18px;
  margin-top: 22px;
  max-width: 620px;
  color: var(--text);
}

/* ---------- Services Panel (Home) ---------- */
.services-list {
  margin-top: 56px;
  width: 100%;
  max-width: 1160px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  /* Removed default list styling */
}

.service-pill {
  font-size: 15px;
  color: var(--muted);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 12px 26px;
  white-space: nowrap;
}

/* ---------- CTA Button ---------- */
.btn-cta {
  display: inline-block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  background: linear-gradient(90deg, #f9a03f 0%, #f0417e 34%, #c94fc9 60%, #2e9be6 100%);
  box-shadow: 0 6px 30px rgba(233, 80, 140, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(233, 80, 140, 0.5);
}

.page-home .btn-cta {
  margin-top: 56px;
}

.page-contact .btn-cta {
  margin-top: 56px;
  grid-column: 1 / -1;
  justify-self: center;
}

/* ---------- Contact Form ---------- */
.contact-form {
  margin-top: 52px;
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.form-field legend {
  margin-bottom: 9px;
  /* Replicate gap behavior for fieldsets */
}

.form-field label .opt,
.form-field legend .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.4px;
  opacity: 0.6;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pill-border);
  border-radius: 14px;
  padding: 15px 18px;
  width: 100%;
  transition: border-color .2s ease, background .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

/* Services interested — pill checkboxes */
fieldset.form-field {
  border: none;
  padding: 0;
  margin: 0;
}

.svc-group,
.svc-group .wpcf7-checkbox {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.svc-group .wpcf7-list-item {
  margin: 0;
}

.svc-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.svc-group .wpcf7-list-item-label {
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--muted);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  display: inline-block;
  /* override block from .form-field label */
}

.svc-group label:hover,
.svc-group .wpcf7-list-item label:hover .wpcf7-list-item-label {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
}

.svc-group input[type="checkbox"]:checked+label,
.svc-group input[type="checkbox"]:checked~.wpcf7-list-item-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-group input[type="checkbox"]:focus-visible+label,
.svc-group input[type="checkbox"]:focus-visible~.wpcf7-list-item-label {
  outline: 2px solid rgba(46, 155, 230, 0.7);
  outline-offset: 2px;
}

/* CF7 Validation Styles */
.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-not-valid-tip {
  font-size: 11px;
  color: #f0417e;
  margin-top: 6px;
  font-weight: 500;
}

.form-field .wpcf7-not-valid {
  border-color: rgba(240, 65, 126, 0.5) !important;
}

.wpcf7-response-output {
  grid-column: 1 / -1;
  font-size: 14px;
  border-radius: 14px;
  padding: 15px 20px !important;
  margin: 10px 0 0 0 !important;
  border: 1px solid var(--pill-border) !important;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(240, 65, 126, 0.4) !important;
  color: #f0417e;
  background: rgba(240, 65, 126, 0.05);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(70, 180, 80, 0.4) !important;
  color: #46b450;
  background: rgba(70, 180, 80, 0.05);
}

.wpcf7-spinner {
  margin: 15px auto 0;
  display: flex;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 22px 20px;
  }

  .site-logo img {
    height: 46px;
  }

  .contact-btn {
    padding: 11px 20px;
  }

  .page-home .site-main {
    padding: 26px 20px 64px;
    justify-content: start;
  }

  .page-contact .site-main {
    padding: 26px 20px 64px;
  }

  .page-home .page-title {
    margin-top: 0;
    font-size: 28px;
  }

  .page-contact .page-title {
    margin-top: 18px;
    font-size: 34px;
  }

  .page-home .subhead {
    margin-top: 30px;
    font-size: clamp(15px, 2.4vw, 32px);
  }

  .page-contact .subhead {
    margin-top: 18px;
  }

  .services-list {
    margin-top: 50px;
    padding: 0;
    gap: 10px 8px;
  }

  .service-pill {
    font-size: 11px;
    padding: 10px 12px;
  }

  .page-home .btn-cta {
    margin-top: 40px;
  }

  .contact-form {
    margin-top: 38px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .svc-group,
  .svc-group .wpcf7-checkbox {
    gap: 8px;
  }

  .svc-group .wpcf7-list-item-label {
    font-size: 11px;
    padding: 8px 14px;
  }

  body::before,
  body::after {
    filter: blur(90px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}