/* Cosy Friends — UK lifestyle blog */

:root {
  --blue: #2f6fed;
  --blue-dark: #1f56c7;
  --blue-soft: #e8f0ff;
  --ink: #1a1f2c;
  --muted: #5b6475;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 86, 199, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1140px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5 { line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem; z-index: 999; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 12px;
  background:
    radial-gradient(circle at 35% 50%, #fff 0 34%, transparent 35%),
    radial-gradient(circle at 68% 50%, #c9dcff 0 30%, transparent 31%),
    var(--blue);
}
.logo-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  background: #fff; border-color: var(--blue); color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn-arrow::after {
  content: "→";
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.btn-outline.btn-arrow::after { margin-left: 0.15rem; }
.header-cta { color: #fff !important; }

/* Hero — split like Happy as Friends */
.hero-welcome {
  padding: 4.5rem 0 2.5rem;
}
.hero-welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}
.hero-welcome h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin: 0;
  max-width: 10ch;
}
.hero-welcome-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
}
.hero-welcome-copy { padding-bottom: 0.35rem; }

/* Mosaic category grid */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 3.5rem;
}
.mosaic-item {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  position: relative;
}
.mosaic-item img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-tile {
  background: var(--blue);
  color: #fff;
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
}
.mosaic-tile h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.5rem; }
.mosaic-tile p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.98rem; }
.mosaic-tile:hover { background: var(--blue-dark); color: #fff; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 86, 199, 0.12);
  color: inherit;
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body .cat {
  color: var(--blue); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.45rem;
}
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.blog-card-body .date { color: #8a93a5; font-size: 0.85rem; margin: 0.75rem 0 0; }
.section-cta { text-align: center; margin-top: 2rem; }

/* Intro split */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.intro-split img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.intro-split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.intro-split p { color: var(--muted); }

/* Topic cards */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.topic-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  color: inherit;
}
.topic-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 1rem;
}
.topic-card h3 { font-size: 1.1rem; }
.topic-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Banner */
.soft-banner {
  background: linear-gradient(120deg, var(--blue), #4b86f5);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
}
.soft-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.soft-banner p { color: rgba(255,255,255,0.92); max-width: 36rem; margin: 0 auto; }

/* FAQ */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 1.1rem 1.25rem; font: inherit; font-weight: 700;
  cursor: pointer; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item button span { color: var(--blue); font-size: 1.25rem; line-height: 1; }
.faq-panel {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
}
.faq-item.is-open .faq-panel { display: block; }
.faq-item.is-open button span { transform: rotate(45deg); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info h2 { font-size: 2rem; font-weight: 800; }
.contact-info p { color: var(--muted); }
.info-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
}
.info-block strong {
  display: block; color: var(--blue); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem;
}
.info-block p { margin: 0 0 1rem; color: var(--ink); }
.info-block p:last-child { margin-bottom: 0; }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--bg-soft);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(47, 111, 237, 0.25);
  border-color: var(--blue); background: #fff;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert {
  padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.95rem;
}
.alert-success { background: #e7f7ed; color: #1b5e35; border: 1px solid #b7e0c5; }
.alert-error { background: #fdeeee; color: #8a2a2a; border: 1px solid #efc2c2; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--blue-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 16ch;
}
.page-hero p { color: var(--muted); max-width: 42ch; margin: 0; font-size: 1.08rem; }

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.article .meta {
  color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem;
}
.article .meta span { color: var(--blue); font-weight: 700; }
.article-hero-img {
  border-radius: var(--radius);
  width: 100%; height: 360px; object-fit: cover;
  margin-bottom: 2rem; box-shadow: var(--shadow);
}
.article h2 { font-size: 1.45rem; margin-top: 2rem; }
.article p, .article li { color: var(--muted); }
.article ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.article li { margin-bottom: 0.4rem; }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }

.media-round {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}
.media-round img { width: 100%; height: 340px; object-fit: cover; }

/* Footer */
.site-footer {
  background: #152039;
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 34ch; }
.footer-col h3 {
  color: #fff; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 1rem;
}
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.15rem 0 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom p { margin: 0; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-welcome-grid,
  .intro-split,
  .contact-grid,
  .blog-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.25rem; gap: 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .header-cta { text-align: center; }

  .hero-welcome-grid,
  .mosaic,
  .blog-grid,
  .intro-split,
  .topic-grid,
  .steps,
  .contact-grid,
  .footer-inner,
  .form-grid-2 { grid-template-columns: 1fr; }

  .hero-welcome h1 { max-width: none; }
  .section { padding: 3.25rem 0; }
  .article-hero-img, .intro-split img, .media-round img { height: 240px; }
}
