/*
Theme Name: Homeowner Tips Daily
Theme URI: https://homeownertipsdaily.com
Author: Homeowner Tips Daily
Author URI: https://homeownertipsdaily.com
Description: A modern WordPress theme for Homeowner Tips Daily. Features a smooth video canvas background sequence, visual gallery, scroll text reveal animations, comparison tables, and responsive lead capture.
Version: 1.8.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeowner-tips-daily
Tags: one-column, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
  --color-ink: #14302f;
  --color-teal: #0f766e;
  --color-teal-hover: #0d665f;
  --color-teal-light: #5eead4;
  --color-bg: #eef4f4;
  --color-card: #ffffff;
  --color-card-border: rgba(15, 118, 110, 0.2);
  --color-card-shadow: rgba(20, 48, 47, 0.08);
  --color-text-muted: #4b5563;
  --font-heading: 'Literata', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.dark {
  --color-ink: #e6f0ef;
  --color-bg: #0a1919;
  --color-card: #132c2a;
  --color-card-border: rgba(94, 234, 212, 0.2);
  --color-card-shadow: rgba(0, 0, 0, 0.4);
  --color-text-muted: #9ca3af;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  color: var(--color-ink);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: var(--color-ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-top: 0;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-teal-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Smooth Scroll Reveal Animation (Text, Headings, Cards)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }

.scroll-reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Card & Button Aesthetics
   ========================================================================== */
.card-shadow {
  box-shadow: 0 4px 20px -2px var(--color-card-shadow), 0 2px 6px -1px rgba(20, 48, 47, 0.04);
}

.card-shadow-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-shadow-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px var(--color-card-shadow);
}

.btn-3d {
  background-color: var(--color-teal);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #0d5e58, 0 8px 16px rgba(15, 118, 110, 0.25);
  transition: all 0.15s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-3d:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #0d5e58, 0 10px 20px rgba(15, 118, 110, 0.3);
  color: #ffffff;
}

.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0d5e58, 0 3px 6px rgba(15, 118, 110, 0.2);
}
