@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
  --brand-burgundy: #4A0E0E;
  --brand-burgundy-dark: #2D0909;
  --brand-gold: #D4AF37;
  --brand-champagne: #E6D5B8;
  --brand-cream: #FDFCF0;
  --brand-charcoal: #2C2C2C;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-charcoal);
  background-color: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.section-overline {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #D4AF37;
  margin-bottom: 1.5rem;
  display: block;
}

@media (min-width: 768px) {
  .section-overline {
    font-size: 12px;
  }
}

.nav-link {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 12px;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: all 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.book-button {
  display: inline-block;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
}

.textured-text {
  background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Contact Form 7 custom styling */
.wpcf7-form-control-wrap {
  width: 100%;
  display: block;
}
.wpcf7-radio {
  display: flex !important;
  gap: 0.75rem !important;
  margin-top: 0.25rem !important;
}
.wpcf7-list-item {
  margin: 0 !important;
  display: inline-block;
}
.wpcf7-list-item label {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  gap: 0.625rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
.wpcf7-list-item label span,
.wpcf7-list-item-label {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--brand-charcoal) !important;
  text-transform: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}
.wpcf7-list-item input[type="radio"] {
  accent-color: #4A0E0E !important;
  width: 0.875rem !important;
  height: 0.875rem !important;
  margin: 0 !important;
  margin-right: 0.5rem !important; /* explicit space between button and text label */
  padding: 0 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  position: relative !important;
  cursor: pointer !important;
}

/* Style CF7 validation errors nicely */
.wpcf7-not-valid-tip {
  color: #dc2626 !important;
  font-size: 0.75rem !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
}
.wpcf7-response-output {
  border: 1px solid #E6D5B8 !important;
  background-color: #FDFCF0 !important;
  color: #4A0E0E !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem !important;
  font-size: 0.8rem !important;
  margin: 1.5rem 0 0 0 !important;
  text-align: center !important;
}

/* Neutralize WordPress autop tags inside CF7 form wrapper */
.contact-form-7-wrapper br {
  display: none !important;
}
.contact-form-7-wrapper p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Force form compactness inside contact-form-7-wrapper */
.contact-form-7-wrapper form .space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem !important; /* reduced from 2rem (space-y-8) */
}
.contact-form-7-wrapper form .space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem !important; /* reduced from 1rem (space-y-4) */
}
.contact-form-7-wrapper form .space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.25rem !important; /* reduced from 0.5rem (space-y-2) */
}
.contact-form-7-wrapper form .grid.gap-8 {
  gap: 1rem !important; /* reduced from 2rem (gap-8) */
}
.contact-form-7-wrapper form .pt-8 {
  padding-top: 1.25rem !important; /* reduced from 2rem (pt-8) */
}
.contact-form-7-wrapper form .pt-8.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem !important; /* override inner qualification question groups spacing */
}
.contact-form-7-wrapper form input[type="text"],
.contact-form-7-wrapper form input[type="email"],
.contact-form-7-wrapper form input[type="tel"],
.contact-form-7-wrapper form input[type="number"],
.contact-form-7-wrapper form input[type="date"],
.contact-form-7-wrapper form select,
.contact-form-7-wrapper form textarea {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  border-radius: 0.75rem !important; /* rounded-xl replacement to feel cleaner */
  font-size: 0.825rem !important;
}
.contact-form-7-wrapper form button[type="submit"] {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  border-radius: 9999px !important;
  font-size: 0.825rem !important;
}

/* Styling for functional newsletter subscription forms inside CF7 wrappers */
.footer-newsletter-wrapper .wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  max-width: 28rem !important; /* max-w-md */
}
.footer-newsletter-wrapper .wpcf7-form p,
.footer-newsletter-wrapper .wpcf7-form .cf7-footer-inline-container {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0.5rem !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.footer-newsletter-wrapper .wpcf7-form br {
  display: none !important;
}
.footer-newsletter-wrapper .wpcf7-form .wpcf7-form-control-wrap {
  flex-grow: 1 !important;
}
.footer-newsletter-wrapper .wpcf7-form input[type="email"] {
  background: transparent !important;
  border: none !important;
  color: white !important;
  width: 100% !important;
  padding: 0.5rem 0.75rem !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
}
.footer-newsletter-wrapper .wpcf7-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}
.footer-newsletter-wrapper .wpcf7-form input[type="submit"] {
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  cursor: pointer !important;
  transition: color 0.3s !important;
  padding: 0.5rem 1rem !important;
  white-space: nowrap !important;
}
.footer-newsletter-wrapper .wpcf7-form input[type="submit"]:hover {
  color: #D4AF37 !important;
}
.footer-newsletter-wrapper .wpcf7-response-output:not(:empty) {
  margin-top: 1rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0.75rem !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  font-size: 0.8rem !important;
  border-radius: 0.5rem !important;
  width: 100% !important;
  text-align: center !important;
}

.blog-newsletter-wrapper .wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  max-w: 28rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.blog-newsletter-wrapper .wpcf7-form p {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (min-width: 768px) {
  .blog-newsletter-wrapper .wpcf7-form p {
    flex-direction: row !important;
    align-items: center !important;
  }
}
.blog-newsletter-wrapper .wpcf7-form br {
  display: none !important;
}
.blog-newsletter-wrapper .wpcf7-form .wpcf7-form-control-wrap {
  flex-grow: 1 !important;
}
.blog-newsletter-wrapper .wpcf7-form input[type="email"] {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-size: 0.875rem !important;
  color: white !important;
  width: 100% !important;
  font-weight: 300 !important;
  outline: none !important;
  box-shadow: none !important;
}
.blog-newsletter-wrapper .wpcf7-form input[type="email"]:focus {
  border-color: #D4AF37 !important;
}
.blog-newsletter-wrapper .wpcf7-form input[type="submit"] {
  background-color: #D4AF37 !important;
  color: white !important;
  padding: 1rem 2.5rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
  cursor: pointer !important;
  transition: all 0.5s !important;
  border: none !important;
}
.blog-newsletter-wrapper .wpcf7-form input[type="submit"]:hover {
  background-color: white !important;
  color: #4A0E0E !important;
}
.blog-newsletter-wrapper .wpcf7-response-output:not(:empty) {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0.75rem !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  font-size: 0.85rem !important;
  border-radius: 0.5rem !important;
  width: 100% !important;
  text-align: center !important;
}

/* Prevent Cloudflare/external error iframes from breaking layout */
iframe {
  max-width: 100%;
}

/* CF7 iframe challenge fix — constrain any injected iframe */
.wpcf7 iframe,
.footer-newsletter-wrapper iframe,
.blog-newsletter-wrapper iframe,
.contact-form-7-wrapper iframe {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
