/* 
 * Jyothis Athurasramam - Core Stylesheet
 * Brand Theme: Compassionate Legacy (Modern Tactile Softness)
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #F4B400;
    /* Warm Gold */
    --secondary-color: #2D248A;
    /* Deep Trustworthy Blue */
    --background-cream: #FFF8E7;
    /* Warm Off-white/Cream */
    --surface-white: #FFFFFF;
    /* Component Layer White */
    --text-dark: #333333;
    /* Legible Charcoal */
    --text-muted: #504533;
    /* Soft On-Surface-Variant */
    --border-color: #d4c4ac;
    /* Outline Variant */
    --secondary-fixed-dim: #c4c0ff;
    --secondary-fixed: #e3dfff;
    --on-secondary-fixed: #120068;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --sun-kissed-shadow: 0px 10px 30px rgba(45, 36, 138, 0.05);
    --hover-shadow: 0px 15px 35px rgba(45, 36, 138, 0.12);
}

/* Base Resets & Global Styles */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--background-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Spacing Rules */
section {
    padding: 5rem 0;
    /* massive spacing for premium feel */
}

/* Utilities */
.rounded-4xl {
    border-radius: 2rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.sun-kissed-shadow {
    box-shadow: var(--sun-kissed-shadow);
}

.bg-cream {
    background-color: var(--background-cream);
}

.bg-secondary-color {
    background-color: var(--secondary-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

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

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

/* Top Contact Bar */
.top-contact-bar {
    background-color: var(--secondary-color);
    color: var(--surface-white);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
}

.top-contact-bar a {
    color: var(--surface-white);
}

.top-contact-bar a:hover {
    color: var(--primary-color);
}

.top-contact-bar .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Top Navigation Bar */
.custom-navbar {
    background-color: var(--surface-white);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    /* .custom-navbar.navbar-shrink {
        padding: 1.5rem 0;
       
    } */

.navbar-brand img {
    height: 100px;
    width: auto;
    /* object-fit: contain; */
    position: absolute;
    left: 0px;
    top: -29px;
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--secondary-color) !important;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Buttons Styling */
.btn-support {
    background-color: var(--secondary-color);
    color: var(--surface-white) !important;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--secondary-color);
    box-shadow: var(--sun-kissed-shadow);
}

.btn-support:hover {
    background-color: var(--surface-white);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
     box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

.btn-donate {
    background-color: var(--primary-color);
    color: var(--text-dark) !important;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    box-shadow: var(--sun-kissed-shadow);
}

.btn-donate:hover {
    background-color: var(--surface-white);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

/* Hero Section */
.hero-badge {
    background-color: var(--secondary-fixed);
    color: var(--on-secondary-fixed);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-top: 1rem;
}

.hero-title span {
    font-style: italic;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 1.5rem 0 2rem 0;
}

.btn-hero-primary {
    background-color: var(--primary-color);
    color: var(--text-dark) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--sun-kissed-shadow);
}

.btn-hero-primary:hover {
    transform: scale(1.05);
    background-color: var(--surface-white);
    box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--secondary-color) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--secondary-color);
}

.btn-hero-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--surface-white) !important;
}

.hero-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.hero-blob-1 {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--primary-color);
    opacity: 0.15;
    filter: blur(3rem);
    border-radius: 50%;
    z-index: 1;
}

.hero-blob-2 {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--secondary-fixed-dim);
    opacity: 0.15;
    filter: blur(3rem);
    border-radius: 50%;
    z-index: 1;
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 2rem;
    box-shadow: var(--sun-kissed-shadow);
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--surface-white);
    padding: 4rem 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-fixed);
    font-weight: 600;
}

/* About Section */
.about-img {
    height: 445px;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--sun-kissed-shadow);
}

.about-legacy-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-legacy-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: var(--background-cream);
    margin-bottom: 1.5rem;
}

.about-card-vision {
    border-left: 5px solid var(--primary-color);
}

.about-card-mission {
    border-left: 5px solid var(--secondary-color);
}

.about-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.about-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-card-desc.italic {
    font-style: italic;
}

/* Services Section */
.services-section {
    background-color: var(--background-cream);
}

.section-title-container {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-line {
    width: 6rem;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0 auto;
    border-radius: 50px;
}

.service-card {
    background-color: var(--surface-white);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: var(--sun-kissed-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.service-icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    color: var(--surface-white) !important;
}

.service-icon-wrapper.primary {
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
}

.service-card:hover .service-icon-wrapper.primary {
    background-color: var(--primary-color);
}

.service-icon-wrapper.secondary {
    background-color: var(--secondary-fixed);
    color: var(--on-secondary-fixed);
}

.service-card:hover .service-icon-wrapper.secondary {
    background-color: var(--secondary-color);
}

.service-icon {
    font-size: 2rem;
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.why-img {
    width: 100%;
    /* height: 550px; */
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--sun-kissed-shadow);
}

.trust-point-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-point-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.trust-point-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-brochure {
    background-color: var(--secondary-color);
    color: var(--surface-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--sun-kissed-shadow);
    transition: all 0.3s ease;
}

.btn-brochure:hover {
    transform: translateY(-2px);
    background-color: var(--surface-white);
    color: var(--text-dark) !important;
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--background-cream);
}

.gallery-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.btn-view-gallery {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
}

.btn-view-gallery:hover {
    text-decoration: underline;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--sun-kissed-shadow);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}

.m-item {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--sun-kissed-shadow);
}

.m-item.tall {
  grid-row: span 2;
}

.m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.m-item:hover img {
  transform: scale(1.1);
}

.m-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(45, 36, 138, .85));
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.m-item:hover figcaption {
  transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-color);
    color: var(--surface-white);
    position: relative;
    padding: 6rem 0;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.testimonial-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-author-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-author-designation {
    font-size: 0.9rem;
    color: var(--secondary-fixed);
    margin-bottom: 0.5rem;
}

.star-rating {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.testimonial-nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--surface-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Donation CTA Banner */
.donation-cta-section {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.donation-cta-angle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 35%;
    background-color: #000000;
    opacity: 0.08;
    transform: skewX(12deg) translateX(25%);
    pointer-events: none;
}

.donation-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #333333;
    margin-bottom: 1rem;
}

.donation-cta-desc {
    color: #333333;
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 720px;
}

.btn-donate-cta {
    background-color: var(--secondary-color);
    color: var(--surface-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1.2rem 3rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 25px rgba(45, 36, 138, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-donate-cta:hover {
    transform: scale(1.05);
    background-color: var(--surface-white);
    color: var(--text-dark) !important;
    box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

/* Contact & Visit Facility Section */
.contact-section {
    background-color: var(--surface-white);
}

.contact-form-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-form-desc {
    color: var(--text-muted);
}

.form-label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: var(--background-cream);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--background-cream);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 36, 138, 0.15);
}

.btn-submit-contact {
    background-color: var(--secondary-color);
    color: var(--surface-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    width: 100%;
    box-shadow: var(--sun-kissed-shadow);
    transition: all 0.3s ease;
}

.btn-submit-contact:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-1px);
    color: var(--text-dark) !important;
    box-shadow: 0 15px 30px rgba(45, 36, 138, 0.3);
}

/* Contact Details Card & Map */
.contact-details-card {
    background-color: var(--background-cream);
      background: linear-gradient(160deg, #2D248A, #1F1968);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--sun-kissed-shadow);
    width: 500px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--secondary-fixed);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text {
    color: var(--surface-white);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}
.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .15);
}

.social-row a:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-3px);
}

.map-placeholder-container {
    flex-grow: 1;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: var(--surface-container-highest);
    transition: all 0.5s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 250px;
}

.map-placeholder-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) contrast(1.1) opacity(0.85);
    transition: all 0.5s ease;
}

.map-placeholder-container:hover iframe {
    filter: grayscale(0) contrast(1) opacity(1);
}

/* Footer Styles */
.footer {
    background-color: var(--surface-white);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    box-shadow: var(--sun-kissed-shadow);
}

.footer-logo {
    height: 70px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-color);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.social-icon-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--secondary-fixed);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.social-icon-link:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: scale(1.1);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.newsletter-form-container {
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(45, 36, 138, 0.04);
    border-radius: 0.5rem;
    overflow: hidden;
}

.newsletter-input {
    border: none;
    background-color: var(--background-cream);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
}

.btn-newsletter {
    background-color: var(--secondary-color);
    color: var(--surface-white);
    border: none;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-newsletter:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(212, 196, 172, 0.3);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom-link {
    color: var(--text-muted);
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

/* Back To Top Floating Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hover-shadow);
    z-index: 99;
    border: none;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top-btn:hover {
    transform: scale(1.1);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.toast-success {
    background-color: var(--secondary-color);
    color: var(--surface-white);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--hover-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success.visible {
    transform: translateY(0);
    opacity: 1;
}