/* =========================================================
   Maison & Co. — Demo stylesheet
   Sections in this file follow the same order as index.html
   ========================================================= */

/* ---------- 1. Colours, fonts and spacing (change these to restyle the whole site) ---------- */
:root {
  --ivory: #f8f4ec;
  --cream: #f1ebe0;
  --beige: #e4d9c7;
  --sand: #d3c4ab;
  --charcoal: #2b2925;
  --charcoal-soft: #55514a;
  --gold: #b39662;          /* champagne-gold accent */
  --gold-dark: #8c7244;
  --line: #ddd3c2;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- 2. Base reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Clear, visible focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- 3. Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 4. Buttons and text links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

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

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s ease;
}

.btn-link:hover {
  color: var(--gold-dark);
}

/* ---------- 5. Image placeholders ----------
   These coloured boxes stand in for photos.
   See the instructions for how to swap them for real images. */
.ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--beige);
}

.ph-label {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(43, 41, 37, 0.55);
}

.ph-tall    { aspect-ratio: 4 / 5; }
.ph-product { aspect-ratio: 4 / 5; }
.ph-wide    { aspect-ratio: 7 / 5; }
.ph-fill    { height: 100%; }

/* Soft tonal variations so the page feels editorial, not flat */
.ph-tone-1 { background: linear-gradient(160deg, #e8dcc8 0%, #d6c5a8 100%); }
.ph-tone-2 { background: #e6ddcf; }
.ph-tone-3 { background: #d9cbb4; }
.ph-tone-4 { background: #cfc2ad; }
.ph-tone-5 { background: #e2d6c1; }

/* Real images placed inside a placeholder fill it neatly */
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 6. Demo notice bar ---------- */
.demo-bar {
  background: var(--charcoal);
  color: var(--beige);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.55rem var(--gutter);
}

.demo-bar p {
  margin: 0;
}

/* ---------- 7. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-amp {
  font-style: italic;
  color: var(--gold);
}

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.nav-list a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-list a:hover {
  border-bottom-color: var(--gold);
}

/* ---------- 8. Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 var(--section-space);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.75rem);
  margin-bottom: 1.75rem;
  max-width: 11ch;
}

.hero-lede {
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--charcoal-soft);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

/* ---------- 9. Featured products ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
}

.section-head .eyebrow {
  margin-bottom: 0.9rem;
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-intro {
  color: var(--charcoal-soft);
  max-width: 34rem;
  margin: 1.25rem 0 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-link {
  display: block;
  text-decoration: none;
}

.product-card .ph {
  transition: opacity 0.3s ease;
}

.product-link:hover .ph {
  opacity: 0.88;
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding-top: 1.1rem;
}

.product-name {
  font-size: 1.375rem;
  grid-column: 1;
}

.product-meta {
  grid-column: 1;
  font-size: 0.875rem;
  color: var(--charcoal-soft);
  margin: 0.3rem 0 0;
}

.product-price {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9375rem;
  font-weight: 400;
  margin: 0.2rem 0 0;
}

/* ---------- 10. Brand story ---------- */
.story {
  background: var(--cream);
}

.story-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.story-text h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  margin-bottom: 1.75rem;
}

.story-text p {
  color: var(--charcoal-soft);
  max-width: 32rem;
}

.story-text .btn {
  margin-top: 1.25rem;
}

/* ---------- 11. Curated lifestyle ---------- */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  min-height: 640px;
}

.lifestyle-large {
  grid-row: span 2;
}

.lifestyle-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  min-height: 260px;
}

.lifestyle-card .ph {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.lifestyle-card:hover .ph {
  transform: scale(1.03);
}

.lifestyle-card .ph-label {
  top: 1rem;
  bottom: auto;
}

.lifestyle-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
  background: rgba(248, 244, 236, 0.92);
  margin: 1.25rem;
  max-width: 22rem;
}

.lifestyle-caption h3 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.lifestyle-caption p {
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- 12. Newsletter ---------- */
.newsletter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: var(--charcoal-soft);
  margin: 0;
}

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

.newsletter-form input {
  flex: 1 1 240px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--charcoal);
  padding: 0.9rem 0.25rem;
  border-radius: 0;
}

.newsletter-form input::placeholder {
  color: #8a847a;
}

.newsletter-form input:focus-visible {
  outline: none;
  border-bottom-color: var(--gold-dark);
  box-shadow: 0 1px 0 0 var(--gold-dark);
}

.form-note {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: #6f6a61;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--beige);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.logo-footer {
  display: inline-block;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #b8ad9b;
  max-width: 22rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 4px;
}

address {
  font-style: normal;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-top: 1px solid #45423c;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: #9a9182;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================
   14. Responsive layout
   ========================================================= */

/* Tablets */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Phones */
@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  /* Logo on top, menu links in a row underneath */
  .header-inner {
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.9rem;
    padding-bottom: 0.6rem;
    min-height: 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-list {
    gap: 1.4rem;
  }

  .nav-list a {
    font-size: 0.75rem;
    display: inline-block;
    padding: 0.6rem 0;     /* larger tap target */
  }

  .hero-inner,
  .story-inner,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  /* Show the hero image after the headline on phones */
  .hero-media {
    order: 2;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head-center {
    align-items: center;
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .lifestyle-large {
    grid-row: auto;
  }

  .lifestyle-card {
    aspect-ratio: 4 / 5;
  }

  .lifestyle-caption {
    margin: 1rem;
    padding: 1.25rem;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}