@tailwind base;
@tailwind components;
@tailwind utilities;

[x-cloak] {
    display: none;
}

/* Hero Banner Styles */
.tam-hero {
    background-size: cover;
    background-position: center 34%;
}

.tam-hero__veil {
    background:
        linear-gradient(180deg, rgba(4, 11, 8, 0.12) 0%, rgba(4, 11, 8, 0.26) 22%, rgba(4, 11, 8, 0.72) 70%, rgba(4, 11, 8, 0.92) 100%),
        linear-gradient(90deg, rgba(4, 11, 8, 0.44) 0%, rgba(4, 11, 8, 0.1) 38%, rgba(4, 11, 8, 0.5) 100%);
}

.tam-hero__glow {
    background:
        radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.08), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(255, 214, 127, 0.18), transparent 24%);
}

.tam-hero__title {
    margin: 0;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(3rem, 7.2vw, 5.75rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.075em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
}

.tam-hero__summary {
    margin: 0 auto;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.02rem, 1.7vw, 1.32rem);
    line-height: 1.72;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.tam-hero__accent {
    width: min(100%, 43rem);
    height: 0.42rem;
    margin: 1.85rem auto 1.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #E06338 50%, #469FBF 50%);
    box-shadow: 0 8px 24px rgba(15, 84, 170, 0.3);
}

.tam-hero__button {
    min-width: 15.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tam-hero__button--primary {
    box-shadow: 0 16px 30px rgba(241, 203, 73, 0.45);
}

.tam-hero__button--secondary {
    box-shadow: 0 16px 30px rgba(83, 181, 216, 0.4);
}

.tam-hero__button--tertiary {
    box-shadow: 0 16px 30px rgba(61, 97, 70, 0.4);
}

.tam-hero__button:hover,
.tam-hero__button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.tam-hero__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 782px) {
    .tam-hero__title {
        font-size: clamp(2.65rem, 14vw, 4rem);
        line-height: 0.98;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tam-hero__button {
        transition: none;
    }
}

/* Child Photo Frame */
.child-photo-frame {
    width: min(220px, 86%);
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-top: -4.75rem;
    border: 10px solid #fff;
    border-radius: 999px;
    overflow: hidden;
    background: #eaf0eb;
    box-shadow: 0 10px 28px rgba(9, 45, 27, 0.14);
    
    /* Image inside the frame */
    img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }
}

#about, #programs, #sponsor {
    scroll-margin-top: 7.5rem;
}

/* Hero Banner Styles */
.tam-hero {
    background-size: cover;
    background-position: center 34%;
}

.tam-hero__veil {
    background:
        linear-gradient(180deg, rgba(4, 11, 8, 0.12) 0%, rgba(4, 11, 8, 0.26) 22%, rgba(4, 11, 8, 0.72) 70%, rgba(4, 11, 8, 0.92) 100%),
        linear-gradient(90deg, rgba(4, 11, 8, 0.44) 0%, rgba(4, 11, 8, 0.1) 38%, rgba(4, 11, 8, 0.5) 100%);
}

.tam-hero__glow {
    background:
        radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.08), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(255, 214, 127, 0.18), transparent 24%);
}

.tam-hero__title {
    margin: 0;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(3rem, 7.2vw, 5.75rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.075em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
}

.tam-hero__summary {
    margin: 0 auto;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.02rem, 1.7vw, 1.32rem);
    line-height: 1.72;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.tam-hero__accent {
    width: min(100%, 43rem);
    height: 0.42rem;
    margin: 1.85rem auto 1.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #E06338 50%, #469FBF 50%);
    box-shadow: 0 8px 24px rgba(15, 84, 170, 0.3);
}

.tam-hero__button {
    min-width: 15.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

:root {
  --brand-yellow: #F1CB49;
}

.tam-hero__button--primary {
    box-shadow: 0 16px 30px rgba(241, 203, 73, 0.45);
}

.tam-hero__button--secondary {
    box-shadow: 0 16px 30px rgba(83, 181, 216, 0.4);
}

.tam-hero__button--tertiary {
    box-shadow: 0 16px 30px rgba(61, 97, 70, 0.4);
}

.tam-hero__button:hover,
.tam-hero__button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.tam-hero__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 782px) {
    .tam-hero__title {
        font-size: clamp(2.65rem, 14vw, 4rem);
        line-height: 0.98;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tam-hero__button {
        transition: none;
    }
}

#about, #programs, #sponsor {
    scroll-margin-top: 7.5rem;
}
