/*
Theme Name: Rehab Centre Child
Theme URI: https://example.com
Description: Custom child theme for a drug & alcohol rehabilitation centre website, built on Hello Elementor for use with Elementor page builder. Designed with a calm, trustworthy, healing-focused color palette.
Author: Your Team
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
Text Domain: rehab-child
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --rehab-primary: #1F395E;       /* deep navy - from logo ring/globe, trust & stability */
  --rehab-primary-dark: #182746;  /* darkest navy - from logo text ring */
  --rehab-accent: #6E2866;        /* purple - from logo hands, compassion & warmth */
  --rehab-secondary: #2A91C9;     /* sky blue - from logo cross, faith & hope */
  --rehab-bg-light: #F5F7FA;      /* soft cool off-white */
  --rehab-text: #2D3748;          /* body text */
  --rehab-white: #FFFFFF;
  --rehab-font-heading: 'Poppins', sans-serif;
  --rehab-font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--rehab-font-body);
  color: var(--rehab-text);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--rehab-font-heading);
  font-weight: 600;
  color: var(--rehab-primary-dark);
  line-height: 1.3;
}

a {
  color: var(--rehab-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rehab-accent);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.elementor-button,
.elementor-button.elementor-size-sm,
.elementor-button.elementor-size-md {
  background-color: var(--rehab-primary) !important;
  color: var(--rehab-white) !important;
  border-radius: 50px;
  padding: 16px 36px !important;
  font-weight: 600;
  font-family: var(--rehab-font-heading);
  letter-spacing: 0.3px;
  border: 2px solid var(--rehab-primary) !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(44, 122, 123, 0.25);
}

.elementor-button:hover {
  background-color: transparent !important;
  color: var(--rehab-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(44, 122, 123, 0.3);
}

/* Buttons placed on dark backgrounds get an inverted style */
.elementor-section[data-settings*="182746"] .elementor-button,
.elementor-section[data-settings*="182746"] .elementor-button:hover,
.elementor-section[data-settings*="1F395E"] .elementor-button,
.elementor-section[data-settings*="1F395E"] .elementor-button:hover {
  border-color: var(--rehab-white) !important;
}

/* ==========================================================================
   4. ICON BOXES / CARDS
   ========================================================================== */
.elementor-icon-box-wrapper {
  padding: 30px 20px;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
}

.elementor-icon-box-icon .elementor-icon {
  background-color: var(--rehab-primary);
  color: var(--rehab-white) !important;
  border-radius: 50%;
  padding: 22px;
  fill: var(--rehab-white);
}

/* ==========================================================================
   5. IMAGES
   ========================================================================== */
.elementor-widget-image img {
  border-radius: 20px;
}

/* ==========================================================================
   6. ACCORDION (FAQ)
   ========================================================================== */
.elementor-accordion-item {
  border: none !important;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 54, 93, 0.06);
}

.elementor-tab-title {
  background: var(--rehab-white);
  font-family: var(--rehab-font-heading);
  font-weight: 600;
  padding: 18px 22px !important;
}

.elementor-tab-title.elementor-active {
  background: var(--rehab-primary);
  color: var(--rehab-white) !important;
}

.elementor-tab-content {
  padding: 20px 22px !important;
}

/* ==========================================================================
   7. HEADER / NAV (Hello Elementor header, if used instead of Elementor Pro header)
   ========================================================================== */
.site-header {
  box-shadow: 0 2px 12px rgba(26, 54, 93, 0.08);
}

/* ==========================================================================
   8. RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 767px) {
  h1, .elementor-widget-heading h1.elementor-heading-title {
    font-size: 32px !important;
  }
  h2, .elementor-widget-heading h2.elementor-heading-title {
    font-size: 26px !important;
  }
  .elementor-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .elementor-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   9. ACCESSIBILITY / FOCUS STATES
   ========================================================================== */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible {
  outline: 3px solid var(--rehab-accent);
  outline-offset: 2px;
}
