/* home-style.css - premium editorial homepage styles for Kavaja City Guide */
:root {
  --bg: #f4e7c9;
  --panel: #ffffff;
  --text: #102a43;
  --muted: #52606d;
  --accent: #d97706;
  --gold: #d97706;
  --sand: #f6e7cc;
  --nav: #102a43;
  --brand-blue: #0b4680;
  --border: rgba(82, 96, 109, 0.2);
  --radius-card: 18px;
  --radius-full: 999px;
  --transition-premium: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(245, 196, 125, 0.14), transparent 17%);
  pointer-events: none;
}

.page {
  position: relative;
  min-height: 100vh;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav__brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--nav);
}

.hero {
  padding: 5%;
  width: 100%;
  margin: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.45)),
    url("../assets/homePageBanner.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero__top {
  display: grid;
  gap: 1.5rem;
}

.hero__title {
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.02;
  width: 80%;
  margin: 0;
}

.hero__copy {
  max-width: 54ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.search {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}

.search__field {
  width: 100%;
  padding: 1.12rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  background: #fff;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease;
}

.search__field:focus {
  outline: none;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.search__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  background: rgba(245, 210, 147, 0.14);
  color: var(--nav);
  font-size: 0.92rem;
  font-weight: 600;
}

.layout {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 1.5rem 2rem;
  max-width: 1220px;
  margin: 0 auto;
}

.featured {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.card__head {
  padding: 1.35rem 1.5rem 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0;
}

.card__meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.card__visual {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(150deg, #f8efe0 0%, #fde7c2 35%, #fefcf6 100%);
  border-top: 1px solid var(--border);
  display: block;
}

.card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at top right, rgba(255, 203, 90, 0.24), transparent 19%),
    radial-gradient(circle at center left, rgba(16, 42, 67, 0.08), transparent 12%);
}

/* Ensure images fill the visual area and maintain aspect ratio across devices */
.card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  -o-object-fit: cover;
}

/* Slightly taller visuals on larger screens */
@media (min-width: 840px) {
  .card__visual { min-height: 260px; }
}

@media (min-width: 1120px) {
  .card__visual { min-height: 320px; }
}

.aside {
  display: grid;
  gap: 1.25rem;
}

.panel {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.panel__badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.update {
  display: grid;
  gap: 1rem;
}

.update__item {
  display: grid;
  gap: 1rem;
  background: rgba(251, 243, 227, 0.92);
  border-radius: 16px;
  padding: 1.1rem;
}

.update__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.update__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.link-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f0e6 100%);
  border-radius: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.link-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.link-card__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.link-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: var(--nav);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: fit-content;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card__btn:hover,
.link-card__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.14);
}

@media (min-width: 840px) {
  .hero__top {
    grid-template-columns: minmax(0, 1.1fr) 0.9fr;
    align-items: center;
  }

  .layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    align-items: start;
    gap: 2rem;
  }

  .featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card__visual {
    min-height: 240px;
  }
}

@media (min-width: 1120px) {
  .hero {
    padding-top: 2.75rem;
  }

  .search {
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  .search__field {
    margin: 0;
  }

  .featured {
    gap: 1.5rem;
  }
}
