/*
 Theme Name:   HealthySun
 Theme URI:    https://www.elegantthemes.com/gallery/divi/
 Description:  Divi Child Theme
 Author:       Salim Hariz
 Author URI:   https://extendedidea.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================================
   Add your custom CSS below this line
   ============================================================================= */

/* ==========================================================================
   1. CSS VARIABLES (THE SOURCE OF TRUTH)
   ========================================================================== */
:root {
    /* --- BRAND COLORS --- */
    /* Update these with your actual HealthySun hex codes */
    --hs-color-primary: #eb4324;   /* Example: Solar Yellow */
    --hs-color-secondary: #403d96; /* Example: Deep Solar Green/Blue */
    --hs-color-text-dark: #1A1A1A;
    --hs-color-text-light: #F9F9F9;
    --hs-color-accent: #E74C3C;

    /* --- TYPOGRAPHY --- */
    /* Use a system font stack or your Google Font imports */
    --hs-font-heading: 'Poppins', 'Helvetica Neue', sans-serif;
    --hs-font-body: 'Open Sans', Helvetica, Arial, sans-serif;

    /* --- SPACING SCALE (Consistency is King) --- */
    --hs-space-xs: 0.5rem;  /* 8px */
    --hs-space-sm: 1rem;    /* 16px */
    --hs-space-md: 2rem;    /* 32px */
    --hs-space-lg: 4rem;    /* 64px */
    --hs-space-xl: 8rem;    /* 128px */
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

/* Pro Tip: We keep html at 100% (usually 16px) to respect user browser settings.
   1rem = 16px approx. 
*/
html {
    font-size: 100%; 
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--hs-font-body);
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    color: var(--hs-color-text-dark);
    -webkit-font-smoothing: antialiased; /* Makes text look sharper on Mac */
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. TYPOGRAPHY (The Headings)
   ========================================================================== */

/* DIVI OVERRIDE NOTE: 
   Divi puts heavy specificity on headers. We might need specific targeting 
   or !important if the Theme Customizer settings are fighting us. 
   Ideally, set Divi Customizer h1-h6 sizes to 'default' or blank.
*/

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hs-font-heading);
    color: var(--hs-color-secondary);
    margin-bottom: var(--hs-space-sm);
    font-weight: 700;
    line-height: 1.2;
}

/* Fluid Typography / Scale */
h1 { font-size: 2.5rem; }   /* 40px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.75rem; }  /* 28px */
h4 { font-size: 1.5rem; }   /* 24px */
h5 { font-size: 1.25rem; }  /* 20px */
h6 { font-size: 1rem; }     /* 16px */

/* Links */
a {
    color: var(--hs-color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hs-color-primary);
}
p{
	font-size: 1.2rem;
}
/* ==========================================================================
   4. DIVI SPECIFIC FIXES
   ========================================================================== */

/* Fix Divi's container width on large screens if you want a wider layout */
@media (min-width: 1400px) {
    .container, .et_pb_row {
        width: 90% !important;
        max-width: 1400px !important;
    }
}

/* Standardize Buttons - Stop styling them individually in the builder! */
.et_pb_button {
    background: var(--hs-color-primary) !important;
    color: var(--hs-color-text-dark) !important;
    border: 2px solid var(--hs-color-primary) !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 4px; /* Slight roundness looks more modern than pill shape for B2B */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.et_pb_button:hover {
    background: transparent !important;
    color: var(--hs-color-primary) !important;
}

/* ==========================================================================
   5. MEDIA QUERIES (Responsive)
   ========================================================================== */

/* Divi Breakpoints:
   Desktop: > 980px
   Tablet: 768px - 980px
   Mobile: < 767px
*/

/* Tablet Styles */
@media screen and (max-width: 980px) {
    :root {
        --hs-space-lg: 3rem; /* Shrink spacing on smaller screens */
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    body {
        font-size: 0.9375rem; /* 15px for better mobile read */
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    /* Make rows stack nicely with proper padding */
    .et_pb_row {
        padding-top: var(--hs-space-md) !important;
        padding-bottom: var(--hs-space-md) !important;
        width: 90% !important;
    }
}