@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-color: #2a081a; 
    --primary: #ff1e56; 
    --secondary: #9000ff; 
    --card-bg: rgba(255, 30, 86, 0.15); 
    --border-color: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #ffccd5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #300018 0%, #18002b 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,30,86,0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(144,0,255,0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

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

/* Glassmorphism */
.glass {
    background: linear-gradient(145deg, rgba(255, 30, 86, 0.15) 0%, rgba(144, 0, 255, 0.15) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 30, 86, 0.2) 0%, rgba(144, 0, 255, 0.2) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 15px rgba(255,255,255,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, rgba(255, 30, 86, 0.3) 0%, rgba(144, 0, 255, 0.3) 100%);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(255,255,255,0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card:hover::before {
    left: 200%;
}

.card-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-body);
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,30,86,0.8), rgba(144,0,255,0.8));
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(255, 30, 86, 0.4), inset 0 2px 5px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,30,86,1), rgba(144,0,255,1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 0, 255, 0.6), inset 0 2px 5px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(144,0,255,0.3), rgba(255,30,86,0.3));
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(144,0,255,0.6), rgba(255,30,86,0.6));
    border: 1px solid rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(185, 66, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255,255,255,0.1);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: linear-gradient(90deg, rgba(255,30,86,0.15), rgba(144,0,255,0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(144, 0, 255, 0.3) 0%, rgba(42, 8, 26, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Page Header */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,30,86,0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Ensure grid items stretch for consistent card heights */
.grid-2 > *, .grid-3 > *, .grid-4 > * {
    align-self: stretch;
}

/* Place Cards */
.place-card .card-img {
    height: 280px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.place-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.place-card:hover .card-img img {
    transform: scale(1.1);
}

.place-card .card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.place-card .card-content > p:first-of-type {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.place-card .card-content .btn {
    align-self: flex-start;
}

.place-card .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.place-card .card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 30, 86, 0.2);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 30, 86, 0.5);
}

/* ========================================
   Family Guide Cards
   ======================================== */
.guide-grid {
    gap: 2rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: left;
}

.guide-card .guide-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,30,86,0.3), rgba(144,0,255,0.3));
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 30, 86, 0.25);
    flex-shrink: 0;
}

.guide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 0;
}

/* ========================================
   Contact Page Cards
   ======================================== */
.contact-grid {
    gap: 2rem;
    align-items: stretch;
}

.contact-grid > .glass-card {
    padding: 2.5rem;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
}

.contact-info-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-item {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    background: rgba(255,30,86,0.1);
    border-color: rgba(255,30,86,0.3);
}

.contact-info-item h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

/* Detail Page */
.detail-hero {
    height: 60vh;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 120px;
    position: relative;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.detail-main h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.detail-main p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.sidebar-card {
    padding: 2rem;
    position: sticky;
    top: 120px;
}

.sidebar-card h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.info-list {
    list-style: none;
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.info-list li span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 300px;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42,8,26,0.9), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,30,86,0.15);
    box-shadow: 0 0 15px rgba(255,30,86,0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(42, 8, 26, 0.6); 
    backdrop-filter: blur(15px);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-icons a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Content Pages (Privacy, Terms, etc) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-page p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Accordion FAQ */
.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
}

.accordion-title::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.accordion-item.active .accordion-title::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding-top: 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .detail-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .guide-card, .contact-grid > .glass-card {
        padding: 2rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(42, 8, 26, 0.95);
        backdrop-filter: blur(25px);
        padding: 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-smooth);
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu-toggle { display: block; }
    .header-cta { display: none; }
    
    .hero h1 { font-size: 2.5rem; }
}