/* ===========================
   Attic Child Vintage Home Boutique
   =========================== */

:root {
  --cream: #f6f1e7;
  --cream-dark: #ece3d2;
  --brown-dark: #3f2f26;
  --brown: #6b4f3f;
  --brown-light: #a9836b;
  --gold: #b98b4e;
  --white: #fffdf9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--brown-dark);
  background-color: var(--cream);
  line-height: 1.6;
  font-weight: 300;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.center {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.eyebrow.center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--brown-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--brown);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown-dark);
}

/* Logo artwork's black card has been keyed out to transparency (see
   assets/logo-transparent.png), so it sits cleanly on any background. */
.logo-mark {
  display: block;
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--brown-dark);
  position: relative;
  padding-bottom: 3px;
}

.main-nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--brown-dark);
  border-radius: 1px;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(63, 47, 38, 0.55), rgba(63, 47, 38, 0.75)),
    linear-gradient(135deg, #8a6a52 0%, #5f4433 45%, #3f2f26 100%);
  background-blend-mode: multiply;
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--cream);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   Visit
   =========================== */

.visit {
  padding: 4.5rem 0;
  background-color: var(--brown-dark);
  color: var(--cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.visit-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.visit-card p {
  color: var(--cream-dark);
  font-size: 0.95rem;
}

.visit-card a:hover {
  color: var(--gold);
}

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

.newsletter {
  padding: 5rem 0;
  background-color: var(--cream);
}

.newsletter-inner {
  text-align: center;
  max-width: 520px;
}

.newsletter h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.newsletter p {
  color: var(--brown);
  margin-bottom: 1.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brown-light);
  border-radius: 2px;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

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

.site-footer {
  background-color: var(--brown-dark);
  color: var(--cream-dark);
  padding: 3.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-brand p:last-child {
  font-size: 0.85rem;
  color: var(--brown-light);
}

.footer-links,
.footer-social {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--gold);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 1.5rem;
}

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

@media (max-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--cream-dark);
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }
}
