/* ── Self-hosted fonts (latin subset only — zero Google Fonts requests) ─────── */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/montserrat-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/montserrat-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pinyon-script-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-700-normal.woff2') format('woff2');
}

:root {
  --primary-bg: #0a0a0a;
  --text-main: #ffffff;
  --accent-gold: #E2B47F; /* Cache chicago style copper/gold */
  --accent-gold-dark: #C49A6C;
  --accent-gold-light: #F5D5A5;
  --border-color: rgba(226, 180, 127, 0.4);
  
  --font-title: 'Playfair Display', serif;
  --font-script: 'Pinyon Script', cursive;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Full Bleed Background Overlay */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.45)), url('cigar.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: slowZoom 40s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  0% { transform: scale(-1, 1); }
  100% { transform: scale(-1.1, 1.1); }
}

/* Realistic Cigar Smoke Shader Canvas */
#smoke-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
  filter: blur(2px) contrast(1.1); /* Keep the heat distortion base aesthetic */
  z-index: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  padding: 4rem;
  align-items: center;
  justify-content: space-around;
  text-align: left;
  gap: 2rem;
}

/* Header Section */
.header {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

h1 {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F5F5F5;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.separator {
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
  margin: 1.5rem 0 2rem 0;
  opacity: 0.6;
}

.subtitle {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-gold);
  line-height: 1.2;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.small-caps-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-right: -0.4em;
}
.glass-overlay {
  color: white;
  background-color: rgba(0, 0, 0, 0.12); 
  backdrop-filter: blur(2px); /* Blurs the image/content behind the element */
  -webkit-backdrop-filter: blur(2px); /* Safari support */
}

/* Form Container */
.form-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  background-color: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(226, 180, 127, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0;
  text-align: center;
}

.success-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
  width: 100%;
}

.success-actions .action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.success-actions .action-btn:hover {
  background: rgba(226, 180, 127, 0.1);
  color: var(--accent-gold-light);
  border-color: var(--accent-gold);
}

.success-actions .action-btn svg {
  margin-top: -1px;
}

.success-message.visible {
  display: flex;
}

.success-message h2 {
  font-family: var(--font-script);
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.success-message p {
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.input-group {
  flex: 1;
}

.input-group.full-width {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background-color: rgba(0,0,0,0.3);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--text-main);
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-align: center;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
  background-color: rgba(0,0,0,0.5);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Switch */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.switch-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-gold-dark);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dynamic Fields */
.plus-one-fields {
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
  transition: all 0.5s ease;
}

.plus-one-fields.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.fields-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.2);
}

/* Buttons */
.actions {
  margin-top: 2rem;
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-gold-dark) 100%);
  color: #000;
  border: none;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: translateY(0);
}

.share-options {
  margin-top: 1.5rem;
}

.btn-transparent {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-transparent:hover {
  background: rgba(226, 180, 127, 0.1);
  color: var(--accent-gold-light);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    padding: 2rem 1.5rem 4rem 1.5rem;
    justify-content: center;
    text-align: center;
    gap: 3rem;
  }
  .header {
    align-items: center;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .subtitle { font-size: 2.2rem; }
  .small-caps-subtitle { font-size: 0.75rem; letter-spacing: 0.3em; }
}

/* ── Phone only: push form card down so hero cigar is visible ── */
@media (max-width: 640px) {
  .page-wrapper {
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 0;
  }
  .form-container {
    margin-top: 22vh;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 2rem 1.5rem;
  }
}
