/*
Theme Name:   Windsor Host Child
Theme URI:    https://windsorhost.ca
Description:  Custom child theme for Windsor Host. Built on Astra. Provides brand colors, plan-card styling, comparison-table styling, and hero/section layouts used across the marketing site.
Author:       Windsor Host
Author URI:   https://windsorhost.ca
Template:     astra
Version:      1.0.0
Text Domain:  windsor-host-child
*/

/* ============================================================
   BRAND TOKENS
   Edit these to retheme the whole site at once.
   ============================================================ */
:root {
  --wh-primary: #1F4D7A;
  --wh-primary-dark: #0D3461;
  --wh-accent: #C8392F;          /* Maple red — used sparingly */
  --wh-accent-soft: #FBEAE8;
  --wh-bg-cream: #FAF7F0;
  --wh-bg-soft: #F5F2EA;
  --wh-text-primary: #1A1A1A;
  --wh-text-secondary: #555555;
  --wh-text-tertiary: #888888;
  --wh-border: rgba(0, 0, 0, 0.08);
  --wh-border-strong: rgba(0, 0, 0, 0.16);
  --wh-radius-md: 8px;
  --wh-radius-lg: 12px;
}

/* ============================================================
   GLOBAL TYPOGRAPHY OVERRIDES
   ============================================================ */
body {
  color: var(--wh-text-primary);
  background: var(--wh-bg-cream);
}
h1, h2, h3, h4 {
  color: var(--wh-text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================================
   BUTTONS
   Use class .wh-btn-primary or .wh-btn-secondary on a Button block.
   ============================================================ */
.wp-block-button.wh-btn-primary .wp-block-button__link,
a.wh-btn-primary {
  background: var(--wh-primary);
  color: #ffffff;
  border-radius: var(--wh-radius-md);
  padding: 12px 24px;
  font-weight: 500;
  border: none;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.wp-block-button.wh-btn-primary .wp-block-button__link:hover,
a.wh-btn-primary:hover {
  background: var(--wh-primary-dark);
  color: #ffffff;
}
.wp-block-button.wh-btn-secondary .wp-block-button__link,
a.wh-btn-secondary {
  background: transparent;
  color: var(--wh-text-primary);
  border: 1px solid var(--wh-border-strong);
  border-radius: var(--wh-radius-md);
  padding: 12px 24px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.wp-block-button.wh-btn-secondary .wp-block-button__link:hover,
a.wh-btn-secondary:hover {
  background: var(--wh-bg-soft);
}

/* ============================================================
   PILLS / BADGES
   Use class .wh-pill on a paragraph or span.
   ============================================================ */
.wh-pill {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--wh-border);
  border-radius: 999px;
  color: var(--wh-text-secondary);
  background: #ffffff;
}
.wh-pill-accent {
  background: var(--wh-accent-soft);
  color: var(--wh-accent);
  border-color: var(--wh-accent-soft);
}

/* ============================================================
   HERO SECTION
   Wrap the hero content in a Group block with class .wh-hero
   ============================================================ */
.wh-hero {
  background: var(--wh-bg-soft);
  padding: 5rem 1.5rem 4rem !important;
  text-align: center;
}
.wh-hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0.75rem auto 1rem;
  max-width: 700px;
}
.wh-hero p.wh-lede {
  font-size: 18px;
  color: var(--wh-text-secondary);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.wh-hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.wh-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   GENERIC SECTION
   Use class .wh-section on a Group block to add vertical padding.
   ============================================================ */
.wh-section {
  padding: 4rem 1.5rem !important;
}
.wh-section-heading {
  text-align: center;
  margin-bottom: 0.5rem !important;
}
.wh-section-subheading {
  text-align: center;
  color: var(--wh-text-secondary);
  margin-bottom: 2.5rem !important;
  font-size: 16px;
}

/* ============================================================
   PRICING PLAN CARDS
   Use class .wh-plan on a Group block. Add .featured for the highlighted plan.
   ============================================================ */
.wh-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .wh-plans-grid { grid-template-columns: 1fr; }
}
.wh-plan {
  background: #ffffff;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-lg);
  padding: 1.75rem !important;
  position: relative;
  display: flex;
  flex-direction: column;
}
.wh-plan.featured {
  border: 2px solid var(--wh-primary);
}
.wh-plan-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--wh-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px !important;
}
.wh-plan-price {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 4px !important;
  color: var(--wh-text-primary);
}
.wh-plan-price small {
  font-size: 16px;
  color: var(--wh-text-tertiary);
  font-weight: 400;
}
.wh-plan-cycle {
  font-size: 13px;
  color: var(--wh-text-tertiary);
  margin: 0 0 1.25rem !important;
}
.wh-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem !important;
}
.wh-plan ul li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--wh-text-secondary);
  border-top: 1px solid var(--wh-border);
}
.wh-plan ul li:first-child {
  border-top: 0;
}
.wh-plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wh-primary);
  color: #ffffff;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.wh-cmp-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}
.wh-cmp {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-lg);
  overflow: hidden;
}
.wh-cmp th,
.wh-cmp td {
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--wh-border);
}
.wh-cmp th {
  font-weight: 500;
  color: var(--wh-text-secondary);
  background: var(--wh-bg-soft);
  font-size: 13px;
}
.wh-cmp td.wh-yes { color: #1F7A47; font-weight: 500; }
.wh-cmp td.wh-no  { color: var(--wh-text-tertiary); }
.wh-cmp .wh-us-col {
  background: rgba(31, 77, 122, 0.05);
  font-weight: 500;
}
.wh-cmp tr:last-child td,
.wh-cmp tr:last-child th { border-bottom: 0; }

/* ============================================================
   FEATURE CARDS
   Use class .wh-feature on a Group block.
   ============================================================ */
.wh-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .wh-features-grid { grid-template-columns: 1fr; }
}
.wh-feature {
  padding: 1.25rem !important;
  background: #ffffff;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-md);
}
.wh-feature h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px !important;
}
.wh-feature p {
  font-size: 14px;
  color: var(--wh-text-secondary);
  margin: 0 !important;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.wh-faq {
  max-width: 700px;
  margin: 0 auto;
}
.wh-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--wh-border);
}
.wh-faq-item:last-child {
  border-bottom: 0;
}
.wh-faq-q {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px !important;
}
.wh-faq-a {
  font-size: 15px;
  color: var(--wh-text-secondary);
  margin: 0 !important;
  line-height: 1.6;
}

/* ============================================================
   BLOG TEASER CARD
   ============================================================ */
.wh-blog-teaser {
  background: #ffffff;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-lg);
  padding: 2rem !important;
  max-width: 700px;
  margin: 0 auto;
}
.wh-blog-meta {
  font-size: 12px;
  color: var(--wh-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px !important;
}
.wh-blog-teaser h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px !important;
}
.wh-blog-teaser p {
  font-size: 15px;
  color: var(--wh-text-secondary);
  line-height: 1.7;
  margin: 0 0 16px !important;
}
.wh-blog-teaser a.wh-read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--wh-primary);
  text-decoration: none;
}
.wh-blog-teaser a.wh-read-more:hover {
  text-decoration: underline;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.wh-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .wh-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wh-services-grid { grid-template-columns: 1fr; }
}
.wh-service-card {
  background: #ffffff;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-lg);
  padding: 1.75rem !important;
  display: flex;
  flex-direction: column;
}
.wh-service-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px !important;
  color: var(--wh-text-primary);
}
.wh-service-card .wh-service-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--wh-primary);
  margin: 0 0 12px !important;
}
.wh-service-card .wh-service-price.wh-quote-only {
  color: var(--wh-text-tertiary);
  font-weight: 400;
  font-style: italic;
}
.wh-service-card p {
  font-size: 14px;
  color: var(--wh-text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem !important;
  flex: 1;
}
.wh-service-card .wh-btn-secondary {
  align-self: flex-start;
}
