/* ============================================================
   CHITTAGONG DIVISION SMART TOURISM — GLOBAL STYLES
   ============================================================ */

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

:root {
  /* Brand Palette — Chittagong: deep forest greens + sea teal + warm earth */
  --primary:       #1B4332;
  --primary-mid:   #2D6A4F;
  --primary-light: #40916C;
  --accent:        #52B788;
  --accent-soft:   #B7E4C7;
  --teal:          #006D77;
  --sea:           #83C5BE;
  --gold:          #D4A017;
  --gold-light:    #F1C40F;
  --red:           #C0392B;
  --sand:          #F4ECD8;
  --dark:          #0D1B12;
  --body:          #1C2B22;
  --gray:          #6B7B72;
  --light-gray:    #F2F6F3;
  --white:         #FFFFFF;
  --border:        #D8E8DE;

  /* Spacing */
  --nav-h: 72px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(27,67,50,0.08);
  --shadow-md:  0 6px 28px rgba(27,67,50,0.12);
  --shadow-lg:  0 16px 52px rgba(27,67,50,0.18);
  --shadow-xl:  0 28px 80px rgba(27,67,50,0.22);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-full: 9999px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: .95rem; line-height: 1.75; color: var(--gray); }

/* UTILITIES */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--primary);
  padding: 5px 14px; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.tag.gold { background: #FFF3CD; color: #856404; }
.tag.teal { background: #D1ECF1; color: #0C5460; }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-gold   { color: var(--gold); }
.text-accent { color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(27,67,50,0.35);
}
.btn-primary:hover { background: var(--primary-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,67,50,0.4); }

.btn-accent {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 16px rgba(82,183,136,0.4);
}
.btn-accent:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold); color: var(--white);
  box-shadow: 0 4px 16px rgba(212,160,23,0.4);
}
.btn-gold:hover { background: #b8860f; transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

.btn-ghost {
  background: var(--light-gray); color: var(--primary);
}
.btn-ghost:hover { background: var(--accent-soft); }

.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-gold   { background: #FEF3C7; color: #92400E; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-teal   { background: #CCFBF1; color: #115E59; }

/* DIVIDER */
.divider { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin: 16px 0 28px; }
.divider.center { margin: 16px auto 28px; }

/* FORM ELEMENTS */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--primary); margin-bottom: 7px; letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .9rem; color: var(--body);
  background: #FAFCFB; transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ALERT */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* OVERLAY IMAGE PATTERN */
.overlay-dots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(82,183,136,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(82,183,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(82,183,136,0); }
}
@keyframes scanLine {
  0%   { top: 10%; }
  50%  { top: 82%; }
  100% { top: 10%; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-fade-up { animation: fadeUp .7s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }
.animate-delay-5 { animation-delay: .5s; }
.animate-float   { animation: floatY 4s ease-in-out infinite; }

/* NAVBAR (shared) */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(13, 27, 18, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}
.pub-nav.scrolled {
  background: rgba(27, 67, 50, 0.98);
  box-shadow: var(--shadow-md);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.nav-logo span.sub { font-family: var(--font-body); font-size: .7rem; font-weight: 500; opacity: .7; display: block; letter-spacing: .08em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-full);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-cta-text { color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }
.nav-cta-text:hover { color: var(--white); }

/* HERO SECTION BASE */
.hero-wrap {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: .85rem; line-height: 1.8; margin-top: 14px; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--white); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6);
  font-size: .85rem; padding: 5px 0; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-logo { font-family: var(--font-display); color: var(--white); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }

/* SCROLL TO TOP */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  transform: translateY(10px);
}
.scroll-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-light); }

/* PLACE CARD */
.place-card { border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease; }
.place-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.place-thumb {
  height: 210px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.place-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.place-card:hover .place-thumb img { transform: scale(1.06); }
.place-thumb .permit-tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(192,57,43,0.92); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; font-weight: 800;
  padding: 4px 12px; border-radius: var(--r-full); letter-spacing: .04em;
}
.place-thumb .free-tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(27,67,50,0.9); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; font-weight: 800;
  padding: 4px 12px; border-radius: var(--r-full);
}
.place-body { padding: 20px 22px; }
.place-body h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--dark); }
.place-body .loc { color: var(--gray); font-size: .8rem; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.place-body p { font-size: .83rem; margin-bottom: 16px; line-height: 1.6; }
.place-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.place-price { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1rem; }

/* STAT NUMBER */
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pub-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
