/*
Theme Name: Astra Child - Aakash CIMS
Theme URI: https://cimsmathura.com/
Description: Astra child theme customized for Aakash CIMS Super Speciality Hospitals brand identity. Implements official brand colors, typography hierarchy, and UI components per the Aakash Healthcare Brand Manual 2024.
Author: Aakash CIMS
Author URI: https://cimsmathura.com/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-aakash-cims
*/

/* ==========================================================================
   AAKASH CIMS — BRAND TOKENS
   Source: Aakash Healthcare Brand Manual 2024
   ========================================================================== */

:root {
    /* Brand colors — exact values from brand manual */
    --acims-blue: #0060AA;          /* Primary — trust, wisdom, calm */
    --acims-red: #E51A4B;           /* Accent — care, compassion, love */
    --acims-grey-dark: #434242;     /* Secondary text */
    --acims-grey-darker: #2B2A29;   /* Headings, near-black */

    /* Derived shades for hover/active states */
    --acims-blue-hover: #004A85;
    --acims-blue-light: #E6F0F8;
    --acims-blue-pale: #F4F8FB;
    --acims-red-hover: #C2153F;
    --acims-red-light: #FCE8ED;

    /* Neutrals */
    --acims-white: #FFFFFF;
    --acims-off-white: #FAFBFC;
    --acims-grey-100: #F4F5F7;
    --acims-grey-200: #E5E7EB;
    --acims-grey-300: #D1D5DB;
    --acims-grey-500: #6B7280;

    /* Typography — Google Fonts substitutes for licensed brand fonts */
    --acims-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --acims-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --acims-font-tagline: 'Lora', Georgia, serif;

    /* Spacing scale (8pt grid) */
    --acims-space-1: 0.5rem;
    --acims-space-2: 1rem;
    --acims-space-3: 1.5rem;
    --acims-space-4: 2rem;
    --acims-space-5: 3rem;
    --acims-space-6: 4rem;
    --acims-space-7: 6rem;

    /* Radii */
    --acims-radius-sm: 4px;
    --acims-radius-md: 8px;
    --acims-radius-lg: 16px;

    /* Shadows */
    --acims-shadow-sm: 0 1px 2px rgba(43, 42, 41, 0.06), 0 1px 3px rgba(43, 42, 41, 0.04);
    --acims-shadow-md: 0 4px 6px rgba(43, 42, 41, 0.05), 0 10px 15px rgba(43, 42, 41, 0.08);
    --acims-shadow-lg: 0 20px 25px rgba(43, 42, 41, 0.10), 0 10px 10px rgba(43, 42, 41, 0.04);

    /* Transitions */
    --acims-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

body,
.ast-container,
.entry-content {
    font-family: var(--acims-font-body);
    color: var(--acims-grey-dark);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
    font-family: var(--acims-font-heading);
    color: var(--acims-grey-darker);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1, .entry-title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.25rem; }

a {
    color: var(--acims-blue);
    text-decoration: none;
    transition: color var(--acims-transition);
}

a:hover, a:focus {
    color: var(--acims-red);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--acims-white) !important;
    box-shadow: var(--acims-shadow-sm);
    border-bottom: 3px solid var(--acims-blue);
}

.main-header-bar {
    background: var(--acims-white) !important;
    padding: 0.75rem 0;
}

.main-navigation .menu > li > a,
.main-header-menu > li > a {
    font-family: var(--acims-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--acims-grey-darker) !important;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0.5rem 1rem;
    transition: color var(--acims-transition);
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-header-menu > li > a:hover,
.main-header-menu > li.current-menu-item > a {
    color: var(--acims-blue) !important;
}

.main-navigation .menu > li.current-menu-item > a {
    border-bottom: 2px solid var(--acims-red);
}

/* ==========================================================================
   BUTTONS — Brand-compliant primary/secondary
   ========================================================================== */

.wp-block-button__link,
.button,
button,
input[type="submit"],
.ast-button,
.elementor-button,
a.button {
    font-family: var(--acims-font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem !important;
    border-radius: var(--acims-radius-md) !important;
    border: 2px solid transparent !important;
    background: var(--acims-blue) !important;
    color: var(--acims-white) !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all var(--acims-transition);
    box-shadow: var(--acims-shadow-sm);
    display: inline-block;
    text-decoration: none !important;
}

.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.ast-button:hover,
.elementor-button:hover,
a.button:hover {
    background: var(--acims-blue-hover) !important;
    color: var(--acims-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--acims-shadow-md);
}

/* Secondary button variant — red accent */
.acims-btn-accent,
.elementor-button.acims-accent {
    background: var(--acims-red) !important;
    color: var(--acims-white) !important;
}

.acims-btn-accent:hover,
.elementor-button.acims-accent:hover {
    background: var(--acims-red-hover) !important;
}

/* Outline button variant */
.acims-btn-outline {
    background: transparent !important;
    color: var(--acims-blue) !important;
    border: 2px solid var(--acims-blue) !important;
}

.acims-btn-outline:hover {
    background: var(--acims-blue) !important;
    color: var(--acims-white) !important;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    font-family: var(--acims-font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--acims-grey-200);
    border-radius: var(--acims-radius-md);
    background: var(--acims-white);
    color: var(--acims-grey-darker);
    transition: border-color var(--acims-transition), box-shadow var(--acims-transition);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--acims-blue);
    box-shadow: 0 0 0 3px rgba(0, 96, 170, 0.12);
    outline: none;
}

label {
    font-family: var(--acims-font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--acims-grey-darker);
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */

.acims-card {
    background: var(--acims-white);
    border-radius: var(--acims-radius-lg);
    padding: 2rem;
    box-shadow: var(--acims-shadow-sm);
    border: 1px solid var(--acims-grey-200);
    transition: all var(--acims-transition);
}

.acims-card:hover {
    box-shadow: var(--acims-shadow-md);
    transform: translateY(-2px);
    border-color: var(--acims-blue-light);
}

/* ==========================================================================
   SECTION TITLES (universal pattern)
   ========================================================================== */

.acims-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.acims-section-title .eyebrow {
    font-family: var(--acims-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--acims-red);
    margin-bottom: 0.5rem;
    display: block;
}

.acims-section-title h2 {
    color: var(--acims-grey-darker);
    margin-bottom: 1rem;
}

.acims-section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--acims-blue) 50%, var(--acims-red) 50%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer,
.ast-footer-overlay {
    background: var(--acims-grey-darker) !important;
    color: var(--acims-grey-200) !important;
    padding: 4rem 0 2rem !important;
}

.site-footer a,
.site-footer .widget-title {
    color: var(--acims-white) !important;
}

.site-footer a:hover {
    color: var(--acims-red) !important;
}

.site-footer .widget-title {
    font-family: var(--acims-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--acims-blue);
    display: inline-block;
}

/* ==========================================================================
   OVERRIDES — kill the old green/teal theme, replace gradients
   ========================================================================== */

/* Remove the dated wave/gradient backgrounds visible in current site */
.has-background-gradient,
[style*="background: linear-gradient"][style*="green"],
[style*="background: linear-gradient"][style*="teal"] {
    background: var(--acims-blue-pale) !important;
}

/* Old teal CTA strip → brand blue */
.cta-strip,
.appointment-cta {
    background: var(--acims-blue) !important;
    color: var(--acims-white) !important;
    padding: 3rem 0 !important;
    text-align: center;
}

.cta-strip h2,
.cta-strip h3,
.appointment-cta h2 {
    color: var(--acims-white) !important;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

*:focus-visible {
    outline: 3px solid var(--acims-blue);
    outline-offset: 2px;
    border-radius: var(--acims-radius-sm);
}

.skip-link:focus {
    background: var(--acims-blue);
    color: var(--acims-white);
    padding: 1rem 1.5rem;
}

/* Sufficient contrast for placeholder text */
::placeholder {
    color: var(--acims-grey-500);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    h1, .entry-title { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    .acims-card { padding: 1.5rem; }

    .wp-block-button__link,
    .button,
    .elementor-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
