/* ── Custom Styles for Daily Care Static Theme ── */

.article-detail {
  min-height: 100vh;
}

.article-detail-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.article-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.article-detail-content {
  padding: 60px 0;
  background: hsl(var(--background));
}

.article-detail-header {
  margin-bottom: 40px;
}

.article-detail-tag {
  display: inline-block;
  padding: 6px 12px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body {
  max-width: 800px;
  color: hsl(var(--foreground));
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-detail-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 48px 0 24px;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 16px;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body p {
  margin-bottom: 20px;
  color: hsl(var(--muted-foreground));
}

.article-detail-body strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.article-detail-cta {
  max-width: 800px;
}

@media (max-width: 768px) {
  .article-detail-hero {
    height: 250px;
  }

  .article-detail-title {
    font-size: 1.75rem;
  }

  .article-detail-body {
    font-size: 1rem;
  }

  .article-detail-body h2 {
    font-size: 1.5rem;
  }

  .article-detail-body h3 {
    font-size: 1.25rem;
  }

  .article-detail-cta {
    margin-top: 40px;
  }

  .article-detail-cta > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Lucide Icon integration */
svg.lucide,
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Ensure smooth modal open/close display */
.modal-backdrop.hidden,
.modal.hidden {
  display: none !important;
}

/* Cursor trail canvas layer */
#cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

/* ── Hero Video Responsive Section ── */
.hero {
  position: relative;
  min-height: 560px;
  background-color: hsl(var(--primary));
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.95) contrast(1.02);
  display: block !important;
}

/* Desktop slanted blue background divider */
.hero-slant-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 78%, rgba(13, 48, 95, 0.95) 100%);
  clip-path: polygon(0 0, 58% 0, 43% 100%, 0 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 56px 0 68px clamp(32px, 5vw, 80px);
}

.hero-copy {
  max-width: 520px;
}

/* Tablet screens (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-slant-bg {
    clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%);
  }
  .hero-video {
    object-position: 80% center;
  }
  .hero-content {
    padding: 50px 0 60px clamp(24px, 4vw, 50px);
  }
}

/* Mobile screens (<= 768px): Full background video with subtle brand overlay */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
  }

  .hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-video {
    object-position: center center;
    opacity: 0.88;
  }

  /* Remove slant on mobile; show translucent overlay so video is visible as background */
  .hero-slant-bg {
    clip-path: none !important;
    background: linear-gradient(
      180deg,
      rgba(13, 48, 95, 0.88) 0%,
      rgba(13, 48, 95, 0.72) 45%,
      rgba(13, 48, 95, 0.90) 100%
    ) !important;
    width: 100% !important;
    z-index: 2;
  }

  .hero-content {
    padding: 50px 20px 60px !important;
  }

  .hero-copy {
    max-width: 100%;
  }
}

/* ── Contact Form 7 Seamless Integration ── */
.contact-grid .wpcf7 {
  width: 100%;
}

.wpcf7 form.contact-form {
  background: hsl(var(--card));
  box-shadow: var(--shadow-soft);
  border-radius: 25px;
  padding: 34px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form .field input.wpcf7-form-control,
.contact-form .field select.wpcf7-form-control,
.contact-form .field textarea.wpcf7-form-control {
  border: 1px solid hsl(var(--border));
  width: 100%;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border-radius: 10px;
  outline: none;
  padding: 13px 14px;
  transition: border .2s, box-shadow .2s;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form .field input.wpcf7-form-control:focus,
.contact-form .field select.wpcf7-form-control:focus,
.contact-form .field textarea.wpcf7-form-control:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px #1b55501f;
}

.contact-form .field textarea,
.contact-form .field textarea.wpcf7-form-control,
.contact-form textarea#message,
.contact-grid textarea,
.wpcf7 textarea,
textarea#message,
textarea.field-textarea,
textarea[name="your-message"] {
  resize: none !important;
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
  line-height: 1.4 !important;
  overflow-y: auto !important;
}

.contact-form .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

.contact-form .wpcf7-response-output {
  border-radius: 10px !important;
  margin: 16px 0 0 0 !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: hsl(var(--primary)) !important;
  background: #d9ede6 !important;
  border: 1px solid #b6e0d3 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
}

.contact-form .wpcf7-acceptance {
  display: block;
  margin: 4px 0 20px;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}

.contact-form .wpcf7-acceptance label {
  color: hsl(var(--muted-foreground));
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.45;
  display: flex;
  cursor: pointer;
  font-weight: normal;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  accent-color: hsl(var(--primary));
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
}

.contact-form .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* ── Action Modal (Refill / Transfer) CF7 Styles ── */
#modal-form-area .wpcf7 {
  width: 100%;
}

#modal-form-area form.wpcf7-form {
  width: 100%;
}

#modal-form-area .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#modal-form-area .field input.wpcf7-form-control {
  border: 1px solid hsl(var(--border));
  width: 100%;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border-radius: 10px;
  outline: none;
  padding: 13px 14px;
  transition: border .2s, box-shadow .2s;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

#modal-form-area .field input.wpcf7-form-control:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px #1b55501f;
}

#modal-form-area .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

#modal-form-area .wpcf7-response-output {
  border-radius: 10px !important;
  margin: 14px 0 0 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

#modal-form-area .wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}



