/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --red-light:  #E74C3C;
  --gold:       #C8A83C;
  --dark:       #1A1A1A;
  --dark-2:     #242424;
  --dark-3:     #2E2E2E;
  --mid:        #555;
  --muted:      #888;
  --border:     #E0E0E0;
  --bg:         #F8F6F3;
  --bg-card:    #FFFFFF;
  --text:       #1A1A1A;
  --text-2:     #3A3A3A;
  --text-3:     #666;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --trans:      0.2s ease;
  --max-w:      1160px;
  --font:       'Georgia', 'Times New Roman', serif;
  --font-ui:    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity var(--trans);
}
.logo:hover { opacity: 0.85; }

.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.logo-year { color: var(--gold); }

/* NAV */
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--trans), background var(--trans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--trans);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a0a04;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192,57,43,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(192,57,43,0.10) 0%, transparent 60%);
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  opacity: 0.6;
}
.hero-skyline svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-city {
  color: var(--red-light);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  transition: background var(--trans), transform var(--trans);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.3);
  width: 28px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

section h2 {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ===== ABOUT ===== */
.section-about {
  padding: 96px 0 80px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  margin-top: 36px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-bottom: none; }

.stat-number {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ===== LANDMARKS ===== */
.section-landmarks {
  padding: 96px 0 80px;
  background: var(--bg);
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font-ui);
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* hidden by filter */
.card.hidden { display: none; }

.card-img {
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.card-img svg {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
}

.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* BADGES */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-architecture { background: #FFF0ED; color: #922B21; }
.badge-museum       { background: #EDE9FF; color: #4A2090; }
.badge-temple       { background: #E8F4FF; color: #1A4A7A; }
.badge-square       { background: #EDFFF4; color: #1A5C35; }

.card-district {
  font-size: 0.75rem;
  color: var(--muted);
}

.card h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.card-date,
.card-style {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ===== HISTORIC ===== */
.section-historic {
  padding: 96px 0 80px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.list-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.list-card:hover {
  border-color: #d0d0d0;
  box-shadow: var(--shadow-sm);
}

.list-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-card-body { flex: 1; min-width: 0; }

.list-card h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.list-card p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 12px;
}

.list-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.list-meta span {
  font-size: 0.7rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ===== PARKS ===== */
.section-parks {
  padding: 96px 0 80px;
  background: var(--bg);
}

.parks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.park-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.park-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.park-card-header {
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 18px;
  position: relative;
}

.park-area {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.park-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.park-body h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.park-body p {
  font-size: 0.87rem;
  color: var(--text-3);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

.park-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.park-tags span {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== INFO SECTION ===== */
.section-info {
  padding: 96px 0 80px;
  background: var(--dark);
}

.section-info .section-label {
  color: var(--gold);
}

.section-info h2 {
  color: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-block {
  padding: 32px 28px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background var(--trans);
}
.info-block:hover { background: var(--dark-3); }

.info-block-icon {
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.85;
}

.info-block h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  line-height: 1.3;
}

.info-block p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand { flex: 1; }
.logo-footer .logo-text { color: rgba(255,255,255,0.85); }

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
}

.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--trans);
  flex-shrink: 0;
}
.back-to-top:hover { color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-item { flex: 1; min-width: 140px; border-right: 1px solid var(--border); border-bottom: none; }
  .stat-item:last-child { border-right: none; }

  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-nav { gap: 32px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 24px 24px;
    display: none;
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  section h2 { font-size: 1.6rem; }

  .cards-grid,
  .parks-grid { grid-template-columns: 1fr; }

  .list-grid { grid-template-columns: 1fr; }

  .info-grid { grid-template-columns: 1fr; }

  .footer-nav { flex-direction: column; gap: 28px; }

  .section-about,
  .section-landmarks,
  .section-historic,
  .section-parks,
  .section-info { padding: 64px 0 56px; }

  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding-top: 80px; padding-bottom: 60px; }
  .cards-grid { gap: 16px; }
  .about-stats { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 0.78rem; padding: 6px 12px; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .hero-scroll, .filter-bar, .btn-primary { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  body { font-size: 12pt; }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
