﻿/* ===========================================================
   AYURCALL — UNIFIED CORAL 2025 · PURE WHITE
   Global Design Tokens + Typography
=========================================================== */

:root {
    /* -------------------------------------------------------
     BRAND PALETTE
  ------------------------------------------------------- */
    --coral-50: #fff5f3;
    --coral-100: #ffe2dd;
    --coral-200: #ffc6bb;
    --coral-300: #ff9e8e;
    --coral-400: #ff7f6a;
    --coral-500: #ff6f61; /* Primary Coral */
    --coral-600: #e9534f; /* Darker Coral (hover/focus) */
    --coral-700: #cc3d40;
    --coral-light: rgba(233, 83, 79, 0.08);
    /* Supporting Brand Colors */
    --brand-green: #007b6f; /* AyurCall Green accent */
    --brand-gold: #c49a6c; /* Optional accent (for seals, icons) */
    --brand-white: #ffffff;
    --brand-accent: var(--brand-green);
    /* -------------------------------------------------------
     NEUTRALS
  ------------------------------------------------------- */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eee;
    --neutral-300: #ddd;
    --neutral-400: #aaa;
    --neutral-500: #777;
    --neutral-600: #555;
    --neutral-700: #333;
    --neutral-900: #222;
    /* -------------------------------------------------------
     TYPOGRAPHY
  ------------------------------------------------------- */
    --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-alt: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-dark: var(--neutral-900);
    --text-muted: var(--neutral-600);
    --text-light: #fff;
    /* -------------------------------------------------------
     BORDERS, RADII & SHADOWS
  ------------------------------------------------------- */
    --border-color: var(--neutral-200);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 6px 14px rgba(0, 0, 0, 0.12);
    --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.06);
    /* -------------------------------------------------------
     FEEDBACK COLORS
  ------------------------------------------------------- */
    --success-500: #35b56f;
    --success-600: #2da562;
    --warning-500: #ffb74d;
    --danger-500: #e53935;
    --info-500: #007bff;
    /* -------------------------------------------------------
     LAYOUT CONSTANTS
  ------------------------------------------------------- */
    --content-max: 1280px;
    --header-height: 62px;
    --z-header: 1000;
    --z-dropdown: 1500;
    --z-overlay: 2000;
    /* -------------------------------------------------------
     ANIMATION & TRANSITIONS
  ------------------------------------------------------- */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* -------------------------------------------------------
     BACKGROUNDS
  ------------------------------------------------------- */
    --bg-page: #ffffff;
    --bg-light: #fafafa;
    --bg-muted: #f9f9f9;
    --bg-accent: var(--coral-50);
    --overlay-bg: rgba(255, 255, 255, 0.98);
}


/* ===========================================================
   GLOBAL RESET & TYPOGRAPHY BASE
=========================================================== */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Normalize spacing */
h1, h2, h3, h4, h5, h6, p {
    margin: 0 0 0.5em 0;
}

ul, ol {
    margin: 0 0 1em 1.25em;
    padding: 0;
}

/* ===========================================================
   HEADINGS
=========================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
}

/* Desktop hierarchy */
h1 {
    font-size: 2rem;
}
/* ~32px */
h2 {
    font-size: 1.5rem;
}
/* ~24px */
h3 {
    font-size: 1.25rem;
}
/* ~20px */
h4 {
    font-size: 1.125rem;
}
/* ~18px */
h5 {
    font-size: 1rem;
}
/* ~16px */
h6 {
    font-size: 0.875rem;
}
/* ~14px */

/* Accent span inside headings */
h1 span, h2 span {
    color: var(--brand-accent);
}

/* ===========================================================
   TEXT / INLINE
=========================================================== */
p, li, span, input, select, textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
}

button {
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: color var(--transition-base), transform var(--transition-base);
}

/* Accessibility focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ===========================================================
   RESPONSIVE TYPOGRAPHY
=========================================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5, h6 {
        font-size: 0.9rem;
    }
}

/* ===========================================================
   UTILITIES
=========================================================== */
.text-accent {
    color: var(--brand-accent) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

/* UNIVERSAL INTERACTIVE RESET — removes mobile tap flash globally */
* {
    -webkit-tap-highlight-color: transparent;
}

@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important; /* minimum required to prevent zoom */
    }
}

/* ------------------------------------------------------------
   A11y utility — keep labels for screen readers, hide visually
------------------------------------------------------------ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
