/* ====== Subha Yathra Services - Main Stylesheet ====== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary: #0B7A75;
  --primary-dark: #065A56;
  --primary-light: #0FA39D;
  --secondary: #D4A843;
  --secondary-light: #E8C46E;
  --accent: #E85D3A;
  --dark: #0F1B2D;
  --dark-light: #1A2A40;
  --text: #2D3748;
  --text-light: #718096;
  --light: #F8F6F2;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(15,27,45,0.08);
  --shadow-lg: 0 12px 48px rgba(15,27,45,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====== HEADER / NAVBAR ====== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(15,27,45,0.95); backdrop-filter: blur(16px); padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); }
.nav-brand h1 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.nav-brand span { display: block; font-family: var(--font); font-size: 0.65rem; color: var(--secondary); letter-spacing: 2px; text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 50px; font-family: var(--font); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition); white-space: nowrap; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-primary { background: var(--secondary); color: var(--dark); }
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,67,0.4); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #d04e2d; transform: translateY(-2px); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-light); }

/* Mobile Menu Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ====== HERO SECTION ====== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(15,27,45,0.85) 0%, rgba(11,122,117,0.6) 50%, rgba(15,27,45,0.75) 100%); }
.hero-content { text-align: center; color: var(--white); max-width: 800px; padding: 0 20px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(212,168,67,0.15); border: 1px solid rgba(212,168,67,0.4); border-radius: 50px; font-size: 0.85rem; color: var(--secondary); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; backdrop-filter: blur(8px); }
.hero-content h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-content h2 em { font-style: normal; color: var(--secondary); }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--secondary); display: block; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ====== SECTIONS ====== */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light); }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--primary); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-dark .section-label { color: var(--secondary); }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* Force dark text on white-background cards inside dark sections */
.plan-card { color: var(--text) !important; }
.plan-card h3 { color: var(--dark) !important; }
.plan-card p,
.plan-features li { color: var(--text) !important; }
.feature-card { color: var(--text) !important; }
.feature-card h3 { color: var(--dark) !important; }
.feature-card p { color: var(--text-light) !important; }

/* ====== FEATURE CARDS ====== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-lg); }
.about-image-badge { position: absolute; bottom: 24px; right: 24px; background: var(--secondary); color: var(--dark); padding: 16px 24px; border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow-lg); }
.about-content h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 20px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.about-highlight { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.about-highlight .icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(11,122,117,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ====== PLANS / PRICING ====== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; max-width: 800px; margin: 0 auto; }
.plan-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; border: 2px solid var(--border); }
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-card.featured { border-color: var(--secondary); }
.plan-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: white; padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.plan-header { padding: 40px 32px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.plan-icon { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.plan-card:first-child .plan-icon { background: linear-gradient(135deg, #0B7A75, #0FA39D); color: white; }
.plan-card.featured .plan-icon { background: linear-gradient(135deg, #D4A843, #E8C46E); color: var(--dark); }
.plan-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.plan-price { font-size: 2.8rem; font-weight: 800; color: var(--dark); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.plan-body { padding: 32px; }
.plan-features { margin-bottom: 32px; }
.plan-features li { padding: 10px 0; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; border-bottom: 1px solid var(--border); color: var(--text); }
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--primary); font-weight: bold; }
.plan-body .btn { width: 100%; }

/* ====== GALLERY ====== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,27,45,0.7), transparent); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 20px; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay h4 { color: var(--white); font-size: 1rem; }
.gallery-item .overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.gallery-empty { text-align: center; padding: 80px 20px; color: var(--text-light); }
.gallery-empty .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Gallery Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; opacity: 0.7; }
.lightbox-close:hover { opacity: 1; }
.lightbox-info { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; text-align: center; }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; gap: 16px; padding: 24px; background: var(--light); border-radius: var(--radius); }
.contact-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text-light); font-size: 0.9rem; }
.contact-card a:hover { color: var(--primary); }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: 0.95rem; transition: var(--transition); background: var(--light); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(11,122,117,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ====== FOOTER ====== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-about h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 16px; }
.footer-about p { font-size: 0.92rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); color: var(--dark); }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--secondary); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact .icon { color: var(--secondary); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* ====== PAGE BANNER ====== */
.page-banner { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); padding: 140px 0 80px; text-align: center; color: var(--white); }
.page-banner h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-banner .breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb a { color: var(--secondary); }

/* ====== WHATSAPP FLOAT ====== */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }

/* ====== SCROLL ANIMATIONS ====== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .nav-links, .nav-actions { display: none; position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--dark); flex-direction: column; padding: 100px 40px 40px; gap: 20px; transition: var(--transition); }
  .nav-links.active, .nav-actions.active { display: flex; right: 0; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 576px) {
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-highlights { grid-template-columns: 1fr; }
}

/* ====== ADMIN STYLES ====== */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--dark); color: var(--white); padding: 24px 0; position: fixed; height: 100vh; overflow-y: auto; }
.admin-sidebar h3 { padding: 0 24px; font-size: 1.1rem; margin-bottom: 30px; color: var(--secondary); }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: var(--white); border-left: 3px solid var(--secondary); }
.admin-main { margin-left: 250px; padding: 30px; width: calc(100% - 250px); background: var(--light); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h2 { font-size: 1.5rem; }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table th { background: var(--light); font-weight: 600; color: var(--dark); }
.admin-table tr:hover { background: rgba(11,122,117,0.03); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); }
.admin-login-box { background: var(--white); padding: 48px; border-radius: var(--radius-lg); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.admin-login-box h2 { text-align: center; margin-bottom: 8px; font-family: var(--font-display); }
.admin-login-box p { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 0.9rem; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--light); }
.upload-zone:hover { border-color: var(--primary); background: rgba(11,122,117,0.03); }
.upload-zone input[type="file"] { display: none; }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-admin-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery-admin-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin-item .actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.gallery-admin-item .actions button { width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.btn-delete { background: var(--accent); color: white; }
