/* ==========================================================================
   Time Out Manchester — proposal mockup
   Brand tokens live here: change once, updates everywhere.
   ========================================================================== */

:root {
  --red: #ed1c24;
  --red-dark: #c8102e;
  --black: #0f0f0f;
  --ink: #1a1a1a;
  --grey: #6b6b6b;
  --grey-light: #ececec;
  --line: #e3e3e3;
  --white: #fff;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-link,
.city-picker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.nav-link { white-space: nowrap; }

.nav-link.is-active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding: 23px 0 21px;
}

.chev { font-size: 9px; }
.globe { font-size: 14px; }

.header-right { display: flex; align-items: center; gap: 18px; }

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Red category bar */

.subnav { background: var(--red); }

.subnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 28px;
  /* first link lines up under the city name, past the logo */
  padding-left: calc(20px + 40px * 102 / 56 + 14px);
}

.subnav-link {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 13px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}
.subnav-link:hover { border-bottom-color: var(--white); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { background: var(--black); }

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 28px;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 32px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
}
.hero-overlay h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-overlay p {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.hero-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  transition: border-color 0.15s, color 0.15s;
}
.hero-link:hover { border-top-color: var(--red); color: #ffd7d4; }

/* ==========================================================================
   Search
   ========================================================================== */

.search-wrap { padding: 28px 20px 8px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey-light);
  border-radius: 6px;
  padding: 12px 16px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  color: var(--ink);
}
.search-icon { font-size: 14px; opacity: 0.55; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 36px 20px 8px; }

.section.has-rule {
  border-top: 4px solid var(--red);
  margin-top: 40px;
  padding-top: 24px;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-cta {
  text-align: center;
  padding: 32px 0 12px;
}

.pill-button {
  display: inline-block;
  border: 1.5px solid var(--red-dark);
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
}
.pill-button:hover { background: var(--red-dark); color: var(--white); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }

.card-body { padding: 14px 16px 20px; }

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 8px;
}
.card-tag.muted { color: var(--grey); }

.card-tag.on-image {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: var(--white);
  padding: 6px 10px;
  margin: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card-excerpt {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--grey);
}

/* Feature card (full-width, title overlaid) */

.feature-card {
  position: relative;
  display: block;
  margin-bottom: 24px;
  overflow: hidden;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  transition: transform 0.3s;
}
.feature-card:hover img { transform: scale(1.02); }

.feature-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 24px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.feature-excerpt {
  font-size: 14px;
  color: var(--grey);
  margin: -12px 0 24px;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  margin-top: 48px;
  overflow: hidden;
}
.newsletter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newsletter-body { padding: 32px 36px; }
.newsletter-body h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.newsletter-body h2 .accent { color: var(--red); }
.newsletter-body > p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--grey);
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 480px;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--ink); }

.solid-button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.solid-button:hover { background: var(--red-dark); }

.legal {
  margin-top: 14px;
  font-size: 11px;
  color: var(--grey);
  max-width: 520px;
}
.legal a { text-decoration: underline; }

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  display: block;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px;
  margin-top: 56px;
}
.back-to-top:hover { background: var(--red-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 32px;
}

.logo { display: inline-block; }
.logo img { height: 48px; width: auto; }

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-top: 32px;
}

.footer-signup h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.newsletter-form.dark input {
  background: var(--white);
  border-color: transparent;
}
.footer-signup .legal { color: #9a9a9a; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 12.5px;
  color: #c4c4c4;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sitemap-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sitemap-link:hover { text-decoration: underline; }

.copyright { font-size: 11.5px; color: #9a9a9a; }

.socials { display: flex; gap: 14px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: var(--white);
  transition: border-color 0.15s, background 0.15s;
}
.socials a:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-media img { max-height: 200px; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .brand img { height: 32px; }
  .subnav-inner {
    padding-left: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-links { grid-template-columns: 1fr; gap: 14px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .newsletter-body { padding: 24px 20px; }
  .newsletter-form { flex-direction: column; }
}
