/*
Theme Name: Jatalasadhu Clone
Theme URI: https://same.new
Author: Same IDE + AI Assistant
Author URI: https://same.new
Description: A lightweight WordPress theme that clones https://mindcoinservices.com/jatala/ homepage UI.
Version: 1.0.0
Text Domain: jatala
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Typography */
:root {
  --bg: #f4e7e1;
  --text: #372d26;
  --accent: #a04726;
  --accent-2: #c9953b;
  --muted: #a38b81;
  --cream: #dbc6a4;
  --green: #5aac91;
  --container: 1200px;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 12px;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,231,225,0.9);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid rgba(55,45,38,0.08);
}
.header_in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { font-weight: 700; text-decoration: none; color: var(--text); font-size: 20px; letter-spacing: .3px; }

/* Nav */
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
nav a { text-decoration: none; color: var(--text); padding: 10px 6px; border-radius: 6px; transition: all .2s ease; font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent); }

nav li { position: relative; }
nav li ul { position: absolute; left: 0; top: calc(100% + 8px); background: #fff; color: var(--text); min-width: 220px; padding: 8px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.08); display: none; flex-direction: column; gap: 2px; border: 1px solid rgba(0,0,0,.06); }
nav li:hover > ul { display: flex; }
nav li ul a { padding: 10px 12px; display: block; border-radius: 8px; }
nav li ul a:hover { background: rgba(55,45,38,0.06); }

.header_rht .btn { margin-left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 10px 20px rgba(160,71,38,.15); transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(160,71,38,.2); }
.btn.btn_secondary { background: var(--accent-2); box-shadow: 0 10px 20px rgba(201,149,59,.15); }

/* Sections */
section { padding: 56px 0; }
.sec_head { text-align: center; max-width: 820px; margin: 0 auto 28px; }
.sec_head h2 { font-size: 40px; margin-bottom: 12px; }
.sec_head p { color: var(--muted); }

/* Hero/About block */
.about_us .sec_head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; text-align: left; }
.about_us .swa_img { border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.12); border: 6px solid #fff; }

/* Places of Worship */
.spw_blk { background: linear-gradient(180deg, rgba(219,198,164,.35), rgba(219,198,164,0) 70%); }
.spw_in { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.spwc_card { display: grid; background: #fff; color: inherit; text-decoration: none; border-radius: 16px; padding: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .2s ease; }
.spwc_card:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.spwc_card .event_cnt h3 { margin: 0 0 8px; font-size: 22px; }
.spwc_card .event_cnt p { margin: 0; color: var(--muted); }

/* Events */
.events_list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: var(--container); margin: 0 auto; padding: 0 20px 24px; }
.event_card { display: block; background: #fff; border-radius: 16px; padding: 18px; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 20px 40px rgba(0,0,0,.06); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease; }
.event_card:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.event_card h3 { margin: 0 0 6px; font-size: 22px; }
.event_card p { margin: 0; color: var(--muted); }

/* Rituals/Services grid */
.team_tabs .tab_content { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.img_card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.img_placeholder { aspect-ratio: 4/3; background: #f7f3ef; display: grid; place-items: center; }
.img_cnt { padding: 12px 14px; }

/* Gallery */
.gallery_wrapper { background: #fff; border-top-left-radius: 28px; border-top-right-radius: 28px; padding-bottom: 56px; }
.gallery_list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 20px; }
.gallery_img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); background: #f7f3ef; min-height: 140px; }
.gallery_img.vertical { grid-row: span 2; }
.gallery_img.horizontal_2 { grid-column: span 2; }

/* Footer */
footer { background: #fff; border-top: 1px solid rgba(0,0,0,.06); padding: 40px 0 24px; }
.footer_in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer_cnt h4 { margin-bottom: 8px; }
.footer_links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer_links a { color: inherit; text-decoration: none; }
.copy_right { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; border-top: 1px solid rgba(0,0,0,.06); padding-top: 16px; margin-top: 24px; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .about_us .sec_head { grid-template-columns: 1fr; text-align: center; }
  .spw_in { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team_tabs .tab_content { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery_list { grid-template-columns: repeat(4, 1fr); }
  nav ul { gap: 12px; }
}

@media (max-width: 720px) {
  .events_list { grid-template-columns: 1fr; }
  .spw_in { grid-template-columns: 1fr; }
  .team_tabs .tab_content { grid-template-columns: 1fr; }
  .gallery_list { grid-template-columns: repeat(2, 1fr); }
  header { position: relative; }
}
