/* ============================================================
   Kirkland's by Bed Bath & Beyond — Static Site
   Brand colors: #00253d (navy) · #212322 (charcoal) · #54575a (grey) · #ffffff
   ============================================================ */

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Thin.otf') format('opentype');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #00253d;
  --charcoal:#212322;
  --grey:    #54575a;
  --white:   #ffffff;
  --light:   #f4f6f8;
  --navy-10: rgba(0, 37, 61, 0.10);
  --navy-70: rgba(0, 37, 61, 0.72);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Metropolis', helvetica, arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 8px 0;
  background: var(--navy);
}

.site-header.header-solid {
  position: sticky;
  background: var(--navy);
  padding: 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.site-header[data-sticky="always"].header-solid {
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: clamp(88px, 9vw, 150px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.nav-links .btn-nav {
  display: inline-block;
  padding: 8px 20px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 1;
  transition: background 0.2s, color 0.2s;
}

.nav-links .btn-nav:hover {
  background: rgba(255,255,255,0.88);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .nav-logo img { height: 130px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    z-index: 200;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    opacity: 1;
  }

  .nav-links .btn-nav {
    margin: 16px 24px;
    padding: 12px 24px;
    text-align: center;
    display: block;
    border-radius: 2px;
  }
}

/* ── Hero (homepage) ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  padding-top: 108px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 25% 30%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-logo {
  margin-bottom: 48px;
}

.hero-logo img {
  height: 48px;
  width: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 680px;
}

.hero h1 strong {
  font-weight: 700;
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Metropolis', helvetica, arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.88);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: #003557;
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Cards grid ───────────────────────────────────────────── */
.cards-section {
  padding: 64px 0;
  background: var(--white);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.section-heading strong { font-weight: 700; }

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

.card {
  background: var(--light);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,37,61,0.12);
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.card-body .link-arrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.card-body .link-arrow::after {
  content: '→';
  font-size: 1rem;
}

.card:hover .link-arrow { gap: 14px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ── Thank you section ────────────────────────────────────── */
.thankyou-section {
  padding: 48px 0;
  background: var(--light);
  text-align: center;
}

.thankyou-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
}

/* ── Announcement banner ──────────────────────────────────── */
.announcement {
  background: var(--navy);
  padding: 48px 0;
  text-align: center;
}

.announcement p {
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 32px;
}

.announcement p strong {
  color: var(--white);
  font-weight: 600;
}

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero .section-label { color: rgba(255,255,255,0.8); }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero h1 strong { font-weight: 700; }

/* ── Inner page content ───────────────────────────────────── */
.page-body {
  padding: 48px 0 56px;
}

/* Learnmore sections */
.info-section {
  border-bottom: 1px solid rgba(0,37,61,0.08);
  padding: 32px 0;
  scroll-margin-top: 185px;
}

.info-section:first-child { padding-top: 0; }
.info-section:last-child  { border-bottom: none; }

.info-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.info-section p,
.info-section li {
  font-size: 0.97rem;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 12px;
}

.info-section ul,
.info-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.info-section ul li { list-style: disc; }
.info-section ol li { list-style: decimal; }

.info-section a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-section a:hover { opacity: 0.7; }

.contact-highlight {
  display: inline-block;
  background: var(--light);
  border-left: 3px solid var(--navy);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--charcoal);
  border-radius: 0 2px 2px 0;
}

.contact-highlight a { color: var(--navy); text-decoration: underline; }

/* Two-column layout for info page on wide screens */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.sidebar-nav a:hover {
  background: var(--navy-10);
  color: var(--navy);
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar { display: none; }
}

/* ── Legal pages ──────────────────────────────────────────── */
.legal-body {
  max-width: 760px;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,37,61,0.08);
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body p,
.legal-body li {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-body ul li { list-style: disc; }
.legal-body ol li { list-style: decimal; }

.legal-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  background: var(--light);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── 404 error page ──────────────────────────────────────── */
.error-body {
  max-width: 600px;
}

.error-body p {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.error-body ul {
  padding-left: 20px;
  margin-bottom: 40px;
}

.error-body li {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  list-style: disc;
  margin-bottom: 8px;
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.error-actions .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.error-actions .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Homepage message section ─────────────────────────────── */
.message-section {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid rgba(0,37,61,0.08);
}

.message-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.message-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.message-body p {
  font-size: 0.97rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 16px;
}

.message-body p:last-child { margin-bottom: 0; }

.message-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  padding: 20px 0 16px;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: clamp(96px, 9vw, 160px);
  width: auto;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.footer-social svg { display: block; }


@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
