/* ============================================
   THE LONG WAY LIVING — Global Styles
   A Squid X Media Project
   ============================================ */

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

/* ---- Design Tokens ---- */
:root {
  --cream: #FAF7F2;
  --warm-white: #FFFDF9;
  --charcoal: #2C2C2C;
  --charcoal-light: #4A4A4A;
  --terracotta: #C4704B;
  --terracotta-light: #D4906E;
  --sage: #8B9E7E;
  --sage-light: #A8B89E;
  --sand: #E8DFD0;
  --sand-light: #F0EAE0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-width: 1280px;
  --nav-height: 64px;
  --transition: 0.3s ease;
  --radius: 12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.nav--solid {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--sand);
}
.nav.nav--transparent {
  background: transparent;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
  transition: color var(--transition);
  letter-spacing: -0.01em;
}
.nav.nav--solid .nav__logo { color: var(--charcoal); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav.nav--solid .nav__links a { color: var(--charcoal-light); }
.nav__links a.active,
.nav.nav--solid .nav__links a.active { color: var(--charcoal); font-weight: 600; }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.nav.nav--solid .nav__toggle span { background: var(--charcoal); }

/* ---- Section Label ---- */
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.label svg { width: 14px; height: 14px; }

/* ---- Section Headings ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Email Form ---- */
.email-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 480px;
  width: 100%;
}
.email-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: white;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), background var(--transition);
}
.email-form input::placeholder { color: rgba(255,255,255,0.6); }
.email-form input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}
.email-form--light input {
  background: var(--warm-white);
  border-color: var(--sand);
  color: var(--charcoal);
}
.email-form--light input::placeholder { color: var(--charcoal-light); opacity: 0.5; }

.btn-join {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: white;
  color: var(--charcoal);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-join:hover { background: var(--sand-light); transform: translateY(-1px); }
.btn-join--light {
  background: var(--charcoal);
  color: white;
  border: 1px solid var(--charcoal);
}
.btn-join--light:hover { background: var(--charcoal-light); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--sand);
  padding: 3rem 2.5rem 2rem;
  background: var(--cream);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
}
.footer__brand { }
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
}
.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-top: 0.2rem;
}
.footer__nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}
.footer__nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal-light);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--charcoal); }
.footer__social {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  align-items: center;
}
.footer__social a {
  color: var(--charcoal-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer__social a:hover { color: var(--charcoal); }
.footer__social svg { width: 18px; height: 18px; }
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--charcoal-light);
  margin-top: 1.5rem;
}

/* ---- Newsletter CTA Section ---- */
.newsletter-section {
  padding: 6rem 2.5rem;
  text-align: center;
  background: var(--warm-white);
}
.newsletter-section .section-title { margin: 0.75rem 0; }
.newsletter-section .email-form {
  margin: 2rem auto 0;
  justify-content: center;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.nav--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  .nav--open a { color: var(--charcoal); }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
  .footer__social { justify-content: center; }
}

/* ============================================
   CONTACT FORM 7 — STYLED TO MATCH THEME
   ============================================ */

/* Hide CF7 default styling */
.wpcf7 { margin: 0; padding: 0; }
.wpcf7 br { display: none; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.75rem; color: #C4704B; margin-top: 0.25rem; }
.wpcf7 .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: none !important;
}
.wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(139,158,126,0.15);
  color: #8B9E7E;
}
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-spam-blocked {
  background: rgba(196,112,75,0.1);
  color: #C4704B;
}

/* ---- Footer newsletter form ---- */
.tlwl-cf7-wrapper .wpcf7-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.tlwl-cf7-wrapper .wpcf7-form p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.tlwl-cf7-wrapper input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s ease;
}
.tlwl-cf7-wrapper input[type="email"]:focus {
  border-color: var(--charcoal-light);
}
.tlwl-cf7-wrapper input[type="email"]::placeholder {
  color: var(--charcoal-light);
  opacity: 0.5;
}
.tlwl-cf7-wrapper input[type="submit"] {
  padding: 0.85rem 1.75rem;
  background: var(--charcoal);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}
.tlwl-cf7-wrapper input[type="submit"]:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

/* ---- Hero form variant (white on dark) ---- */
.tlwl-cf7-wrapper--hero .wpcf7-form {
  max-width: 420px;
  margin: 0;
}
.tlwl-cf7-wrapper--hero input[type="email"] {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.tlwl-cf7-wrapper--hero input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
  opacity: 1;
}
.tlwl-cf7-wrapper--hero input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.2);
}
.tlwl-cf7-wrapper--hero input[type="submit"] {
  background: white;
  color: var(--charcoal);
}
.tlwl-cf7-wrapper--hero input[type="submit"]:hover {
  background: var(--terracotta);
  color: white;
}
.tlwl-cf7-wrapper--hero .wpcf7-response-output {
  color: rgba(255,255,255,0.9) !important;
  background: rgba(255,255,255,0.15) !important;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
  display: none;
}

/* Hide CF7 success/error response output entirely */
.wpcf7 .wpcf7-response-output {
  display: none !important;
}

/* CF7 sent state — update button text via CSS */
.wpcf7-form.sent input[type="submit"] {
  font-size: 0;
  pointer-events: none;
}
.wpcf7-form.sent input[type="submit"]::after {
  font-size: 0.85rem;
  content: '✓ Joined!';
}
.wpcf7-form.sent input[type="email"] {
  opacity: 0.4;
  pointer-events: none;
}
.tlwl-cf7-wrapper--hero .wpcf7-form.sent input[type="submit"] {
  background: rgba(255,255,255,0.5);
}

/* Fix — restore Join button text (was hidden by previous rule) */
.wpcf7-form input[type="submit"] {
  font-size: 0.85rem !important;
}
.wpcf7-form.sent input[type="submit"] {
  font-size: 0 !important;
}

/* ============================================
   WPFORMS — STYLED TO MATCH THEME
   ============================================ */

/* Reset WPForms defaults */
.wpforms-container { margin: 0 !important; }
.wpforms-form .wpforms-field { padding: 0 !important; margin: 0 !important; }
.wpforms-form label { display: none !important; }
.wpforms-form .wpforms-submit-container { margin: 0 !important; padding: 0 !important; }

/* ---- Wrapper layout ---- */
.tlwl-wpf-wrapper .wpforms-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
}
.tlwl-wpf-wrapper .wpforms-form .wpforms-field {
  flex: 1;
  min-width: 200px;
}

/* ---- Email input ---- */
.tlwl-wpf-wrapper .wpforms-form input[type="email"] {
  width: 100% !important;
  padding: 0.85rem 1.25rem !important;
  background: var(--cream) !important;
  border: 1px solid var(--sand) !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: var(--charcoal) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease !important;
}
.tlwl-wpf-wrapper .wpforms-form input[type="email"]:focus {
  border-color: var(--charcoal-light) !important;
}
.tlwl-wpf-wrapper .wpforms-form input[type="email"]::placeholder {
  color: var(--charcoal-light) !important;
  opacity: 0.5 !important;
}

/* ---- Submit button ---- */
.tlwl-wpf-wrapper .wpforms-form button[type="submit"],
.tlwl-wpf-wrapper .wpforms-form input[type="submit"] {
  padding: 0.85rem 1.75rem !important;
  background: var(--charcoal) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.tlwl-wpf-wrapper .wpforms-form button[type="submit"]:hover {
  background: var(--terracotta) !important;
  transform: translateY(-1px) !important;
}

/* ---- Success message ---- */
.tlwl-wpf-wrapper .wpforms-confirmation-container-full {
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: var(--sage) !important;
  text-align: center !important;
}

/* ---- Hero variant (white on dark) ---- */
.tlwl-wpf-wrapper--hero .wpforms-form {
  max-width: 420px;
  margin: 0;
}
.tlwl-wpf-wrapper--hero .wpforms-form input[type="email"] {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: white !important;
}
.tlwl-wpf-wrapper--hero .wpforms-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.7) !important;
  opacity: 1 !important;
}
.tlwl-wpf-wrapper--hero .wpforms-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.2) !important;
}
.tlwl-wpf-wrapper--hero .wpforms-form button[type="submit"] {
  background: white !important;
  color: var(--charcoal) !important;
}
.tlwl-wpf-wrapper--hero .wpforms-form button[type="submit"]:hover {
  background: var(--terracotta) !important;
  color: white !important;
}
.tlwl-wpf-wrapper--hero .wpforms-confirmation-container-full {
  color: rgba(255,255,255,0.9) !important;
}

/* Hide WPForms error/validation styling we don't need */
.wpforms-error-container { display: none !important; }
.tlwl-wpf-wrapper .wpforms-form .wpforms-field-error {
  font-size: 0.75rem !important;
  color: var(--terracotta) !important;
  margin-top: 0.25rem !important;
}

.wpforms-confirmation-container-full,
.wpforms-confirmation-container-full p,
div[id^="wpforms-confirmation"] p {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  color: white !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
}

.footer .wpforms-confirmation-container-full,
.footer .wpforms-confirmation-container-full p,
.footer div[id^="wpforms-confirmation"] p {
  color: #C4704B !important;
}

#wpforms-confirmation-86 p {
  color: #C4704B !important;
}

.tlwl-wpf-wrapper--hero #wpforms-confirmation-86 p {
  color: white !important;
}

.partnerships-wpf {
  max-width: 620px;
  margin: 2.5rem auto 0;
}

.partnerships-wpf .wpforms-form .wpforms-field input,
.partnerships-wpf .wpforms-form .wpforms-field textarea {
  display: block !important;
  margin: 0 auto !important;
}
.partnerships-wpf .wpforms-form .wpforms-submit-container {
  text-align: center !important;
}

.partnerships-wpf .wpforms-form .wpforms-field input::placeholder,
.partnerships-wpf .wpforms-form .wpforms-field textarea::placeholder {
  text-align: center !important;
}

.tlwl-wpf-wrapper {
  margin-top: 2rem !important;
  display: flex !important;
  justify-content: center !important;
}

.tlwl-wpf-wrapper .wpforms-form .wpforms-field input[type="email"] {
  min-width: 280px !important;
}