/*
Theme Name: Synergy Health
Theme URI: https://synergyhealth.com
Description: Custom WordPress theme for Synergy Health
Version: 1.1.0
Author: Synergy Health
Author URI: https://synergyhealth.com
License: GNU General Public License v2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: synergy-health
*/

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Primary Colors */
    --primary-green: #62A498;
    --secondary-green: #4D8A7F;
    --teal-primary: #62A498;
    --teal: #62A498;
    --teal-dark: #4D8A7F;
    --teal-light: #E3EFED;
    --light-green: #E3EFED;
    --primary-blue: #4464AD;
    --secondary-blue: #3654A0;
    --blue-primary: #4464AD;
    --blue: #4464AD;
    --blue-hover: #4565AD;
    --light-blue: #C7D4EC;
    --red: #CE4A57;
    --red-dark: #C23B3B;
    
    /* Navigation */
    --nav-color: #4464AD;
    --nav-hover: #4565AD;
    --button-red: #CE4A57;
    
    /* Gradients */
    --gradient-start: #E8D5C4;
    --gradient-end: #B8D4CE;
    
    /* Neutrals */
    --white: #ffffff;
    --black: #202030;
    --gray-lighter: #fafafa;
    --gray-light: #f5f5f5;
    --gray-medium: #cccccc;
    --gray-dark: #666666;
    --gray-darker: #333333;
    --gray-divider: #C8C8C8;
    --gray-border: #E5E5E5;
    --gray-hover: #f0f0f0;
    --off-white: #F9F9F7;
    --text-gray: #666666;
    --text-dark: #333333;
    --text-light: #666666;

    /* Spacing */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 60px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 50px;
    --radius-full: 9999px;
    
    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 22px;
    --text-3xl: 24px;
    --text-4xl: 32px;
    --text-5xl: 40px;
    --text-6xl: 48px;
    --text-7xl: 56px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 4px 12px rgba(206, 74, 87, 0.3);
    --shadow-button-hover: 0 6px 20px rgba(206, 74, 87, 0.4);
    
    /* Layout */
    --container-max-width: 1440px;
    
    /* Typography */
    --font-body: "proxima-nova", sans-serif;
    --font-heading: rubik, sans-serif;
    
    /* Button Sizes */
    --btn-padding-sm: 10px 20px;
    --btn-padding-md: 14px 28px;
    --btn-padding-lg: 16px 32px;
    --btn-min-width: 180px;
}

/* ========================================
   Reset & Base Styles
======================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--nav-color);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nav-hover);
}

/* ========================================
   Typography - Headings
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: normal;
    color: var(--nav-color);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
}

h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

h2 {
    font-size: 40px;
    margin-bottom: 25px;
}

h3 {
    font-size: 32px;
    line-height: 1.375;
    letter-spacing: 0.01em;
    color: var(--primary-green);
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
}

/* ========================================
   Container
======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Site Structure
======================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   Universal Button Styles
======================================== */

/* Base Button Styles */
.btn-primary,
.btn-secondary,
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-md);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: 3px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    min-width: var(--btn-min-width);
    line-height: 1.2;
}

/* Primary Button - Red Solid */
.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

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

.btn-primary:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* Secondary Button - Red Outlined */
.btn-secondary {
    background-color: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-secondary:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

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

.btn-secondary:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* Button on White Background Variant */
.btn-secondary.on-white {
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary.on-white:hover {
    background-color: var(--white);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-secondary.on-white:active {
    transform: translateY(0);
}

.btn-secondary.on-white:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Tertiary Button - White Outlined for Hero Sections */
.btn-tertiary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-tertiary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--teal-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

.btn-tertiary:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Button Size Variants */
.btn-sm {
    padding: var(--btn-padding-sm);
    font-size: var(--text-base);
    min-width: 120px;
}

.btn-lg {
    padding: var(--btn-padding-lg);
    font-size: var(--text-xl);
    min-width: 200px;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    min-width: 100%;
}

/* Disabled Button State */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-primary.disabled,
.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Responsive Styles */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        font-size: var(--text-base);
        padding: 12px 24px;
        min-width: auto;
        max-width: none;
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        font-size: var(--text-sm);
        padding: 10px 20px;
        min-width: auto;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        border-width: 4px;
    }
}

/* ========================================
   Universal Link Styles with Icons/Chevrons
======================================== */

/* Base link with icon/chevron */
.link-with-icon,
.link-with-chevron {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    transition: all var(--transition-base);
}

/* Icon/Chevron within links - applies to i, svg, or span elements */
.link-with-icon i,
.link-with-icon svg,
.link-with-icon .icon,
.link-with-chevron i,
.link-with-chevron svg,
.link-with-chevron .chevron {
    transition: transform var(--transition-base);
}

/* Move chevron/icon right on hover */
.link-with-icon:hover i,
.link-with-icon:hover svg,
.link-with-icon:hover .icon,
.link-with-chevron:hover i,
.link-with-chevron:hover svg,
.link-with-chevron:hover .chevron {
    transform: translateX(var(--spacing-xs));
}

/* For links using ::after pseudo-elements for chevrons */
a[class*="chevron"]::after,
a[class*="-link"]::after {
    transition: transform var(--transition-base);
}

a[class*="chevron"]:hover::after,
a[class*="-link"]:hover::after {
    transform: translateX(var(--spacing-xs));
}

/* Ensure all chevron icons are consistent */
.chevron-right,
.fa-chevron-right,
.icon-chevron {
    transition: transform var(--transition-base);
}

/* Apply hover effect to parent containers with chevron children */
a:hover .chevron-right,
a:hover .fa-chevron-right,
a:hover .icon-chevron,
a:hover [class*="chevron"],
a:hover [class*="arrow"] {
    transform: translateX(var(--spacing-xs));
}

/* ========================================
   Hide Featured Images & Content Globally (except in blog section)
======================================== */
/* Temporarily commented out to allow blog images to show */
/*
.post-thumbnail,
.wp-post-image,
img.wp-post-image,
.featured-image,
.entry-thumbnail {
    display: none !important;
}
*/

/* If you need to hide featured images elsewhere, add specific selectors here */

/* Hide the_content areas */
.entry-content,
.post-content,
.content-wrapper .container,
.page-content {
    display: none !important;
}

/* ========================================
   Careers Page
======================================== */

.careers-page .careers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    padding: var(--spacing-3xl) var(--spacing-lg);
    max-width: 700px;
    margin: 0 auto;
}

.careers-page .careers-title {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.careers-page .careers-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Theme styles will be organized in separate CSS files */
