/* ===== Root Variables ===== */
:root {
    /* Colors from Customizer */
    --color-primary: #38BDF8;
    --color-secondary: #386DF8;
    --color-accent: #FBBF24;
    --color-text-primary: #1E293B;
    --color-text-secondary: #64748B;
    --color-background: #F4F4F4;


    /** Colors **/
    --color-white: #fff;
    --color-light-border: #dce1e4;

    /* Fonts from Customizer */
    --font-heading: 'Work Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;


    --linear-gradient-btn: linear-gradient(315deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --shadow-menu-link: 0px 2px 8px var(--color-light-border), -5px -5px 15px #ffffff;
    --shadow-white: 5px 5px 15px var(--color-light-border), -5px -5px 15px #ffffff;
    --shadow-btn: 5px 5px 15px var(#f8fbff), -5px -5px 15px #f8fbff;
    --gradient-white: linear-gradient(145deg, #e2e8ec, #ffffff);
}

/* ===== Global Styles ===== */
* {
    box-sizing: border-box; /* Makes padding and border included in width */
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

/* Paragraphs */
p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

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

/* Buttons */
button,
button[type="submit"],
input[type="submit"] {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}
button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-secondary);
}


/* ===== Responsive Container ===== */
.full-width {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1800px; /* Default max-width for ultra-wide screens */
    margin: 0 auto !important;
    padding: var(--space-lg); /* Default padding for large screens */
}

/* ===== Max-width Media Queries ===== */
@media (max-width: 1535px) {  /* 2XL screens */
.container {
    max-width: 1536px;
}
}

@media (max-width: 1279px) {  /* XL screens */
.container {
    max-width: 1280px;
}
}

@media (max-width: 1023px) {  /* Large screens */
.container {
    max-width: 1024px;
    padding: var(--space-lg);
}
}

@media (max-width: 767px) {   /* Medium-large screens */
.container {
    max-width: 768px;
}
}

@media (max-width: 639px) {   /* Medium screens */
.container {
    max-width: 640px;
}
}

@media (max-width: 479px) {   /* Small screens */
.container {
    max-width: 480px;
    padding: var(--space-md);
}
}

/* ===== Spacing Helpers ===== */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* ===== Responsive Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Utility Classes for Flexbox ===== */
/* Flex basics */
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column { flex-direction: column; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Align items (vertical alignment) */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

/* Justify content (horizontal alignment) */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Align self (for individual flex items) */
.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }
.self-stretch { align-self: stretch; }

/* Gap (space between flex items) */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Common combinations */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap-center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.flex-wrap-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.flex-column-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flex-column-between { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }


/* ===== List ===== */
ul{
    margin: 0;
}


/* ===== Buttons ===== */
.btn{
    align-items: center;
    background: var(--color-primary);
    border: 0 none;
    border-radius: 50px;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    outline: none;
    padding: 0.5rem 1.5rem;
    position: relative;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .4s ease-in-out;
    z-index: 1; 
}
.btn:hover{
    box-shadow: var(--shadow-btn);
    transform: translateY(-2px);
}
.btn.btn-light{
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: var(--shadow-white);
    border: 1px solid var(--color-light-border);
}
.btn.btn-light:hover{
    color: var(--color-white);
}
.btn-light:before {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    background: var(--linear-gradient-btn);
    opacity: .06;
    transform: scale(0);
    transition: all .4s ease;
    z-index: -1;
}
.btn-light:hover:before {
    transform: scale(1);
    opacity: 1;
}

.btn.btn-linear-primary{
    background: var(--linear-gradient-btn);
     color: var(--color-white) !important; 
}
.btn-linear-primary:before{
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    background: var(--color-primary);
    opacity: .06;
    transform: scale(0);
    transition: all .4s ease;
    z-index: -1;
}
.btn-linear-primary:hover:before {
    transform: scale(1);
    opacity: 1;
}
