/*
Theme Name: Rising Star Care Solutions
Theme URI: https://risingstarcare.pages.dev/
Author: WaymakerAI
Author URI: https://risingstarcare.pages.dev/
Description: WordPress theme converted from the Rising Star Care Solutions Vite/React site. Includes a custom landing page and blog templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: risingstarcare
Tags: custom-menu, featured-images, threaded-comments, translation-ready, blog
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Smooth transitions for interactive elements */
button, a, input, textarea {
  transition: opacity 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.2s ease, transform 0.2s ease;
}

/* Gradient button styles */
.btn-gradient-primary {
  background: linear-gradient(90deg, #F4A640, #E68E1C);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 166, 64, 0.3);
}
.btn-gradient-primary:hover {
  background: linear-gradient(90deg, #E68E1C, #D27A0F);
  box-shadow: 0 6px 16px rgba(244, 166, 64, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #F4A640;
  color: #F4A640;
  background: transparent;
}
.btn-secondary:hover {
  background: #F4A640;
  color: white;
  box-shadow: 0 4px 12px rgba(244, 166, 64, 0.25);
  transform: translateY(-2px);
}

/* Subtle gradient sections */
.gradient-section-hero {
  background: linear-gradient(135deg, #F7F9FB 0%, #E6EBEE 100%);
}
.gradient-section-primary {
  background: linear-gradient(135deg, #2D5C88 0%, #3A7E8C 100%);
}

/* Subtle grain texture overlay */
.grain-overlay { position: relative; }
.grain-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom selection color */
::selection { background-color: #F4A640; color: white; }

/* Card hover effects */
.card-lift:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* WordPress core tweaks */
.wp-block-image img { height: auto; }

/* Block editor/front-end alignment helpers for classic themes */
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  width: min(1200px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* ── Blog post prose overrides ───────────────────────────────────────────── */

/* Headings */
.rsc-post-content h1,
.rsc-post-content h2,
.rsc-post-content h3,
.rsc-post-content h4,
.rsc-post-content h5,
.rsc-post-content h6 {
  font-family: 'Poppins', sans-serif;
  color: #2D5C88;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.rsc-post-content h2 { font-size: 1.6rem; }
.rsc-post-content h3 { font-size: 1.25rem; }
.rsc-post-content h4 { font-size: 1.1rem; }

/* Paragraphs */
.rsc-post-content p {
  color: #334155;
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* Links */
.rsc-post-content a {
  color: #3A7E8C;
  font-weight: 500;
  text-decoration: none;
}
.rsc-post-content a:hover { text-decoration: underline; }

/* Bold */
.rsc-post-content strong { color: #2D5C88; font-weight: 700; }

/* Lists */
.rsc-post-content ul,
.rsc-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #334155;
  line-height: 1.8;
}
.rsc-post-content ul { list-style-type: disc; }
.rsc-post-content ol { list-style-type: decimal; }
.rsc-post-content li { margin-bottom: 0.4rem; }

/* Blockquote */
.rsc-post-content blockquote {
  border-left: 4px solid #F4A640;
  background: #F7F9FB;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  color: #2D5C88;
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
}

/* Tables */
.rsc-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid #E6EBEE;
}
.rsc-post-content th {
  background: #2D5C88;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
}
.rsc-post-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #E6EBEE;
  color: #334155;
}
.rsc-post-content tr:last-child td { border-bottom: none; }
.rsc-post-content tr:nth-child(even) td { background: #F7F9FB; }

/* Images */
.rsc-post-content img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
}

/* Code */
.rsc-post-content code {
  background: #E6EBEE;
  color: #2D5C88;
  padding: 0.15em 0.45em;
  border-radius: 0.3rem;
  font-size: 0.9em;
}

/* Horizontal rule */
.rsc-post-content hr {
  border: none;
  border-top: 2px solid #E6EBEE;
  margin: 2.5rem 0;
}
