/* Venora Care Theme - Main Production Stylesheet */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&family=Montserrat:wght@700&display=swap');

/* Tailwind CSS v3 / Custom Theme Base Tokens */
:root {
  --background: #ffffff;
  --foreground: #13324b;
  --card: #ffffff;
  --card-foreground: #13324b;
  --popover: #ffffff;
  --popover-foreground: #13324b;
  --primary: #087fb8;
  --primary-hover: #066797;
  --primary-foreground: #ffffff;
  --secondary: #eaf8fd;
  --secondary-foreground: #13324b;
  --muted: #eaf8fd;
  --muted-foreground: #536c7f;
  --accent: #d8f1fb;
  --accent-foreground: #13324b;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #d5e8f0;
  --input: #c9dfe8;
  --ring: #149ee1;
  --midnight: #082f4a;
  --soft: #f3fafc;
  --periwinkle: #149ee1;
  --lavender: #f18cae;
  --rose: #df6e98;
  --radius: 6px;
  --font-display: "Source Sans 3", system-ui, sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-brand: "Montserrat", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

/* Enforce Minimum 6px Border Radius Across All Boxes */
article,
details,
input,
select,
textarea,
button,
.field-input,
.wpcf7-form-control,
[class*="border"],
[class*="bg-card"],
[class*="bg-soft"] {
  border-radius: max(6px, var(--radius));
}

/* Typography Classes */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-brand { font-family: var(--font-brand); }

.eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Color Utility Classes */
.bg-midnight { background-color: var(--midnight); color: var(--primary-foreground); }
.bg-soft { background-color: var(--soft); }
.bg-secondary { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-lavender { background-color: var(--lavender); }
.bg-rose { background-color: var(--rose); }

.text-primary { color: var(--primary); }
.text-midnight { color: var(--midnight); }
.text-lavender { color: var(--lavender); }
.text-rose { color: var(--rose); }
.text-periwinkle { color: var(--periwinkle); }
.text-muted-foreground { color: var(--muted-foreground); }

/* Hero Gradient Shade */
.hero-shade {
  background: linear-gradient(90deg, var(--midnight) 0%, color-mix(in srgb, var(--midnight) 91%, transparent) 30%, color-mix(in srgb, var(--midnight) 28%, transparent) 68%, transparent 100%);
}

@media (max-width: 639px) {
  .hero-shade {
    background: linear-gradient(90deg, color-mix(in srgb, var(--midnight) 95%, transparent), color-mix(in srgb, var(--midnight) 78%, transparent) 62%, color-mix(in srgb, var(--midnight) 32%, transparent));
  }
}

/* Field Inputs */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.field-input,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  padding: 10px 12px;
  color: var(--foreground);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field-input::placeholder,
.wpcf7 ::placeholder {
  color: var(--muted-foreground);
}

/* Contact Form 7 Integration Styling */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form .grid p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}
@media (min-width: 640px) {
  .wpcf7-submit { width: auto; }
}
.wpcf7-submit:hover { background-color: var(--primary-hover); }
.wpcf7-spinner { display: none !important; }
.wpcf7-response-output {
  margin-top: 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}
div.wpcf7-mail-sent-ok {
  background-color: var(--secondary) !important;
  border: 1px solid var(--primary) !important;
  color: var(--foreground) !important;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid transparent;
}
.btn-pill-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.btn-pill-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-pill-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-pill-white {
  background-color: var(--primary-foreground);
  color: var(--midnight);
  border: 1px solid transparent;
}
.btn-pill-white:hover {
  background-color: var(--lavender);
  color: var(--midnight);
}

.btn-pill-white-outline {
  background-color: transparent;
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 60%, transparent);
  color: var(--primary-foreground);
}
.btn-pill-white-outline:hover {
  background-color: color-mix(in srgb, var(--primary-foreground) 15%, transparent);
  color: var(--primary-foreground);
}

/* Modal Popup Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--background);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal-backdrop.is-active .modal-box {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted-foreground);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background-color: var(--soft);
  color: var(--foreground);
}

/* Tailwind v3 (CDN) vs v4 (React design): in v4 explicit leading-* utilities always
   win over font-size's built-in line-height; in v3 a responsive text-* class resets it. */
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }

/* React design caps bold/extrabold at 600 (--font-weight-bold/extrabold: 600). */
.font-bold, .font-extrabold { font-weight: 600 !important; }

/* Home product carousel */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.venora-carousel-card { flex: 0 0 78%; }
@media (min-width: 640px) { .venora-carousel-card { flex-basis: calc(50% - 10px); } }
@media (min-width: 1024px) { .venora-carousel-card { flex-basis: calc(25% - 15px); } }

/* All headings use the display font (Source Sans 3). */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
