/*
Theme Name: SGBA Custom Theme
Theme URI: https://srigayatribrahmanaabdikam.com/
Author: Sri Gayatri Brahmana Abdhikam
Description: A custom, lightweight, beautifully designed theme for Sri Gayatri Brahmana Abdhikam - Vedic Pitru Karyalu services in Hyderabad and Varanasi.
Version: 2.0
Text Domain: sgba-theme
*/

/* ===== RESET & VARIABLES ===== */
:root {
  --primary: #d9381e;
  --secondary: #f2a900;
  --bg-color: #fcf9f2;
  --text-dark: #2c1e16;
  --text-light: #5c4b41;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body {
  margin: 0; padding: 0; background: var(--bg-color); color: var(--text-dark);
  font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.te { font-family: 'Noto Serif Telugu', serif; }
.sgba-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5% !important; }
* { box-sizing: border-box; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary); color: var(--white); text-align: center;
  padding: 0.5rem 1rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px;
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; background: rgba(252, 249, 242, 0.98);
  backdrop-filter: blur(10px); z-index: 1000; border-bottom: 2px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 0.75rem 0;
}
.header .sgba-container { display: flex; align-items: center; justify-content: space-between; }
.logo-container { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); }
.logo-text h1 { font-size: 1rem; color: var(--primary); margin: 0; line-height: 1.2; font-weight: 700; }
.logo-text p { font-size: 0.7rem; color: var(--text-dark); margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.menu-btn { background: none; border: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; padding: 0; }

.nav-menu {
  display: none; flex-direction: column; background: var(--white);
  position: absolute; top: 100%; left: 0; right: 0; padding: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-bottom: 3px solid var(--primary);
}
.nav-menu.active { display: flex; }
.nav-menu a { padding: 0.8rem 1rem; text-decoration: none; color: var(--text-dark); font-weight: 600; border-bottom: 1px solid #f0f0f0; font-size: 1.05rem; }
.nav-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  padding: 3rem 1rem 4rem; text-align: center; position: relative;
  background: linear-gradient(180deg, #fff5e6 0%, #ffebb5 100%);
  border-bottom: 1px solid #f2dfa7;
}
.hero-img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--secondary); margin-bottom: 1rem; box-shadow: var(--shadow); background: var(--white); }
.hero h2 { font-size: 1.8rem; color: var(--primary); margin: 0 0 0.5rem 0; line-height: 1.3; }
.hero h3 { font-size: 1.3rem; color: var(--text-dark); margin: 0 0 1rem 0; font-weight: 600; }
.hero p { font-size: 1.05rem; color: var(--text-light); line-height: 1.6; margin: 0 auto 2rem; max-width: 600px; }

/* ===== BUTTONS ===== */
.sgba-btn {
  display: inline-block; background: linear-gradient(135deg, var(--primary), #a62612);
  color: var(--white) !important; padding: 0.9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; box-shadow: 0 6px 16px rgba(217, 56, 30, 0.3);
  transition: all 0.3s ease; border: 2px solid #b32a15; font-size: 1.05rem;
}
.sgba-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(217, 56, 30, 0.4); background: linear-gradient(135deg, #e64529, #c22e17); }

/* ===== SECTIONS ===== */
.sgba-section { padding: 4rem 0; }
.section-alt { background: var(--white); padding: 4rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 1.8rem; color: var(--primary); margin: 0 0 0.5rem 0; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; width: 50%; height: 3px; background: var(--secondary); bottom: -8px; left: 25%; border-radius: 2px; }
.section-title p { font-size: 1.1rem; color: var(--text-dark); margin: 1.5rem 0 0; font-weight: 500; }

/* ===== GRIDS ===== */
.sgba-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ===== CARDS ===== */
.sgba-card {
  background: var(--white); padding: 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid #f0f0f0; border-top: 4px solid var(--secondary);
  transition: transform 0.3s;
}
.sgba-card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; }
.sgba-card h4 { font-size: 1.4rem; color: var(--primary); margin: 0 0 0.5rem 0; }
.sgba-card h5 { font-size: 1.1rem; color: var(--text-dark); margin: 0 0 0.8rem 0; font-weight: 600; }
.sgba-card p { font-size: 1rem; color: var(--text-light); margin: 0 0 0.5rem 0; line-height: 1.6; }
.price-tag { display: inline-block; background: #fff8e5; color: var(--primary); font-weight: 600; padding: 10px 15px; border-radius: 8px; border: 1px solid #f2dfa7; font-size: 0.95rem; margin-top: 10px; }

/* ===== LIVE TELECAST BADGE ===== */
.live-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary), #9c1f0d); color: var(--white);
  padding: 1rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
  margin: 0 auto 2.5rem; max-width: fit-content; box-shadow: 0 6px 15px rgba(217, 56, 30, 0.3);
}
.live-badge span.icon { font-size: 1.4rem; }

/* ===== REVIEWS ===== */
.review-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.review-grid::-webkit-scrollbar { height: 6px; }
.review-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.review-card {
  flex: 0 0 85%; scroll-snap-align: center; background: var(--white); padding: 1.5rem;
  border-radius: var(--radius); border-left: 4px solid var(--secondary); box-shadow: var(--shadow);
}
.reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.avatar { width: 45px; height: 45px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.reviewer-info h5 { margin: 0; font-size: 1.05rem; color: var(--text-dark); }
.stars { color: var(--secondary); font-size: 1rem; letter-spacing: 1px; }
.review-text { font-size: 0.95rem; color: var(--text-light); font-style: italic; margin: 0; line-height: 1.5; }

/* ===== BOOKING & CONTACT FORMS ===== */
.form-wrapper { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); border-top: 5px solid var(--primary); max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: all 0.3s; background: #fafafa; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.1); background: var(--white); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--primary), #a62612); color: var(--white); padding: 1rem; border: none; border-radius: 8px; font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 15px rgba(217, 56, 30, 0.3); transition: all 0.3s; margin-top: 1rem; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 56, 30, 0.4); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-info { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.contact-info h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.info-item { display: flex; gap: 15px; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon { font-size: 1.5rem; color: var(--secondary); margin-top: 2px; }
.info-text strong { display: block; margin-bottom: 5px; color: var(--text-dark); }
.info-text a { color: var(--primary); text-decoration: none; font-weight: 600; }
.map-container { width: 100%; height: 350px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid #eee; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== FOOTER ===== */
.footer { background: #2c1e16; color: rgba(255,255,255,0.9); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer h4 { color: var(--secondary); font-size: 1.3rem; margin: 0 0 1rem 0; border-bottom: 2px solid rgba(242, 169, 0, 0.3); padding-bottom: 0.5rem; display: inline-block; }
.footer p, .footer li { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.85rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  color: white !important;
  position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.3s;
}
.wa-float:active { transform: scale(0.95); }
.wa-float svg { width: 32px; height: 32px; fill: #fff !important; }

/* ===== WORDPRESS THEME OVERRIDES ===== */
a { text-decoration: none !important; }
.header a:not(.sgba-btn), .nav-menu a, .footer a, .logo-container, .logo-container * {
  box-shadow: none !important;
  background-image: none !important;
  outline: none !important;
}
.logo-text h1 { color: var(--primary) !important; border: none !important; }
.logo-text p { color: var(--text-dark) !important; border: none !important; }
.nav-menu a { color: var(--text-dark) !important; }
.nav-menu a:hover { color: var(--primary) !important; }
a.sgba-btn { color: var(--white) !important; outline: none !important; }

/* ===== DESKTOP ADJUSTMENTS ===== */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav-menu { display: flex; position: static; flex-direction: row; background: transparent; padding: 0; box-shadow: none; border: none; align-items: center; gap: 1rem; }
  .nav-menu a { border: none; padding: 0.5rem 1rem; font-size: 1rem; border-radius: 8px; transition: background 0.3s; }
  .nav-menu a:hover { background: rgba(217, 56, 30, 0.08); color: var(--primary); }
  .logo-text h1 { font-size: 1.3rem; }
  .hero { padding: 5rem 1rem 6rem; }
  .hero h2 { font-size: 2.8rem; }
  .sgba-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
  .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); overflow-x: visible; }
  .review-card { flex: auto; }
  .form-wrapper { padding: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .map-container { height: 100%; min-height: 400px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}