/* ============================= */
/* About Section */
/* ============================= */
.about {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    background: #EBE0E7;
    /* CRITICAL: Don't set overflow on sticky parent */
    overflow: visible !important;
}

.about-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Fluid container for large screens */
    max-width: min(1400px, 92vw);
    padding: 120px clamp(16px, 2vw, 28px) 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    /* Ensure no overflow that breaks sticky */
    overflow: visible !important;
}

/* Decorative images */
.about-ganesh {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: auto;
    z-index: 2;
    opacity: 0.9;
}

.about-couple {
    width: 100%;
    height: clamp(420px, 50vh, 720px);
    background-image: url('https://imagedelivery.net/Fs0MmR_7zWd_4iwBa78uqw/1f1c0261-a019-4199-6969-d112983b0700/contentlg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Right-side media for large screens */
.about-side-media { display: none; }

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }

  .about-side-media {
    display: block;
    align-self: start;
    position: sticky;
    top: 120px;
    transform: none;
    will-change: auto;
  }

  .about-side-media .media-frame {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .about-side-media img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .a-stack { margin-left: 0; margin-right: 0; }
}

/* About content */
.about-card {
    padding: 32px;
    max-width: 740px;
}

.about-text-content {
    position: relative;
    /* tighten top spacing under the title while keeping side padding */
    padding: 10px 24px 20px;
    border-radius: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Intro block before stacked cards */
.about-intro {
    margin: 14px 0 8px;
    display: grid;
    gap: 12px;
    max-width: 62ch;
}

.about-intro p {
    color: #2e1d0f;
    opacity: 0.96;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.85;
    letter-spacing: 0.1px;
    text-wrap: pretty;
}

.about-title {
    margin-bottom: 10px;
    /* Align heading with the text block padding */
    padding-inline: 24px;
}

.about-welcome {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6b4a2b;
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 6px;
    text-wrap: balance;
}

.about-brand {
    display: block;
    font-family: 'Yeseva One', serif;
    color: #e3006d;
    font-size: clamp(20px, 3.5vw, 40px);
    line-height: 1.1;
    letter-spacing: 0.3px;
    text-wrap: balance;
}

.about-card p {
    color: #000000;
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-lead {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #3a0f14;
    /* slightly tighter gap around the lead line */
    margin: 2px 0 14px;
    max-width: 42ch;
    text-wrap: balance;
    display: block;
    position: relative;
    /* removed top padding as decorative line is removed */
    padding-top: 0;
}

/* removed decorative pink line above lead text */

.about-intro strong { color: #7a2746; font-weight: 600; }

.about-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.about-badges .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(227, 0, 109, 0.06); border: 1px solid rgba(227, 0, 109, 0.18); color: #6b4a2b; font-weight: 600; font-size: 12px; letter-spacing: 0.2px; }
.about-badges .badge svg { display: block; width: 14px; height: 14px; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 16px; }
.about-tile { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 16px; box-shadow: 0 8px 18px rgba(0,0,0,0.06); }
.about-tile h3 { font-family: 'Cinzel', serif; font-size: 16px; color: #6b4a2b; margin-bottom: 6px; }
.about-tile p { color: #333; opacity: 0.9; font-size: 14px; line-height: 1.6; }
.about-quote { margin: 6px 0 0; padding-left: 14px; border-left: 3px solid #e3006d; color: #4a3420; font-style: italic; opacity: 0.9; }

@media (min-width: 992px) {
    .about-inner { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 48px; }
    .about-card { grid-column: 1 / 2; }
}

@media (max-width: 991px) {
    .about-inner { grid-template-columns: 1fr; gap: 20px; }
    .about-card {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
    }
    .about-couple { display: none; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .about-ganesh { width: 56px; top: 18px; }
    .about-card { padding: 16px; border-radius: 18px; }
    .about-welcome { font-size: 28px; }
    .about-brand { font-size: 22px; }
    .about-badges .badge { font-size: 11px; padding: 7px 10px; }
}

@media (min-width: 600px) and (max-width: 991px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================= */
/* Stacked About Cards (sticky)  */
/* ============================= */
.a-stack {
    position: relative;
    width: 100%;
    /* Give stacked cards more room on desktops while staying fluid */
    max-width: min(1180px, 88vw);
    margin: 22px auto 0;
    padding: 8px 0 24vh;
    /* Critical: no overflow restriction for sticky children */
    overflow: visible !important;
}

.a-card {
    --i: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    margin: 0 auto 22px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 26px;
    box-shadow: 0 22px 48px rgba(0,0,0,0.12);
    padding: clamp(18px, 3vw, 28px);
    min-height: clamp(420px, 65vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: var(--i);
    /* Remove transforms on main element - they can break sticky */
    transform: none;
    -webkit-transform: none;
    will-change: auto;
}

.a-card .a-head.with-media { margin-top: 8px; }

.a-media {
    position: relative;
    width: 100%;
    height: clamp(140px, 26vh, 220px);
    border-radius: 18px;
    background: linear-gradient(180deg, #faf7f1 0%, #ffffff 100%);
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
    margin-bottom: 12px;
}

.a-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.18) 100%);
    mix-blend-mode: multiply;
    opacity: 0.28;
}

.a-head { margin-bottom: 10px; }
.a-title { font-family: 'Cinzel', serif; color: #2e1d0f; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 8px 0; }
.a-desc { color: #333; opacity: 0.9; font-size: 15px; line-height: 1.7; }

.a-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .4px; }
.a-tag--gold { background: #fff6df; color: #7a571a; border: 1px solid #f2e1b3; }
.a-tag--green { background: #e7f8ee; color: #0f7a3e; border: 1px solid #bfe9ce; }
.a-tag--sky { background: #e9f5ff; color: #0e5aa7; border: 1px solid #c9e6ff; }
.a-tag--rose { background: rgba(227,0,109,.12); color: #9b104f; border: 1px solid rgba(227,0,109,.28); }
.a-tag--brand { background: linear-gradient(135deg, rgba(227,0,109,.14), rgba(255,107,157,.14)); color: #7c274a; border: 1px solid rgba(227,0,109,.26); }

.a-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.a-stat { background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 12px; text-align: center; }
.a-stat strong { display: block; color: #6b4a2b; font-size: 14px; }
.a-stat span { color: #555; font-size: 12px; opacity: 0.85; }

.a-list { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.a-list li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px dashed rgba(0,0,0,0.12); border-radius: 14px; background: #fff; color: #333; }
.a-list svg { color: #19935b; }

.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: 0.2px; }

.a-photo { position: relative; width: 100%; margin-top: 8px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.a-photo img { width: 100%; height: clamp(200px, 34vh, 320px); object-fit: cover; display: block; }

/* Variants */
.a-card--heritage {
  background: radial-gradient(120% 140% at 18% 0%, #fff6df 0%, #fbeec5 45%, #f2e1b3 100%);
  border-color: rgba(175,130,16,0.35);
  box-shadow: 0 26px 60px rgba(175,130,16,0.18), 0 10px 28px rgba(0,0,0,0.08);
}
.a-card--verified {
  background: radial-gradient(120% 140% at 18% 0%, #e9f5ff 0%, #d9eeff 45%, #cfe7ff 100%);
  border-color: rgba(14,90,167,0.20);
  box-shadow: 0 24px 54px rgba(14,90,167,0.10), 0 10px 24px rgba(0,0,0,0.06);
}
.a-card--privacy {
  background: radial-gradient(120% 140% at 18% 0%, #fdeee3 0%, #fedcc3 45%, #fbc89d 100%);
  border: 1px solid rgba(168,98,42,0.30);
  box-shadow: 0 24px 54px rgba(168,98,42,0.14), 0 10px 24px rgba(0,0,0,0.06);
}
.a-card--privacy .a-title, .a-card--privacy .a-desc { color: #4b2f1d; opacity: 0.96; }
.a-card--privacy .a-head { color: #4b2f1d; }
.a-card--roots {
  background: radial-gradient(120% 140% at 18% 0%, #8a1f2b 0%, #5e1423 42%, #3a0c14 100%);
  border-color: rgba(212,175,55,0.40);
  box-shadow: 0 26px 60px rgba(138,31,43,0.28), 0 10px 28px rgba(0,0,0,0.22);
}

/* Media tuning per variant */
.a-card--heritage .a-media { border-color: rgba(175,130,16,0.30); box-shadow: 0 14px 32px rgba(175,130,16,0.22); }
.a-card--heritage .a-media::after {
  background:
    linear-gradient(180deg, rgba(122,87,26,0.12) 0%, rgba(0,0,0,0.20) 100%),
    radial-gradient(120% 140% at 12% -8%, rgba(255,214,102,0.18) 0%, transparent 60%);
  opacity: 1;
}

.a-card--heritage .a-title { color: #5a3b16; }
.a-card--heritage .a-desc { color: #6b4a2b; opacity: 0.95; }
.a-card--heritage .a-head { color: #5a3b16; }
.a-card--heritage .a-stats .a-stat { background: rgba(255,255,255,0.66); border-color: rgba(175,130,16,0.30); }

.a-card--verified .a-media { border-color: rgba(14,90,167,0.25); box-shadow: 0 14px 32px rgba(14,90,167,0.18); }
.a-card--verified .a-media::after {
  background:
    linear-gradient(180deg, rgba(7,63,123,0.18) 0%, rgba(0,0,0,0.22) 100%),
    radial-gradient(120% 140% at 12% -8%, rgba(212,175,55,0.14) 0%, transparent 60%);
  opacity: 1;
}
.a-card--verified .a-title { color: #0e3a5d; letter-spacing: 0.1px; }
.a-card--verified .a-desc { color: #174b6e; opacity: 0.95; }
.a-card--verified .a-head { color: #0e3a5d; }
.a-card--verified .a-list li { background: rgba(255,255,255,0.68); border-color: rgba(14,90,167,0.24); color: #0e3a5d; }
.a-card--verified .a-list svg { color: #0e7aa7; }
.a-card--verified .a-tag { background: rgba(255,255,255,0.72); border: 1px solid #c9e6ff; color: #0e5aa7; }

.a-card--privacy .a-media { border-color: rgba(168,98,42,0.28); box-shadow: 0 14px 32px rgba(168,98,42,0.22); }
.a-card--privacy .a-media::after { background: linear-gradient(180deg, rgba(168,98,42,0.18) 0%, rgba(0,0,0,0.22) 100%); opacity: 1; }
.a-card--privacy .chip { background: rgba(255,255,255,0.70); border: 1px solid rgba(168,98,42,0.30); color: #6b3f1c; }

.a-card--roots .a-media { border-color: rgba(212,175,55,0.32); box-shadow: 0 14px 36px rgba(138,31,43,0.38); }
.a-card--roots .a-media::after {
  background:
    linear-gradient(180deg, rgba(58,12,20,0.15) 0%, rgba(0,0,0,0.38) 100%),
    radial-gradient(120% 140% at 10% -10%, rgba(212,175,55,0.26) 0%, transparent 60%);
  opacity: 1;
}
.a-card--roots .a-title { color: #FFF4E6; font-family: 'Yeseva One', serif; letter-spacing: 0.2px; }
.a-card--roots .a-desc { color: rgba(255,240,230,0.92); }
.a-card--roots .a-head { color: #fff2e6; }
.a-card--roots .a-tag { background: rgba(212,175,55,0.16); border: 1px solid rgba(212,175,55,0.42); color: #f7e8c6; }
.a-card--roots .chip { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.38); color: #ffefc9; }

/* No hover lift for calm presentation */
@media (max-width: 991px) { 
  .a-card { 
    top: 70px; 
    min-height: clamp(380px, 62vh, 520px);
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: var(--i) !important;
    /* No transforms - they break sticky on mobile */
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto;
    margin-bottom: 40px;
  } 
  .a-stats { grid-template-columns: 1fr 1fr; } 
}
@media (max-width: 600px) { 
  .a-card { 
    top: 60px; 
    border-radius: 22px;
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: var(--i) !important;
    /* Remove ALL transforms */
    transform: none !important;
    -webkit-transform: none !important;
    perspective: none !important;
    -webkit-perspective: none !important;
    will-change: auto;
    margin-bottom: 30px;
  } 
  .a-title { font-size: 22px; } 
  .a-photo img { height: 220px; } 
}

/* ============================= */
/* About - Contact info styles   */
/* ============================= */
.about-contact { margin-top: 32px; padding: 24px; background: rgba(227, 0, 109, 0.05); border-radius: 16px; border: 1px solid rgba(227, 0, 109, 0.1); }
.contact-title { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 600; color: #6b4a2b; margin-bottom: 20px; text-align: center; letter-spacing: 0.5px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: transparent; border-radius: 20px; transition: all 0.3s ease; border: 2px solid rgba(227, 0, 109, 0.15); position: relative; overflow: hidden; }
.contact-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(227, 0, 109, 0.08) 0%, rgba(255, 182, 193, 0.05) 100%); opacity: 0; transition: opacity 0.3s ease; }
.contact-item:hover { border-color: rgba(227, 0, 109, 0.3); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(227, 0, 109, 0.12); }
.contact-item:hover::before { opacity: 1; }
.contact-icon { font-size: 32px; line-height: 1; flex-shrink: 0; background: linear-gradient(135deg, #e3006d, #ff6b9d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 2px 4px rgba(227, 0, 109, 0.2)); transition: all 0.3s ease; position: relative; }
.contact-item:hover .contact-icon { transform: scale(1.1); filter: drop-shadow(0 4px 8px rgba(227, 0, 109, 0.3)); }
.contact-details { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
.contact-label { font-size: 11px; font-weight: 600; color: #6b4a2b; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; font-family: 'Poppins', sans-serif; }
.contact-link { font-size: 17px; font-weight: 600; color: #6b4a2b; text-decoration: none; transition: all 0.3s ease; font-family: 'Poppins', sans-serif; letter-spacing: 0.3px; }
.contact-link:hover { color: #e3006d; transform: translateX(3px); }

/* ============================= */
/* Mobile Layout Overrides       */
/* ============================= */
@media (max-width: 991px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 120px 16px 80px;
        overflow: visible !important;
        align-items: start; /* Prevents vertical alignment from breaking sticky */
    }

    .about-side-media {
        display: none;
    }

    .about-card {
        margin: 0 auto;
        padding: 16px;
    }

    .about-text-content {
        padding: 10px 12px 20px;
    }

    .about-title {
        padding-inline: 12px;
    }

    .a-stack {
        max-width: 100%;
        /* Drastically reduce padding-bottom to remove the gap */
        padding: 8px 8px 10vh;
        margin-bottom: 0; /* Ensure no extra margin is creating space */
        /* MUST be visible for sticky to work */
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .a-card {
        position: -webkit-sticky !important;
        position: sticky !important;
        /* Calculated top for a slight stacking offset */
        top: calc(80px + (var(--i) - 1) * 12px) !important;
        z-index: var(--i) !important;
        margin-bottom: 30px;
        /* Remove transforms that can break sticky positioning */
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* Make the last card scroll normally to remove the bottom gap */
    .a-card:last-of-type {
        position: relative !important;
        z-index: 5 !important;
        margin-bottom: 0; /* Remove margin from the last card */
    }
}

@media (max-width: 600px) {
    .a-stack {
        padding-bottom: 15vh; /* A bit more room for smaller devices */
        /* Widen card stack, counteracting parent padding to align with page gutter */
        margin-left: -28px;
        margin-right: -28px;
    }

    .a-card {
        /* Adjust top offset for smaller screens */
        top: calc(60px + (var(--i) - 1) * 10px) !important;
    }

    .about-ganesh {
        width: 56px;
        top: 18px;
    }

    .about-welcome {
        font-size: 28px;
    }
    .about-brand {
        font-size: 22px;
    }
}
