/*
============================================================
SREE JK DEVELOPERS — GLOBAL COMMON CSS
File: global/common.css

Purpose:
- Global reset
- Design tokens
- Typography
- Layout system
- Containers
- Buttons
- Common cards
- Forms
- Accessibility
- Utility classes
- Global responsive foundation

IMPORTANT:
Do not place page-specific styles here.
============================================================
*/


/* ============================================================
   01. ROOT / DESIGN TOKENS
   ============================================================ */

:root {

    /* --------------------------------------------------------
       Brand Colors
       -------------------------------------------------------- */

    --color-primary: #0B1F3A;
    --color-primary-light: #163B68;
    --color-primary-dark: #071426;

    --color-secondary: #1559A6;
    --color-secondary-light: #2E75C7;
    --color-secondary-dark: #0D3F78;

    --color-accent: #C9A227;
    --color-accent-light: #E1C45A;
    --color-accent-dark: #9A7814;


    /* --------------------------------------------------------
       Background Colors
       -------------------------------------------------------- */

    --color-background: #FFFFFF;
    --color-background-soft: #F7F9FC;
    --color-background-light: #F1F5F9;
    --color-background-dark: #0B1F3A;


    /* --------------------------------------------------------
       Text Colors
       -------------------------------------------------------- */

    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;
    --color-text-white: #FFFFFF;


    /* --------------------------------------------------------
       Border Colors
       -------------------------------------------------------- */

    --color-border: #E2E8F0;
    --color-border-light: #EDF1F5;
    --color-border-dark: #CBD5E1;


    /* --------------------------------------------------------
       Status Colors
       -------------------------------------------------------- */

    --color-success: #15803D;
    --color-success-light: #DCFCE7;

    --color-warning: #B45309;
    --color-warning-light: #FEF3C7;

    --color-error: #B91C1C;
    --color-error-light: #FEE2E2;

    --color-info: #0369A1;
    --color-info-light: #E0F2FE;


    /* --------------------------------------------------------
       Shadows
       -------------------------------------------------------- */

    --shadow-sm:
        0 2px 8px rgba(11, 31, 58, 0.08);

    --shadow-md:
        0 8px 24px rgba(11, 31, 58, 0.12);

    --shadow-lg:
        0 16px 40px rgba(11, 31, 58, 0.16);

    --shadow-xl:
        0 24px 60px rgba(11, 31, 58, 0.20);


    /* --------------------------------------------------------
       Border Radius
       -------------------------------------------------------- */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;


    /* --------------------------------------------------------
       Layout
       -------------------------------------------------------- */

    --container-width: 1280px;

    --container-padding-mobile: 16px;
    --container-padding-tablet: 24px;
    --container-padding-desktop: 32px;


    /* --------------------------------------------------------
       Section Spacing
       -------------------------------------------------------- */

    --section-padding-mobile: 64px;
    --section-padding-tablet: 80px;
    --section-padding-desktop: 100px;


    /* --------------------------------------------------------
       Typography
       -------------------------------------------------------- */

    --font-primary:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-telugu:
        "Noto Sans Telugu",
        "Noto Sans",
        sans-serif;

    --font-fallback:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* --------------------------------------------------------
       Font Sizes
       -------------------------------------------------------- */

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;


    /* --------------------------------------------------------
       Line Heights
       -------------------------------------------------------- */

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;


    /* --------------------------------------------------------
       Transitions
       -------------------------------------------------------- */

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;


    /* --------------------------------------------------------
       Z-Index System
       -------------------------------------------------------- */

    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-header: 1200;
    --z-overlay: 1300;
    --z-modal: 1400;
    --z-toast: 1500;
    --z-floating: 1600;


    /* --------------------------------------------------------
       Focus
       -------------------------------------------------------- */

    --focus-ring:
        0 0 0 3px rgba(21, 89, 166, 0.25);
}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    margin: 0;
    padding: 0;

    background: var(--color-background);
    color: var(--color-text-primary);

    font-family: var(--font-primary);

    font-size: var(--text-base);
    line-height: var(--leading-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}


img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}


img {
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}


p {
    max-width: 75ch;
}


/* ============================================================
   03. LANGUAGE / TELUGU
   ============================================================ */

html[lang="te"],
html[lang="te"] body,
[data-lang="te"],
.lang-te {
    font-family: var(--font-telugu);
}


[data-lang="en"],
.lang-en {
    font-family: var(--font-primary);
}


/* ============================================================
   04. GLOBAL TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: var(--leading-tight);
}


h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}


h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
}


h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}


h4 {
    font-size: var(--text-xl);
}


h5 {
    font-size: var(--text-lg);
}


h6 {
    font-size: var(--text-base);
}


p {
    color: var(--color-text-secondary);
}


.text-primary {
    color: var(--color-primary);
}


.text-secondary {
    color: var(--color-secondary);
}


.text-accent {
    color: var(--color-accent);
}


.text-muted {
    color: var(--color-text-muted);
}


.text-white {
    color: var(--color-text-white);
}


/* ============================================================
   05. LINKS
   ============================================================ */

a {
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}


a:hover {
    color: var(--color-secondary);
}


/* ============================================================
   06. ACCESSIBILITY
   ============================================================ */

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}


::selection {
    background: var(--color-primary);
    color: var(--color-text-white);
}


/* ============================================================
   07. CONTAINER
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-width);

    margin-inline: auto;

    padding-inline: var(--container-padding-mobile);
}


.container-fluid {
    width: 100%;
    padding-inline: var(--container-padding-mobile);
}


/* ============================================================
   08. SECTIONS
   ============================================================ */

.section {
    width: 100%;
    padding-block: var(--section-padding-mobile);
}


.section-white {
    background: var(--color-background);
}


.section-soft {
    background: var(--color-background-soft);
}


.section-light {
    background: var(--color-background-light);
}


.section-dark {
    background: var(--color-primary-dark);
}


.section-primary {
    background: var(--color-primary);
}


/* ============================================================
   09. SECTION HEADER
   ============================================================ */

.section-header {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 40px;
    text-align: center;
}


.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: var(--color-secondary);

    font-size: var(--text-sm);
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.section-title {
    margin-bottom: 16px;

    color: var(--color-primary);

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}


.section-description {
    margin-inline: auto;

    color: var(--color-text-secondary);

    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}


/* ============================================================
   10. BUTTON SYSTEM
   ============================================================ */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;

    padding: 12px 22px;

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    font-size: var(--text-sm);
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    transition:
        background-color var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);

    box-shadow: var(--shadow-sm);
}


.btn-primary:hover {
    background: var(--color-primary-light);
    color: var(--color-text-white);

    box-shadow: var(--shadow-md);
}


.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text-white);
}


.btn-secondary:hover {
    background: var(--color-secondary-dark);
    color: var(--color-text-white);
}


.btn-accent {
    background: var(--color-accent);
    color: #111827;
}


.btn-accent:hover {
    background: var(--color-accent-light);
    color: #111827;
}


.btn-outline {
    background: transparent;
    color: var(--color-primary);

    border-color: var(--color-primary);
}


.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}


.btn-white {
    background: var(--color-background);
    color: var(--color-primary);

    box-shadow: var(--shadow-sm);
}


.btn-white:hover {
    background: var(--color-background-soft);
}


/* ============================================================
   11. CARD SYSTEM
   ============================================================ */

.card {
    background: var(--color-background);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}


.card:hover {
    transform: translateY(-4px);

    border-color: var(--color-border-dark);

    box-shadow: var(--shadow-lg);
}


.card-body {
    padding: 24px;
}


.card-title {
    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: var(--text-xl);
    font-weight: 700;
}


.card-text {
    color: var(--color-text-secondary);

    line-height: var(--leading-relaxed);
}


/* ============================================================
   12. IMAGE SYSTEM
   ============================================================ */

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.image-contain {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.image-rounded {
    border-radius: var(--radius-lg);
}


/* ============================================================
   13. FORM ELEMENTS
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}


.form-label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-text-primary);

    font-size: var(--text-sm);
    font-weight: 600;
}


.form-control {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    background: var(--color-background);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    color: var(--color-text-primary);

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.form-control::placeholder {
    color: var(--color-text-light);
}


.form-control:focus {
    border-color: var(--color-secondary);

    box-shadow: var(--focus-ring);
}


textarea.form-control {
    min-height: 140px;
    resize: vertical;
}


/* ============================================================
   14. GRID SYSTEM
   ============================================================ */

.grid {
    display: grid;
}


.grid-1 {
    grid-template-columns: 1fr;
}


.grid-2 {
    grid-template-columns: 1fr;
}


.grid-3 {
    grid-template-columns: 1fr;
}


.grid-4 {
    grid-template-columns: 1fr;
}


.gap-sm {
    gap: 12px;
}


.gap-md {
    gap: 20px;
}


.gap-lg {
    gap: 32px;
}


.gap-xl {
    gap: 48px;
}


/* ============================================================
   15. FLEX UTILITIES
   ============================================================ */

.flex {
    display: flex;
}


.flex-column {
    flex-direction: column;
}


.flex-wrap {
    flex-wrap: wrap;
}


.items-center {
    align-items: center;
}


.items-start {
    align-items: flex-start;
}


.items-end {
    align-items: flex-end;
}


.justify-center {
    justify-content: center;
}


.justify-between {
    justify-content: space-between;
}


.justify-start {
    justify-content: flex-start;
}


.justify-end {
    justify-content: flex-end;
}


/* ============================================================
   16. SPACING UTILITIES
   ============================================================ */

.mt-auto {
    margin-top: auto;
}


.mb-auto {
    margin-bottom: auto;
}


.mx-auto {
    margin-inline: auto;
}


.text-center {
    text-align: center;
}


.text-left {
    text-align: left;
}


.text-right {
    text-align: right;
}


/* ============================================================
   17. VISIBILITY
   ============================================================ */

.hidden {
    display: none !important;
}


.visible {
    visibility: visible;
}


.invisible {
    visibility: hidden;
}


/* ============================================================
   18. OVERFLOW
   ============================================================ */

.overflow-hidden {
    overflow: hidden;
}


.overflow-auto {
    overflow: auto;
}


/* ============================================================
   19. BACKGROUNDS
   ============================================================ */

.bg-white {
    background: var(--color-background);
}


.bg-soft {
    background: var(--color-background-soft);
}


.bg-primary {
    background: var(--color-primary);
}


.bg-secondary {
    background: var(--color-secondary);
}


.bg-accent {
    background: var(--color-accent);
}


/* ============================================================
   20. WIDTH / HEIGHT
   ============================================================ */

.w-full {
    width: 100%;
}


.h-full {
    height: 100%;
}


.min-h-screen {
    min-height: 100vh;
}


/* ============================================================
   21. POSITION
   ============================================================ */

.relative {
    position: relative;
}


.absolute {
    position: absolute;
}


.fixed {
    position: fixed;
}


.sticky {
    position: sticky;
}


/* ============================================================
   22. ASPECT RATIO
   ============================================================ */

.aspect-square {
    aspect-ratio: 1 / 1;
}


.aspect-video {
    aspect-ratio: 16 / 9;
}


/* ============================================================
   23. GLOBAL TRANSITIONS
   ============================================================ */

.transition {
    transition:
        all var(--transition-normal);
}


/* ============================================================
   24. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* ============================================================
   25. TABLET
   ============================================================ */

@media (min-width: 768px) {

    .container {
        padding-inline: var(--container-padding-tablet);
    }

    .container-fluid {
        padding-inline: var(--container-padding-tablet);
    }

    .section {
        padding-block: var(--section-padding-tablet);
    }

    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   26. DESKTOP
   ============================================================ */

@media (min-width: 1024px) {

    .container {
        padding-inline: var(--container-padding-desktop);
    }

    .container-fluid {
        padding-inline: var(--container-padding-desktop);
    }

    .section {
        padding-block: var(--section-padding-desktop);
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* ============================================================
   27. LARGE DESKTOP
   ============================================================ */

@media (min-width: 1280px) {

    .container {
        padding-inline: 0;
    }

}


/* ============================================================
   END OF GLOBAL COMMON CSS
   ============================================================ */