/* ============================================================
   Tulunadu Tourism - Main Stylesheet
   ============================================================ */

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

:root {
  --saffron:   #f4a020;
  --saffron-d: #d4850a;
  --green:     #2d5a27;
  --green-l:   #3d7a34;
  --ocean:     #1a6b8a;
  --ocean-l:   #2489ae;
  --cream:     #fdf8f0;
  --brown:     #5c3d1e;
  --text:      #2c1810;
  --muted:     #7a6558;
  --white:     #ffffff;
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --radius:    12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }

a { color: var(--saffron); text-decoration: none; transition: color .2s; }
a:hover { color: var(--saffron-d); }

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

/* ---- Navbar ---- */
.navbar {
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 12px 0;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron) !important;
}
.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--saffron);
  color: var(--white) !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 92vh;
  background: linear-gradient(135deg, rgba(44,24,16,.6) 0%, rgba(26,107,138,.4) 100%),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: .92;
}

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--saffron);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  background: #fff;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.15);
}
.card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.card-body { padding: 20px; }
.card-title { font-size: 1.15rem; font-weight: 600; color: var(--brown); margin-bottom: 8px; }
.card-text { color: var(--muted); font-size: .92rem; }

/* ---- Badges ---- */
.badge-cat {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-ocean { background: var(--ocean); }
.badge-green { background: var(--green); }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--saffron-d); border-color: var(--saffron-d); transform: translateY(-1px); }
.btn-outline-primary {
  border-color: var(--saffron);
  color: var(--saffron);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
}
.btn-outline-primary:hover { background: var(--saffron); color: #fff; }
.btn-ocean { background: var(--ocean); border-color: var(--ocean); color: #fff; font-weight: 600; border-radius: 8px; padding: 10px 28px; }
.btn-ocean:hover { background: var(--ocean-l); border-color: var(--ocean-l); color: #fff; }

/* ---- Gallery Grid ---- */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
@media(max-width:768px) { .gallery-grid { columns: 2; } }
@media(max-width:480px) { .gallery-grid { columns: 1; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: #fff; font-weight: 600; font-size: .95rem; }

/* ---- Filter Tabs ---- */
.filter-tabs { margin-bottom: 36px; }
.filter-btn {
  background: #fff;
  border: 2px solid #ddd;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  margin: 4px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

/* ---- Contact Form ---- */
.contact-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-control, .form-select {
  border: 2px solid #e8e0d5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(244,160,32,.15);
}
.form-label { font-weight: 600; color: var(--brown); margin-bottom: 6px; }

/* ---- Info Box (Tulu language etc) ---- */
.info-box {
  background: linear-gradient(135deg, var(--cream), #fff);
  border-left: 4px solid var(--saffron);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
  margin-bottom: 24px;
}
.info-box h4 { color: var(--brown); margin-bottom: 8px; }

/* ---- Beach Card extras ---- */
.best-time {
  background: rgba(26,107,138,.1);
  color: var(--ocean);
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 8px;
}

/* ---- Hero Stats ---- */
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--saffron);
}
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---- Alert ---- */
.alert-success-custom {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 1px solid #b8dfc5;
  color: #155724;
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--brown), var(--ocean));
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.page-header p { opacity: .85; font-size: 1.1rem; }

/* ---- Footer ---- */
footer {
  background: linear-gradient(135deg, #1a0a00, #0d2033);
  color: rgba(255,255,255,.8);
  padding: 60px 0 24px;
}
footer h5 {
  color: var(--saffron);
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--saffron); }
footer hr { border-color: rgba(255,255,255,.1); margin: 32px 0 20px; }
.footer-bottom { color: rgba(255,255,255,.5); font-size: .88rem; }

/* ---- Responsive ---- */
@media(max-width:768px) {
  .section { padding: 50px 0; }
  .contact-box { padding: 24px; }
  .hero { min-height: 70vh; }
}
