/*
Theme Name: Covered With David
Theme URI: https://coveredwithdavid.com
Author: David Worley
Author URI: https://coveredwithdavid.com
Description: A cinematic one-page insurance landing page theme for CoveredWithDavid.com. Features a full-screen hero with glassmorphism contact form for quote requests.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coveredwithdavid
*/

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
.font-serif {
  font-family: 'DM Serif Display', serif;
}

.font-sans {
  font-family: 'DM Sans', sans-serif;
}

/* ─── Landing Page Layout ──────────────────────────────────────────────────── */
.landing-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 22, 40, 0.95), rgba(15, 32, 39, 0.85), transparent);
}

.content-layer {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.content-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .content-container {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .content-container {
    padding: 2rem;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Brand Header ─────────────────────────────────────────────────────────── */
.brand-header {
  margin-bottom: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-logo svg {
  width: 2rem;
  height: 2rem;
  color: #E8B84B;
}

.brand-logo span {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.9);
}

.brand-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .brand-headline {
    font-size: 3rem;
  }
}

.brand-headline .gold {
  color: #E8B84B;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* ─── Glassmorphism Form Card ──────────────────────────────────────────────── */
.form-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

/* ─── Form Elements ────────────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-4 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 639px) {
  .form-group.col-span-2 {
    grid-column: span 1;
  }
}

.form-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: #E8B84B;
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.3);
}

/* Date input styling for dark theme */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* ─── Radio Buttons ────────────────────────────────────────────────────────── */
.radio-section {
  margin-bottom: 1.5rem;
}

.radio-section .form-label {
  margin-bottom: 0.75rem;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .radio-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-item input[type="radio"],
.radio-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.radio-item input[type="radio"]:checked,
.radio-item input[type="checkbox"]:checked {
  border-color: #E8B84B;
  background-color: #E8B84B;
  box-shadow: inset 0 0 0 2px rgba(10, 22, 40, 0.9);
}

.radio-item label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* ─── Submit Button ────────────────────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  background-color: #E8B84B;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}

.submit-btn:hover {
  background-color: #d4a53e;
}

.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Success Message ──────────────────────────────────────────────────────── */
.success-card {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  color: #E8B84B;
  margin: 0 auto 1rem;
}

.success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.success-text .gold {
  color: #E8B84B;
  font-weight: 600;
  text-transform: capitalize;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.landing-footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
}

.landing-footer p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(232, 184, 75, 0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-breathe {
  animation: breathe 3s ease-in-out infinite;
}

/* ─── Validation Errors ────────────────────────────────────────────────────── */
.form-error {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-input.error {
  border-color: #f87171;
}

/* ─── WordPress Admin Bar Fix ──────────────────────────────────────────────── */
body.admin-bar .landing-wrapper {
  min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .landing-wrapper {
    min-height: calc(100vh - 46px);
  }
}

/* ─── Notification Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  max-width: 400px;
}

.toast-success {
  background: #065f46;
  color: #d1fae5;
  border: 1px solid #10b981;
}

.toast-error {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #ef4444;
}
