/*
Theme Name: Manattva
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A custom Elementor-compatible WordPress theme for Manattva
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manattva
Tags: elementor, custom-theme, mental-health
*/

/* =============================================
   ROOT VARIABLES — LOCKED DESIGN SYSTEM
============================================= */
:root {
    /* Typography */
    --font-heading: 'PF Marlet Display', serif;
    --font-body:    'Karla', sans-serif;

    /* Colors */
    --color-primary:        #FF6B6B;
    --color-primary-hover:  #E53E3E;
    --color-text-dark:      #2D3748;
    --color-text-body:      #4A5568;
    --color-text-light:     #718096;
    --color-bg-light:       #F7FAFC;
    --color-bg-white:       #FFFFFF;
    --color-border:         #E2E8F0;

    /* Container */
    --container-width:      1200px;
    --section-padding-y:    100px;
    --section-padding-x:    0px;

    /* Border Radius */
    --radius-sm:            4px;
    --radius-md:            6px;
    --radius-lg:            12px;
    --radius-full:          9999px;

    /* Shadows */
    --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg:            0 10px 30px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast:      all 0.2s ease;
    --transition-default:   all 0.3s ease;
    --transition-slow:      all 0.5s ease;
}

/* =============================================
   GLOBAL RESET
============================================= */
*,
*::before,
*::after {
    margin:     0;
    padding:    0;
    box-sizing: border-box;
}

/* =============================================
   BASE STYLES
============================================= */
html {
    scroll-behavior: smooth;
    font-size:       100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:              var(--font-body);
    font-size:                18px;
    font-weight:              400;
    line-height:              1.7;
    color:                    var(--color-text-body);
    background-color:         var(--color-bg-white);
    -webkit-font-smoothing:   antialiased;
    -moz-osx-font-smoothing:  grayscale;
    text-rendering:           optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:    var(--font-heading);
    font-weight:    700;
    color:          var(--color-text-dark);
    line-height:    1.3;
    margin-bottom:  0;
}

p {
    font-family:    var(--font-body);
    color:          var(--color-text-body);
    line-height:    1.7;
    margin-bottom:  0;
}

a {
    color:           var(--color-primary);
    text-decoration: none;
    transition:      var(--transition-default);
}

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

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

ul,
ol {
    list-style: none;
    margin:     0;
    padding:    0;
}

button {
    cursor:     pointer;
    border:     none;
    background: none;
    font-family: var(--font-body);
}

input,
textarea,
select {
    font-family: var(--font-body);
    font-size:   16px;
}

/* =============================================
   ELEMENTOR GLOBAL OVERRIDES
============================================= */
.elementor-section .elementor-container {
    max-width: var(--container-width);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color:       var(--color-text-dark);
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    font-family: var(--font-body);
    color:       var(--color-text-body);
    line-height: 1.7;
}

.elementor-widget-button .elementor-button {
    font-family:     var(--font-body);
    font-weight:     600;
    border-radius:   var(--radius-md);
    transition:      var(--transition-default);
}

.elementor-widget-image img {
    border-radius: var(--radius-md);
}

/* =============================================
   MOBILE MENU
============================================= */
.mobile-menu-toggle {
    display:    none;
    cursor:     pointer;
    background: none;
    border:     none;
    padding:    8px;
}

.mobile-menu {
    display:    none;
    width:      100%;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.mobile-menu.is-active {
    display: block;
}

/* =============================================
   SCROLL TO TOP
============================================= */
.manattva-scroll-top {
    position:        fixed;
    bottom:          30px;
    right:           30px;
    z-index:         9999;
    display:         none;
    align-items:     center;
    justify-content: center;
    width:           44px;
    height:          44px;
    background:      var(--color-primary);
    border-radius:   var(--radius-full);
    box-shadow:      var(--shadow-md);
    cursor:          pointer;
    transition:      var(--transition-default);
    border:          none;
}

.manattva-scroll-top.is-visible {
    display: flex;
}

.manattva-scroll-top:hover {
    background:  var(--color-primary-hover);
    box-shadow:  var(--shadow-lg);
    transform:   translateY(-2px);
}

.manattva-scroll-top svg {
    width:  20px;
    height: 20px;
    stroke: var(--color-bg-white);
    fill:   none;
}

/* =============================================
   SITE HEADER
============================================= */
.site-header {
    position:         sticky;
    top:              0;
    z-index:          9999;
    background-color: var(--color-bg-white);
    box-shadow:       var(--shadow-sm);
    transition:       var(--transition-default);
}

.site-header .elementor-container {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         20px 0;
}

/* =============================================
   SITE FOOTER
============================================= */
.site-footer {
    background-color: var(--color-text-dark);
    color:            var(--color-bg-white);
}

.site-footer .elementor-heading-title,
.site-footer p,
.site-footer a {
    color: var(--color-bg-white);
}

.site-footer a:hover {
    color: var(--color-primary);
}
