/*
Theme Name: Raising Different Together
Theme URI: https://raisingdifferenttogether.com
Description: A warm, watercolor-inspired Kadence child theme for Raising Different Together — supporting families raising neurodivergent children. Built to defer to Kadence's Customizer so all color and font tweaks happen in the WordPress UI.
Author: Casey & Danielle
Version: 1.0.2
Template: kadence
Text Domain: raising-different-together
Tags: child-theme, kadence, custom-colors, custom-fonts, accessibility-ready
*/

/* ============================================================
   COLOR VARIABLES — Official Raising Different Together palette
   ------------------------------------------------------------
   Wired to Kadence's Global Palette. Change a color in
   Appearance → Customize → Colors and the whole site updates,
   including all the custom polish below.

   Fallback values are the official brand hex codes — these
   apply only if Kadence's palette hasn't been customized.

   Rule of thumb: 85–90% neutrals, 10–15% color.
   Pastel rainbow accents should be used sparingly.
   ============================================================ */

:root {
  /* Core brand palette */
  --rdt-olive:            var(--global-palette1, #5F6F5E);  /* Deep Olive — headings, body, nav */
  --rdt-terracotta:       var(--global-palette2, #C9785C);  /* Terracotta — buttons, links */
  --rdt-sage:             var(--global-palette3, #7A8F7B);  /* Sage Green — icons, subheads */
  --rdt-taupe:            var(--global-palette4, #9A8F84);  /* Warm Taupe — secondary text */
  --rdt-cream:            var(--global-palette5, #F4EFE6);  /* Warm Cream — page background */
  --rdt-beige:            var(--global-palette6, #E8DCCB);  /* Soft Beige — cards */
  --rdt-nest-brown:       var(--global-palette7, #A47C5B);  /* Nest Brown — illustration accents */
  --rdt-terracotta-deep:  var(--global-palette8, #B8654D);  /* Deeper Terracotta — hover */
  --rdt-soft-green:       var(--global-palette9, #C9D9C1);  /* Soft Green pastel */

  /* Static brand tokens (not in Kadence palette) */
  --rdt-warm-white: #FBF7EF;   /* slightly lighter than cream — testimonial cards, form bg */

  /* Pastel neurodiversity accents — use sparingly */
  --rdt-pink:     #E8AFA3;
  --rdt-peach:    #F2C6A0;
  --rdt-yellow:   #F3E1A6;
  --rdt-blue:     #AFC6D9;
  --rdt-lavender: #C7B5D9;

  /* Layout tokens */
  --rdt-radius-sm: 8px;
  --rdt-radius-md: 14px;
  --rdt-radius-lg: 18px;
  --rdt-radius-xl: 24px;
  --rdt-shadow-card: 0 2px 0 rgba(95, 111, 94, 0.04),
                     0 12px 32px -16px rgba(95, 111, 94, 0.14);
  --rdt-shadow-card-hover: 0 4px 0 rgba(95, 111, 94, 0.05),
                           0 20px 40px -16px rgba(95, 111, 94, 0.20);
}

/* ============================================================
   BASE
   ============================================================ */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* Headings: slightly tighter for the warm humanist feel */
h1, h2, h3, h4, h5, h6,
.entry-title,
.kt-blocks-info-box-title,
.wp-block-heading {
  letter-spacing: -0.005em;
}

/* ============================================================
   BUTTONS — Terracotta with a gentle "press" feel
   ============================================================ */

.wp-block-button__link,
.kb-button,
button[type="submit"],
input[type="submit"],
.button {
  background: var(--rdt-terracotta);
  color: var(--rdt-warm-white);
  border: none;
  border-radius: var(--rdt-radius-sm);
  padding: 14px 28px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 var(--rdt-terracotta-deep),
              0 6px 16px -6px rgba(201, 120, 92, 0.4);
  transition: background-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.wp-block-button__link:hover,
.kb-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover {
  background: var(--rdt-terracotta-deep);
  color: var(--rdt-warm-white);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--rdt-terracotta-deep),
              0 10px 20px -6px rgba(201, 120, 92, 0.5);
}

.wp-block-button__link:active,
.kb-button:active,
button[type="submit"]:active,
input[type="submit"]:active,
.button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--rdt-terracotta-deep);
}

/* Outlined variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.kb-button.is-style-outline {
  background: transparent;
  color: var(--rdt-terracotta);
  border: 2px solid var(--rdt-terracotta);
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.kb-button.is-style-outline:hover {
  background: var(--rdt-terracotta);
  color: var(--rdt-warm-white);
}

/* ============================================================
   CARDS — Soft Beige with a gentle lift on hover
   ============================================================ */

.rdt-card,
.kb-card {
  background: var(--rdt-beige);
  border-radius: var(--rdt-radius-lg);
  padding: 36px 28px;
  box-shadow: var(--rdt-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rdt-card:hover,
.kb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rdt-shadow-card-hover);
}

/* Apply the same treatment to Kadence column inner wrappers
   when the column itself is given the rdt-card class. */
.wp-block-kadence-column.rdt-card .kt-inside-inner-col {
  background: var(--rdt-beige);
  border-radius: var(--rdt-radius-lg);
  padding: 36px 28px;
  box-shadow: var(--rdt-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-kadence-column.rdt-card:hover .kt-inside-inner-col {
  transform: translateY(-2px);
  box-shadow: var(--rdt-shadow-card-hover);
}

/* ============================================================
   TESTIMONIALS — pull-quote feel
   ============================================================ */

.rdt-testimonial {
  background: var(--rdt-warm-white);
  border-radius: var(--rdt-radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 12px 28px -16px rgba(95, 111, 94, 0.18);
}

.rdt-testimonial::before {
  content: "\201C"; /* big left quote */
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--rdt-terracotta);
  position: absolute;
  top: -8px;
  left: 18px;
  line-height: 1;
  opacity: 0.6;
}

.rdt-testimonial p {
  color: var(--rdt-olive);
  margin-top: 12px;
}

.rdt-testimonial cite,
.rdt-testimonial .rdt-attribution {
  display: block;
  margin-top: 16px;
  color: var(--rdt-taupe);
  font-style: normal;
  font-size: 14px;
}

.rdt-testimonial cite::before,
.rdt-testimonial .rdt-attribution::before {
  content: "♡ ";
  color: var(--rdt-terracotta);
}

/* ============================================================
   ACCENT MARKS — hearts, leaf dividers
   ============================================================ */

/* Small heart you can sprinkle anywhere — add class rdt-heart */
.rdt-heart::before {
  content: "♡";
  color: var(--rdt-terracotta);
  margin-right: 0.4em;
  font-size: 0.9em;
  display: inline-block;
}

/* Leaf-style divider for between sections — use as
   <div class="rdt-divider">leaves</div> or empty */
.rdt-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1em 0 1.4em;
  color: var(--rdt-sage);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.rdt-divider::before,
.rdt-divider::after {
  content: "";
  flex: 0 0 40px;
  height: 1px;
  background: var(--rdt-sage);
  opacity: 0.5;
}

.rdt-divider::before { margin-right: 12px; }
.rdt-divider::after  { margin-left: 12px; }

/* ============================================================
   COMMUNITY / NEWSLETTER CTA — Soft Green pastel block
   ============================================================ */

.rdt-community-cta {
  background: var(--rdt-soft-green);
  border-radius: var(--rdt-radius-xl);
  padding: 56px 48px;
}

@media (max-width: 768px) {
  .rdt-community-cta {
    padding: 40px 24px;
    border-radius: var(--rdt-radius-lg);
  }
  .rdt-card,
  .kb-card,
  .wp-block-kadence-column.rdt-card .kt-inside-inner-col {
    padding: 28px 20px;
  }
}

/* ============================================================
   PASTEL ACCENT HELPERS — use sparingly (small icon backgrounds,
   illustration highlights, never as whole-section backgrounds)
   ============================================================ */

.rdt-bg-pink     { background: var(--rdt-pink); }
.rdt-bg-peach    { background: var(--rdt-peach); }
.rdt-bg-yellow   { background: var(--rdt-yellow); }
.rdt-bg-green    { background: var(--rdt-soft-green); }
.rdt-bg-blue     { background: var(--rdt-blue); }
.rdt-bg-lavender { background: var(--rdt-lavender); }

/* ============================================================
   FORMS — warm and gentle
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
  background: var(--rdt-warm-white);
  border: 1.5px solid var(--rdt-beige);
  border-radius: var(--rdt-radius-sm);
  padding: 12px 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  color: var(--rdt-olive);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--rdt-sage);
  box-shadow: 0 0 0 3px rgba(122, 143, 123, 0.25);
}

input::placeholder,
textarea::placeholder {
  color: var(--rdt-taupe);
  opacity: 0.7;
}

/* ============================================================
   LINKS within body content (not nav, not buttons)
   ============================================================ */

.entry-content a,
.wp-block-post-content a,
article a {
  color: var(--rdt-terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-content a:hover,
.wp-block-post-content a:hover,
article a:hover {
  color: var(--rdt-terracotta-deep);
  border-bottom-color: var(--rdt-terracotta-deep);
}

/* ============================================================
   FOOTER — deeper anchor at the bottom of the page
   ============================================================ */

.site-bottom-footer-wrap {
  background: var(--rdt-olive) !important;
}

.site-bottom-footer-wrap,
.site-bottom-footer-wrap a {
  color: var(--rdt-warm-white) !important;
}

.site-bottom-footer-wrap a:hover {
  color: var(--rdt-soft-green) !important;
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  body { background: #fff; color: #000; }
  .rdt-card, .kb-card, .rdt-testimonial, .rdt-community-cta {
    box-shadow: none;
    background: #fff;
  }
}
