/* ======================================================================
   Dr. Sarthak Walia Orthopedic Website - Core Design System & Reset
   ====================================================================== */

:root {
    /* The Ved Clinic — Royal Teal & Gold Color Palette */
    --color-primary: #0C5A5A;                  /* Rich Deep Teal */
    --color-primary-light: #137A7A;            /* Medium Teal (hovers) */
    --color-primary-dark: #073838;             /* Dark Pine Teal (footer/header) */
    
    --color-accent: #E5C27C;                   /* Soft Champagne Gold */
    --color-accent-light: #F2E4C9;             /* Sand Cream Gold */
    --color-accent-dark: #B89650;              /* Dark Ochre Gold */
    
    --color-bg: #FAF8F5;                       /* Warm Ivory White */
    --color-bg-alt: #FFFFFF;                   /* Pure White */
    --color-border: #D8E8E8;                   /* Soft Teal-Tinted Border */
    
    --color-text: #1D2A2A;                     /* Dark Charcoal Teal */
    --color-text-muted: #4A6565;               /* Muted Teal-Slate */
    --color-text-light: #FFFFFF;               /* Contrast White Text */
    
    --color-success: #5F8C62;                  /* Medical Soft Green */
    --color-danger: #B25353;                   /* Medical Muted Red */
    --color-info: #4679A8;                     /* Info Slate Blue */
    --color-warning: #CCA625;                  /* Ochre Amber */

    /* Typography Variables (Roboto Family) */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;

    /* Shadow Settings */
    --shadow-sm: 0 2px 8px rgba(12, 90, 90, 0.06);
    --shadow-md: 0 8px 24px rgba(12, 90, 90, 0.10);
    --shadow-lg: 0 16px 40px rgba(7, 56, 56, 0.14);

    /* Layout Measures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 20px;
    line-height: 1.85;
    overflow-x: hidden;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
    font-size: 22px;
    line-height: 1.85;
    margin-bottom: 1.25em;
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

/* Container Structure */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-padding {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.bg-pinkish-ivory {
    background-color: #F0F8F8; /* Soft teal-mint for paediatrics sections */
}


.text-center { text-align: center; }
.align-center { align-items: center; }

/* Grid Helpers */
.grid-2-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-3-1 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .grid-3-1 {
        grid-template-columns: 1fr;
    }
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-accent:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline-white:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 15px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Alerts System */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: hsl(145, 60%, 95%);
    color: hsl(145, 63%, 25%);
    border-left-color: var(--color-success);
}

.alert-danger {
    background-color: hsl(354, 60%, 95%);
    color: hsl(354, 70%, 25%);
    border-left-color: var(--color-danger);
}

.alert-info {
    background-color: hsl(200, 60%, 95%);
    color: hsl(200, 80%, 25%);
    border-left-color: var(--color-info);
}

/* Badge Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    background: var(--color-border);
    color: var(--color-text);
}

.badge-accent {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--color-primary-light);
    color: var(--color-primary);
}

/* Global Invert Colors Helper */
.color-theme-invert {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}

.color-theme-invert h2,
.color-theme-invert h3 {
    color: var(--color-text-light);
}

/* ======================================================================
   Section Headers & Typography Components
   ====================================================================== */
.intro-section-header,
.specialty-section-header,
.specialists-header,
.testimonials-header,
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 2;
}

/* Center header-divider specifically inside center-aligned headers */
.intro-section-header .header-divider,
.specialty-section-header .header-divider,
.specialists-header .header-divider,
.testimonials-header .header-divider,
.section-header .header-divider {
    margin: 15px auto 0 auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-dark);
    margin-bottom: 8px;
}

.section-title {
    color: var(--color-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.header-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    margin-top: 15px;
}

/* Paragraph section description under titles */
.section-desc,
.section-description {
    font-size: 1.18rem;
    color: var(--color-text-muted);
    margin-top: 15px;
    line-height: 1.75;
}
