/*!
Theme Name: ayurveda
Theme URI: https://forms.srhu.edu.in/ayurveda/
Author: SRHU Ayurveda Centre
Description: Theme for the Ayurveda Centre, Swami Rama Himalayan University.
Version: 1.1.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ayurveda

Built on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Design tokens
   Change a value here and every page follows. Colours are the brand palette;
   the type scale and layout sizes are fluid, so they grow and shrink smoothly
   between phone and large desktop without per-breakpoint overrides.
   ========================================================================== */

:root {
    /* Fonts */
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;

    /* Colours */
    --body-bg: #fdf4e5;
    --color-primary: #481f0e;
    --color-light-primary: #b3781e;
    --color-secondary: #003776;
    --color-light-gray: #f2f5f8;
    --color-black: #000;
    --color-white: #fff;
    --color-green: #779681;
    --color-dark-green: #474b30;
    --color-care: #93401f;
    --color-learning: #0b3774;
    --color-knowledge: #a26c10;
    --color-journey-ochre: #b57636;
    --color-journey-brown: #604331;
    --color-journey-sand: #e1b893;
    --color-journey-rust: #97462f;
    --color-journey-blue-grey: #b3bec0;

    /* Type scale (min at ~375px wide, max at ~1600px wide) */
    --fs-display: clamp(2.375rem, 1.6rem + 2.2vw, 3.75rem);   /* 38 - 60  hero titles */
    --fs-h2: clamp(1.875rem, 1.35rem + 1.5vw, 2.75rem);       /* 30 - 44  section titles */
    --fs-h3: clamp(1.375rem, 1.1rem + 0.75vw, 1.75rem);       /* 22 - 28  sub-headings */
    --fs-h4: clamp(1.1875rem, 1.05rem + 0.35vw, 1.4375rem);   /* 19 - 23  card titles */
    --fs-lead: clamp(1.0625rem, 0.95rem + 0.25vw, 1.1875rem); /* 17 - 19  intro text */
    --fs-body: 1rem;                                          /* 16       paragraphs */
    --fs-small: 0.875rem;                                     /* 14       card text, captions */
    --fs-xs: 0.8125rem;                                       /* 13       kickers, buttons, labels */

    /* Layout. --header-h is the fixed top bar's height; assets/js/mega-menu.js
       keeps it exact, these values are the fallback before the script runs. */
    --header-h: 86px;
    --gutter: 20px;
    --container-max: 1320px;
    /* Left/right edge of the container, for half-width panels that bleed to
       the screen edge but keep their text in line with the page content. */
    --container-edge: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter)));
    --hero-h: clamp(460px, 40vw, 620px);
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-max: 1520px;
    }
}

@media (max-width: 1299px) {
    :root {
        --header-h: 92px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 88px;
    }
}

/* ==========================================================================
   Base
   ========================================================================== */

html,
body {
    overflow-x: hidden;
}

/* "html body" outranks the body{padding:0} WordPress prints inline. */
html body {
    width: 100%;
    margin: 0;
    padding: var(--header-h) 0 0;
    color: #333;
    background-color: var(--body-bg);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.184;
}

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

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

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

picture {
    position: relative;
    display: block;
}

picture img,
video {
    width: 100%;
}

b,
strong {
    font-weight: 600;
}

textarea {
    resize: none;
}

.form-select:focus,
.form-control:focus {
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--color-white);
    opacity: 0.5;
}

/* Keep the focus ring for keyboard users, hide it for mouse clicks. */
:focus:not(:focus-visible) {
    outline: none;
}

/* ---- Headings and text ---- */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5 {
    position: relative;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    line-height: 1.15;
}

h1,
.h1 {
    font-size: var(--fs-display);
}

h2,
.h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5,
h6 {
    font-size: var(--fs-lead);
}

p {
    margin-bottom: 10px;
    font-family: var(--font-primary);
    font-size: var(--fs-body);
}

.small,
small,
p.small,
.text-small {
    font-size: var(--fs-small);
}

/* ---- Buttons ---- */

.btn-primary,
[type='button'],
[type='reset'],
[type='submit'],
button {
    padding: 10px 20px;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
[type='button']:hover,
[type='reset']:hover,
[type='submit']:hover,
button:hover {
    color: var(--color-white);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-link {
    padding: 0;
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-link svg {
    margin-left: 10px;
}

.btn-link:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

/* One container width for the whole site. Bootstrap steps it down on
   smaller screens; full-width bands simply don't use .container. */
.container {
    max-width: var(--container-max);
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

/* Menu links that jump to a section stop below the fixed header. */
section[id] {
    scroll-margin-top: var(--header-h);
}

/* Vertical rhythm only - side spacing comes from the container. */
.section-padding {
    padding-top: clamp(56px, 7vw, 100px);
    padding-bottom: clamp(56px, 7vw, 100px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    padding: 0 50px;
    background: var(--color-light-gray);
    transition: all 0.3s ease-in 0s;
}

.site-header .container-fluid {
    position: relative;
}

.site-header .custom-logo-link {
    max-width: 240px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right .search-link {
    color: var(--color-secondary);
}

@media (max-width: 1440px) {
    .site-header {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 1300px) {
    .site-header .custom-logo-link {
        max-width: 200px;
    }
}
