/*
Theme Name: PetMeds Site
Theme URI: https://apps.apple.com/app/id6766556304
Author: PetMeds
Author URI: https://apps.apple.com/app/id6766556304
Description: Warm Precision landing page theme for PetMeds — a mobile app for pet medication and health tracking.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petmeds-site
*/

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

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  --cream:      #F5F0E8;
  --espresso:   #2A1A0E;
  --terracotta: #7C5138;
  --off-white:  #F9F5EF;
  --linen:      #E8DFD2;
  --text-dark:  #1A0F05;
  --text-mid:   #3D2B1A;
}

/* ── Header ───────────────────────────────────────────────────── */
.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.site-header-inner {
  pointer-events: all;
  width: 55%;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.header-brand-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text-dark) !important;
}

.header-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px;
  display: block;
}

.header-wordmark {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: var(--text-dark) !important;
  line-height: 1 !important;
}

.header-nav-wrap .wp-block-navigation__container {
  gap: 32px !important;
}

.header-nav-wrap .wp-block-navigation-item__content {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-mid) !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: color 0.2s ease;
  padding: 0 !important;
}

.header-nav-wrap .wp-block-navigation-item__content:hover {
  color: var(--terracotta) !important;
}

/* ── Hero Split ───────────────────────────────────────────────── */
.hero-section {
  display: flex !important;
  min-height: 100vh;
  width: 100%;
  align-items: stretch;
}

.hero-left-panel {
  width: 55% !important;
  background: var(--cream) !important;
  display: flex !important;
  align-items: center;
  padding: 120px 48px 80px 48px !important;
  flex-shrink: 0;
}

.hero-right-panel {
  width: 45% !important;
  background: var(--espresso) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-right-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(124,81,56,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content-wrap {
  max-width: 520px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--terracotta) !important;
  margin-bottom: 20px !important;
}

.hero-headline {
  font-size: clamp(44px, 5.5vw, 68px) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-dark) !important;
  margin-bottom: 24px !important;
}

.hero-headline-accent {
  color: var(--terracotta) !important;
  font-style: normal;
  font-weight: 800;
}

.hero-subheading {
  font-size: clamp(16px, 1.4vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: var(--text-mid) !important;
  max-width: 420px;
  margin-bottom: 44px !important;
}

/* ── App Store Button ─────────────────────────────────────────── */
.app-store-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  background: var(--espresso) !important;
  color: var(--off-white) !important;
  text-decoration: none !important;
  padding: 14px 26px !important;
  border-radius: 14px !important;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 18px rgba(42,26,14,0.22);
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.app-store-btn:hover {
  background: var(--terracotta) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,81,56,0.38) !important;
  color: var(--off-white) !important;
}

.app-store-btn:active {
  transform: translateY(0);
}

.app-store-btn-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.btn-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-label-top {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.78;
  line-height: 1;
  color: var(--off-white);
}

.btn-label-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--off-white);
}

.cta-tagline {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--terracotta) !important;
  letter-spacing: 0.01em;
  margin-top: 10px !important;
}

/* ── Hero Icon (right panel) ──────────────────────────────────── */
.hero-icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,81,56,0.45) 0%, rgba(124,81,56,0.12) 50%, transparent 70%);
  animation: glowPulse 3.5s ease-in-out 1.2s infinite;
  z-index: 0;
}

.hero-app-icon {
  width: clamp(200px, 18vw, 260px) !important;
  height: clamp(200px, 18vw, 260px) !important;
  border-radius: 27% !important;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}

.hero-icon-wrap:hover .hero-app-icon {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 4px 16px rgba(124,81,56,0.35);
}

/* ── Features Section ─────────────────────────────────────────── */
.features-section {
  background: var(--off-white) !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.features-section-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--terracotta) !important;
  text-align: center;
  margin-bottom: 16px !important;
}

.features-section-title {
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-dark) !important;
  text-align: center;
  margin-bottom: 12px !important;
  line-height: 1.08 !important;
}

.features-section-subtitle {
  font-size: 1.0625rem !important;
  color: var(--text-mid) !important;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 64px !important;
  line-height: 1.6 !important;
}

.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-card {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 2px 16px rgba(42,26,14,0.07), 0 1px 4px rgba(42,26,14,0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,26,14,0.12), 0 2px 8px rgba(42,26,14,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 1;
}

.feature-card-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
}

.feature-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--linen) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 1.0625rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-dark) !important;
  margin-bottom: 10px !important;
  line-height: 1.25 !important;
}

.feature-card-body {
  font-size: 0.9375rem !important;
  color: var(--text-mid) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ── Privacy Section ──────────────────────────────────────────── */
.privacy-section {
  background: var(--espresso) !important;
  padding-top: 120px !important;
  padding-bottom: 120px !important;
}

.privacy-section-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--terracotta) !important;
  text-align: center;
  margin-bottom: 20px !important;
}

.privacy-section-title {
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--cream) !important;
  text-align: center;
  margin-bottom: 24px !important;
  line-height: 1.06 !important;
}

.privacy-section-body {
  font-size: 1.0625rem !important;
  color: #A89070 !important;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px !important;
  line-height: 1.65 !important;
}

.privacy-app-store-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  background: var(--terracotta) !important;
  color: var(--off-white) !important;
  text-decoration: none !important;
  padding: 14px 28px !important;
  border-radius: 14px !important;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 20px rgba(124,81,56,0.4);
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.privacy-app-store-btn:hover {
  background: #8F6144 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,81,56,0.5) !important;
  color: var(--off-white) !important;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer-wrap {
  background: var(--espresso) !important;
  padding-top: 64px !important;
  padding-bottom: 40px !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-name {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--cream) !important;
  letter-spacing: -0.02em !important;
}

.footer-tagline {
  font-size: 14px !important;
  color: #A89070 !important;
  margin-top: 6px !important;
  line-height: 1.5 !important;
}

.footer-app-store-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08) !important;
  color: var(--cream) !important;
  text-decoration: none !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  transition: background 0.2s ease, transform 0.18s ease;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-app-store-link:hover {
  background: rgba(124,81,56,0.35) !important;
  transform: translateY(-1px);
  color: var(--cream) !important;
}

.footer-divider {
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  margin: 32px 0 24px !important;
}

.footer-legal {
  font-size: 13px !important;
  color: #6B5040 !important;
  text-align: center !important;
}

/* ── Page Title Section ───────────────────────────────────────── */
.page-title-section {
  background: var(--cream) !important;
  padding-top: 120px !important;
  padding-bottom: 60px !important;
}

.page-title-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--terracotta) !important;
  margin-bottom: 16px !important;
}

.page-post-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--text-dark) !important;
  line-height: 1.06 !important;
}

.page-content-section {
  background: var(--off-white) !important;
  padding-top: 60px !important;
  padding-bottom: 100px !important;
}

/* ── Entrance Animations ──────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-up.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll,
  .slide-in-left,
  .scale-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-icon-wrap::before {
    animation: none;
  }

  .app-store-btn:hover,
  .privacy-app-store-btn:hover {
    transform: none;
  }
}

/* ── Editor Visibility ────────────────────────────────────────── */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .scale-up {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header-inner {
    width: 100%;
    padding: 18px 24px;
  }

  .hero-section {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .hero-left-panel {
    width: 100% !important;
    padding: 100px 24px 60px 24px !important;
  }

  .hero-right-panel {
    width: 100% !important;
    min-height: 320px;
    padding: 60px 24px !important;
  }
}

@media (max-width: 600px) {
  .hero-left-panel {
    padding: 88px 20px 52px 20px !important;
  }

  .hero-right-panel {
    padding: 48px 20px !important;
  }

  .app-store-btn {
    padding: 13px 22px !important;
  }
}
