/**
 * Port ajrin3/src/styles/theme.css (svetla tema) + mostovi za Laravel.
 * Kad se tokeni promene u React projektu, ažuriraj i ovaj fajl.
 */
:root {
    --font-size: 16px;
    --background: #faf8f4;
    --foreground: #3d3226;
    --card: #fefdfb;
    --card-foreground: #3d3226;
    --popover: #fefdfb;
    --popover-foreground: #3d3226;
    --primary: #c9a96e;
    --primary-foreground: #fefdfb;
    --secondary: #e8dcc8;
    --secondary-foreground: #3d3226;
    --muted: #ede6d6;
    --muted-foreground: #8b7355;
    --accent: #b8935e;
    --accent-foreground: #fefdfb;
    --destructive: #b85c5c;
    --destructive-foreground: #fefdfb;
    --border: rgba(201, 169, 110, 0.2);
    --input: transparent;
    --input-background: #f5f1e8;
    --switch-background: #d4c4ad;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: #c9a96e;
    --chart-1: #c9a96e;
    --chart-2: #b8935e;
    --chart-3: #a67c52;
    --chart-4: #8b7355;
    --chart-5: #e8dcc8;
    --radius: 0.625rem;
    --sidebar: #f5f1e8;
    --sidebar-foreground: #3d3226;
    --sidebar-primary: #c9a96e;
    --sidebar-primary-foreground: #fefdfb;
    --sidebar-accent: #ede6d6;
    --sidebar-accent-foreground: #3d3226;
    --sidebar-border: rgba(201, 169, 110, 0.2);
    --sidebar-ring: #c9a96e;

    /* Kao @theme inline u ajrin3 (bez Tailwind procesora) */
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);
    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);
    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);
    --color-border: var(--border);
    --color-input: var(--input);
    --color-input-background: var(--input-background);
    --color-switch-background: var(--switch-background);
    --color-ring: var(--ring);
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);

    /* marketing-figma.css */
    --mkt-background: var(--background);
    --mkt-foreground: var(--foreground);
    --mkt-card: var(--card);
    --mkt-primary: var(--primary);
    --mkt-primary-foreground: var(--primary-foreground);
    --mkt-secondary: var(--secondary);
    --mkt-muted: var(--muted);
    --mkt-muted-foreground: var(--muted-foreground);
    --mkt-accent: var(--accent);
    --mkt-border: var(--border);
    --mkt-radius: var(--radius);
    --mkt-font-sans: "Inter", "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mkt-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    /* custom.css / Blade (.text-primary, .bg-primary, …) */
    --ajr-background: var(--background);
    --ajr-foreground: var(--foreground);
    --ajr-card: var(--card);
    --ajr-primary: var(--primary);
    --ajr-primary-foreground: var(--primary-foreground);
    --ajr-accent: var(--accent);
    --ajr-secondary: var(--secondary);
    --ajr-muted: var(--muted);
    --ajr-muted-foreground: var(--muted-foreground);
    --ajr-border: var(--border);
    --ajr-ring: rgba(201, 169, 110, 0.35);
    --ajr-radius: var(--radius);
    --ajr-footer: #ebe6dc;
    --color-primary-dark: var(--accent);
    --color-accent: var(--accent);
    --color-accent-dark: #9a7b4f;
    --color-light: var(--muted);
    --color-pulse-brown: var(--foreground);
    --color-pulse-brown-light: #2a231c;
    --color-pulse-cream: var(--input-background);
    --color-pulse-gold: var(--primary);
    --sidebar-bg: var(--sidebar);
    --sidebar-bg-dark: var(--muted);
    --sidebar-hover: rgba(201, 169, 110, 0.18);
    --sidebar-active: rgba(201, 169, 110, 0.35);
}

html {
    font-size: var(--font-size);
}

/* Kao body u ajrin3 @layer base (samo marketing školjka) */
.marketing-body.marketing-figma {
    font-family: var(--mkt-font-sans);
    font-size: 16px;
    background-color: var(--background) !important;
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

.marketing-figma .font-display,
.marketing-figma h1,
.marketing-figma h2,
.marketing-figma h3,
.marketing-figma .ajr-figma-kicker {
    font-family: var(--mkt-font-display);
}

.marketing-figma .text-ajr-fg {
    color: var(--foreground) !important;
}

.marketing-figma .text-primary {
    color: var(--primary) !important;
}

/* Hero overlay: bg-gradient-to-b … to-background/90 */
.ajr-hero-overlay-ajrin3 {
    background: linear-gradient(to bottom, transparent, transparent, rgba(250, 248, 244, 0.9));
}

/* Dugmad kao shadcn default + Hero override hover:bg-accent */
.ajr-hero-btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ajr-hero-btn-primary:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.ajr-hero-btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: var(--background);
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ajr-hero-btn-outline:hover {
    background-color: rgba(201, 169, 110, 0.1);
}

/* ServiceTabs: bg-background border-y border-primary/20 */
.ajr-service-tabs-bar {
    background-color: var(--background);
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.ajr-service-tab-btn {
    text-decoration: none;
}

.ajr-service-tab-btn--solid {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid transparent;
}

.ajr-service-tab-btn--solid:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.ajr-service-tab-btn--outline {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.ajr-service-tab-btn--outline:hover {
    background-color: rgba(201, 169, 110, 0.1);
}

/* Header: bg-background/95 backdrop-blur border-border */
.ajr-ajrin3-header {
    background: rgba(250, 248, 244, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.ajr-header-home-icon {
    color: #d4af37;
    text-decoration: none;
}

.ajr-header-home-icon:hover {
    color: #1a1a1a;
    background: rgba(237, 230, 214, 0.5);
}

.ajr-nav-ajrin3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(61, 50, 38, 0.8);
    text-decoration: none;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .ajr-nav-ajrin3 {
        font-size: 1rem;
    }
}

.ajr-nav-ajrin3:hover {
    color: var(--primary);
}

.ajr-nav-ajrin3--pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--primary);
    color: var(--primary-foreground) !important;
}

.ajr-nav-ajrin3--pill:hover {
    background-color: var(--accent);
    color: var(--accent-foreground) !important;
}

.ajr-nav-ajrin3--btn:hover {
    color: var(--primary);
}

.ajr-header-lang-ajrin3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ajr-header-lang-ajrin3:hover {
    background: rgba(237, 230, 214, 0.35);
}

.ajr-instructor-avatar-ring {
    background: linear-gradient(to bottom right, rgba(201, 169, 110, 0.22), rgba(184, 147, 94, 0.22));
}

/* ───────────────────────────────────────────────────────────────────────────
   Tailwind 2.2 CDN (tailwind.min.css) NEMA JIT — klase tipa min-h-[600px],
   aspect-[…], tracking-[0.3em], min-h-10 se NE generišu i strana izgleda „prazno“.
   Ovo pokriva početnu (welcome) i marketing školjku.
   ─────────────────────────────────────────────────────────────────────────── */

.ajr-figma-hero.ajr-figma-hero--match-spa {
    min-height: 600px;
}

@media (min-width: 768px) {
    .ajr-figma-hero.ajr-figma-hero--match-spa {
        min-height: 800px;
    }
}

.ajr-figma-hero--match-spa > .absolute.inset-0.z-0 {
    min-height: 100%;
}

.ajr-figma-hero--match-spa picture {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
}

.ajr-figma-hero--match-spa picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.1);
}

.marketing-figma .ajr-figma-kicker {
    letter-spacing: 0.3em;
}

.marketing-figma main #about,
.marketing-figma main #classes,
.marketing-figma main #instructors,
.marketing-figma main #pricing {
    scroll-margin-top: 6rem;
}

/* Mobilni meni — aktivna tekstualna stavka */
.marketing-body #marketing-mobile-nav a.marketing-mobile-nav-link--active,
.marketing-body #marketing-mobile-nav a.marketing-mobile-nav-link[aria-current="page"] {
    font-weight: 700 !important;
    color: var(--primary, #c9a96e) !important;
    background-color: rgba(201, 169, 110, 0.14) !important;
    border: 1px solid rgba(201, 169, 110, 0.45) !important;
}

.ajr-home-offering-media {
    aspect-ratio: 1511 / 2353;
    max-height: 420px;
}

.ajr-hero-btn-primary,
.ajr-hero-btn-outline {
    min-height: 2.5rem;
    box-sizing: border-box;
}

/* Ujedinjen hero (tabovi + kompozit + logo + „Zavirite…“ + CTA) — referentni krem + radijal */
.ajr-home-hero-unified {
    position: relative;
    background-color: #fdf9f3;
}

.ajr-home-hero-radial {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 95% 75% at 50% 22%, rgba(255, 255, 255, 0.88) 0%, rgba(253, 249, 243, 0.55) 42%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(201, 169, 110, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 88% 75%, rgba(201, 169, 110, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #fdf9f3 0%, #faf6f0 50%, #f5efe6 100%);
}

.ajr-home-hero-composite-img {
    filter: drop-shadow(0 4px 28px rgba(255, 255, 255, 0.75));
}

/* Početna — paketi: padding u bundle-u (pb-8 nije u build-u) */
.ajr-home-pricing-card__head {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

@media (min-width: 640px) {
    .ajr-home-pricing-card__head {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }
}

.ajr-home-pricing-card__foot {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

@media (min-width: 640px) {
    .ajr-home-pricing-card__foot {
        padding-bottom: 1.5rem;
    }
}

/* Početna — malo više razmaka na uskom ekranu (paketi, sekcije) */
@media (max-width: 639px) {
    main #pricing {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    main #pricing .grid {
        row-gap: 2rem;
    }

    main #pricing .grid > div[class*="border-primary"] {
        margin-top: 1.25rem;
    }

    main #instructors,
    main #testimonials,
    main #classes [class*="py-12"] {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }
}
