/* Shree Balaji Gaushala Seva Samiti – custom styles (on top of Bootstrap 5.3.2) */
:root {
    --saffron: #E87516;
    --deep: #C4510B;
    --maroon: #7A251B;
    --gold: #D6A642;
    --cream: #FFF8E9;
    --white: #FFFCF5;
    --brown: #382419;
    --hi: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --en: 'Cormorant Garamond', Georgia, serif;
    --border: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--maroon) 10px 14px, var(--saffron) 14px 24px, var(--maroon) 24px 28px)
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    background: var(--cream);
    color: var(--brown);
    line-height: 1.7;
    font-size: 1.06rem;
    overflow-x: hidden
}

h1,
h2,
h3 {
    font-family: var(--hi) !important;
    line-height: 1.35
}
.table>:not(caption)>*>* {
    padding: 1px 6px;
    font-size: 15px;
    
}
:focus-visible {
    outline: 3px solid var(--deep);
    outline-offset: 3px
}

.gold-line {
    height: 5px;
    background: var(--border)
}

.om {
    color: var(--saffron);
    font-size: 2rem;
    font-family: var(--hi)
}

/* Header */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 14px rgba(122, 37, 27, .15)
}
header .header-content {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 12px 0;
    gap: 30px;
    

}
  header .logo p {
    font-family: var(--hi);
    font-weight: 700;
    line-height: 1.2;
    color: var(--maroon);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin: 0
}
.donate{
    font-family: var(--hi);
    font-weight: 700;
    line-height: 1.2;
    color: var(--maroon);
}
.qr-name{
    font-family: var(--hi);
    font-weight: 700;
    line-height: 1.2;
    color: var(--maroon); 
}
.brand {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.brand-hi {
    font-family: var(--hi);
    font-weight: 800;
    color: var(--maroon);
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.3
}

.brand-en {
    font-family: var(--en);
    font-weight: 600;
    color: var(--deep);
    font-size: clamp(.9rem, 2vw, 1.15rem)
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 360px;
    margin: 18px auto
}

.divider span {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent)
}

.divider i {
    font-style: normal;
    color: var(--gold);
    font-size: 1.6rem;
    font-family: var(--hi)
}

/* Hero */
.hero {
    background: radial-gradient(ellipse at 70% 40%, #FFE9BE, var(--cream) 65%);
    padding: 56px 0 72px
}

.jai {
    color: var(--deep);
    font-weight: 600;
    letter-spacing: .05em
}

.hero h1 {
    font-weight: 800;
    color: var(--maroon);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 8px 0
}

.hero h2 {
    font-family: var(--en);
    font-weight: 600;
    color: var(--deep);
    /* font-size: clamp(1.3rem, 3vw, 1.9rem) */
}

.tagline {
    font-family: var(--hi);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--deep);
    margin: 6px 0 14px
}

.lead-text {
    max-width: 34em;
    margin: auto
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    padding: 34px 0 50px
}

.rays {
    position: absolute;
    width: min(130%, 860px);
    aspect-ratio: 1;
    background: repeating-conic-gradient(rgba(214, 166, 66, .28) 0 6deg, transparent 6deg 15deg);
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
    mask: radial-gradient(circle, #000 20%, transparent 68%);
    animation: spin 120s linear infinite
}

.frame {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 3/4;
    padding: 16px;
    /* background: linear-gradient(135deg, #F3D27A, var(--gold) 40%, #9A6F1E 70%, #F3D27A); */
    border-radius: 14px;
    /* box-shadow: 0 0 0 6px var(--maroon), 0 0 60px rgba(232, 117, 22, .55), 0 20px 40px rgba(56, 36, 25, .35); */
    animation: rise 1.2s ease-out both
}

.frame>img,
.frame>.ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border: 4px solid var(--maroon); */
    border-radius: 4px;
    /* background: var(--cream) */
}

.garland {
    position: absolute;
    top: 14px;
    width: min(112%, 500px);
    height: 46px;
    z-index: 2;
    background: radial-gradient(circle at 12px 50%, var(--saffron) 0 8px, transparent 9px) 0 0/28px 100%, radial-gradient(circle at 26px 50%, var(--gold) 0 7px, transparent 8px) 0 0/28px 100%;
    filter: drop-shadow(0 3px 2px rgba(122, 37, 27, .4))
}

.side-cows {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    width: min(116%, 540px);
    z-index: 3
}

.side-cows>* {
    width: clamp(84px, 16vw, 130px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(56, 36, 25, .3)
}

.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 16px;
    color: var(--maroon);
    background: repeating-linear-gradient(45deg, #FFF1CF 0 12px, #FFF8E9 12px 24px);
    border: 2px dashed var(--gold);
    font-family: var(--hi);
    overflow: hidden
}

.ph i {
    font-size: 2rem
}

.ph code {
    font-size: .72rem;
    color: var(--deep);
    word-break: break-all
}

.side-cows .ph {
    padding: 6px;
    font-size: .7rem
}

.side-cows .ph code,
.side-cows .ph i {
    display: none
}

/* Under construction */
.uc {
    position: relative;
    overflow: hidden;
    /* padding: 70px 0 70px 0; */
    background: var(--white);
    border-block: 6px double var(--gold)
}

.narrow {
    max-width: 44em
}

.uc-art {
    color: var(--saffron);
    font-size: 3.6rem;
    line-height: 1;
    margin: 16px 0 8px
}

.badge-soon {
    display: inline-block;
    padding: 6px 26px;
    border-radius: 99px;
    font-family: var(--hi);
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--saffron), var(--deep));
    border: 2px solid var(--gold);
    animation: glow 3s ease-in-out infinite
}

.spark {
    position: absolute;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    opacity: 0;
    animation: float 9s linear infinite;
    animation-delay: var(--d)
}

.sec-title {
    color: var(--maroon);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.3rem)
}

/* Sections */
.section {
    padding: 72px 0
}

.card-d {
    background: var(--white);
    padding: 30px 22px;
    text-align: center;
    border: 2px solid var(--gold);
    border-radius: 6px 6px 40px 6px;
    outline: 1px solid var(--maroon);
    outline-offset: -8px
}

.card-d h3 {
    color: var(--maroon);
    font-weight: 700;
    margin: 14px 0 6px;
    font-size: 1.25rem
}

.icon {
    width: 68px;
    height: 68px;
    margin: auto;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--white);
    background: radial-gradient(circle, var(--saffron), var(--deep));
    border-radius: 50%;
    border: 3px solid var(--gold)
}

.quote {
    background: linear-gradient(rgba(122, 37, 27, .88), rgba(56, 36, 25, .92)), url(images/temple-background.jpg) center/cover, var(--maroon);
    color: var(--cream);
    text-align: center;
    padding: 90px 0;
    border-block: 6px solid var(--gold)
}

.shloka {
    font-family: var(--hi);
    font-weight: 800;
    color: var(--gold);
    font-size: clamp(2rem, 6vw, 4rem);
    text-shadow: 0 0 28px rgba(214, 166, 66, .55);
    margin: 0
}

.quote-sub {
    max-width: 36em;
    margin: 12px auto 0;
    font-size: 1.2rem
}

.g {
    position: relative;
    aspect-ratio: 3/4;
    margin: 0;
    border: 4px solid var(--gold);
    outline: 2px solid var(--maroon);
    outline-offset: 3px;
    border-radius: 110px 110px 12px 12px;
    overflow: hidden;
    background: var(--white)
}

.g>img,
.g>.ph {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.g .ph {
    padding-bottom: 50px
}

.g figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 10px 10px;
    text-align: center;
    color: var(--white);
    font-family: var(--hi);
    font-weight: 600;
    background: linear-gradient(transparent, rgba(56, 36, 25, .85))
}

/* Footer */
.site-footer {
    background: var(--brown);
    color: var(--cream);
    padding-bottom: 28px
}

.pattern {
    height: 22px;
    margin-bottom: 26px;
    background: var(--border)
}

.om.big {
    font-size: 3rem;
    color: var(--gold)
}

.site-footer h3 {
    font-family: var(--en);
    font-size: 1.7rem;
    color: var(--gold)
}

.f-tag {
    font-family: var(--hi);
    margin: 4px 0
}

.site-footer .gold-line {
    max-width: 320px;
    margin-block: 18px
}

.site-footer small {
    opacity: .75
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(232, 117, 22, .45)
    }

    50% {
        box-shadow: 0 0 36px rgba(232, 117, 22, .85)
    }
}

@keyframes float {
    10% {
        opacity: .9
    }

    100% {
        transform: translateY(-480px);
        opacity: 0
    }
}

@media(max-width:991px) {
    .hero {
        padding: 0
    }
    .hero-art{
        padding: 0
    }
}

@media(max-width:480px) {
    .g {
        border-radius: 70px 70px 10px 10px;
        outline-offset: 2px
    }

    .g figcaption {
        font-size: .85rem
    }

    .g .ph code {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important
    }

    html {
        scroll-behavior: auto
    }
}

.contact-p { 
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #C4510B;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    font-family: inherit;
}

.contact-p label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #7A251B; 
}
   .social-links a {
    color: #C4510B; 
    font-size: 1.5rem;
    transition: color 0.3s ease;
    border: 1px solid #C4510B;
    padding:  5px 15px 1px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    }
    .social-links a:hover {
    color: #f0c14b;
    background-color: #7A251B;
    }
.contact-p p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

.contact-p a {
    color: #C4510B;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: 0.3s ease;
}

.contact-p a:hover {
    color: #7A251B;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .contact-p {
        padding: 15px 18px;
    }

    .contact-p label {
        font-size: 16px;
    }

    .contact-p p {
        font-size: 14px;
    }
}