/* ============================================================
   Hosapete.in — Comprehensive Travel Guide to Hampi & Hosapete
   Style Sheet
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-terracotta:    #C75B39;
  --color-terracotta-soft: #E8A087;
  --color-terracotta-dark: #9A3E22;
  --color-stone-gray:    #6B6B6B;
  --color-stone-light:   #D4D0CC;
  --color-stone-dark:    #3A3A3A;
  --color-saffron:       #F4A940;
  --color-gold:          #C99A3B;
  --color-river-green:   #2E7D6F;
  --color-river-green-light: #4DB6A0;
  --color-cream:         #FAF7F2;
  --color-white:         #FFFFFF;
  --color-black:         #1C1C1C;
  --color-text:          #2D2D2D;
  --color-text-soft:     #5A5A5A;
  --color-bg:            #FAF7F2;
  --color-bg-alt:        #F0EBE3;
  --color-border:        #E0D8CC;
  --color-footer-bg:     #2D2D2D;
  --color-footer-text:   #C0B8AC;

  --font-primary:  'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading:  'Georgia', 'Times New Roman', serif;

  --container-max:  1200px;
  --container-narrow: 900px;
  --nav-height:    64px;
  --transition:    0.3s ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius:      8px;
  --radius-lg:   12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus { color: var(--color-terracotta-dark); }

ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}
.btn-primary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}
.btn-outline:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}
.btn-gold {
  background: var(--color-saffron);
  color: var(--color-white);
  border-color: var(--color-saffron);
}
.btn-gold:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-terracotta-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand span { color: var(--color-saffron); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-terracotta);
  background: rgba(199,91,57,0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--color-stone-light);
}
.breadcrumbs a { color: var(--color-terracotta); }
.breadcrumbs [aria-current="page"] { color: var(--color-text-soft); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  margin-top: var(--nav-height);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.25rem;
}
.hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}
.hero .btn { margin: 0.3rem; }

/* Page header (inner pages) */
.page-header {
  margin-top: var(--nav-height);
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.page-header h1 {
  font-size: 2.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2rem;
}
.section-title p {
  color: var(--color-text-soft);
  max-width: 650px;
  margin: 0.5rem auto 0;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.card-body p {
  font-size: 0.93rem;
  color: var(--color-text-soft);
  margin-bottom: 0.75rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-stone-gray);
  flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Content Layout (2-col) --- */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.content-row.reverse { direction: rtl; }
.content-row.reverse > * { direction: ltr; }
.content-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* --- Info Box --- */
.info-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-terracotta);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.info-box h4 { color: var(--color-terracotta-dark); margin-bottom: 0.3rem; }
.info-box ul { margin: 0.5rem 0 0; }
.info-box li { margin-bottom: 0.3rem; font-size: 0.93rem; }

/* --- Stats / Quick Facts --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-card {
  background: var(--color-white);
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-terracotta);
}
.stat-card .label {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-top: 0.2rem;
}

/* --- Table styles --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
thead th {
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
tbody tr:nth-child(even) { background: var(--color-bg-alt); }

/* --- Timeline (itineraries) --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-terracotta-soft);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--color-terracotta);
  border: 3px solid var(--color-bg);
  border-radius: 50%;
}
.timeline-item h4 { margin-bottom: 0.15rem; }
.timeline-item .time {
  font-size: 0.85rem;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline-item p { font-size: 0.93rem; }

/* --- Accordion --- */
.accordion { margin: 1rem 0; }
.accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--color-bg-alt); }
.accordion-btn::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-terracotta);
  transition: transform var(--transition);
}
.accordion-btn[aria-expanded="true"]::after {
  content: '−';
}
.accordion-panel {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.accordion-panel.open {
  max-height: 600px;
  padding: 1rem 1.25rem 1.25rem;
}

/* --- Map placeholder --- */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-gray);
  font-size: 1rem;
  border: 1px dashed var(--color-border);
  margin: 1.5rem 0;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}

/* --- 404 Page --- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.page-404 h1 { font-size: 6rem; color: var(--color-terracotta); }
.page-404 p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
}
.footer-grid li { margin-bottom: 0.35rem; }
.footer-grid a {
  color: var(--color-footer-text);
}
.footer-grid a:hover { color: var(--color-saffron); }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.footer-brand span { color: var(--color-saffron); }
.footer-brand-desc { margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--color-saffron); }
.footer-bottom a:hover { text-decoration: underline; }

.email-protected {
  cursor: pointer;
  color: var(--color-saffron);
  text-decoration: underline dotted;
}
.email-protected:hover { text-decoration: underline; }

/* --- Sticky Plan Button (mobile) --- */
.sticky-plan {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.sticky-plan .btn { width: 100%; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 1rem 1.25rem;
  z-index: 2000;
  display: none;
  font-size: 0.85rem;
}
.cookie-banner.show { display: block; }
.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner p { margin: 0; }
.cookie-banner .btn { flex-shrink: 0; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 58px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 2.2rem; }
  .page-header { min-height: 30vh; }
  .page-header h1 { font-size: 1.8rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.8rem; width: 100%; }
  .nav-toggle { display: block; }

  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .sticky-plan { display: block; }
  body { padding-bottom: 60px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 2.5rem 0; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.88rem; }
}
