/* Chez Marielle — colours and fonts carried over from the Canva site */
:root {
  --green: #03301A;
  --cream: #F5F1E8;
  --ink: #274234;
  --white: #FFFFFF;
  --line: rgba(3, 48, 26, 0.18);
  --serif: 'Ovo', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(56px, 7vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--green); margin: 0; }
h2 { font-size: 26px; line-height: 1.2; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  background: var(--cream);
  color: var(--green);
  border: 0;
  padding: 14px 26px;
  cursor: pointer;
}
.button.dark { background: var(--green); color: var(--white); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #8A7652; outline-offset: 2px; }

/* Hero */
.hero { background: var(--green); color: var(--cream); padding: 36px 0 var(--section); }
.logo img { width: 230px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Menu button: phone only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid #8A7652; outline-offset: 2px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}
.hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 56px); line-height: 1.13; }
.hero-line { margin-top: 20px; }
.event-types { margin: 22px 0 32px; padding-left: 20px; }
.event-types li { margin: 4px 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }

/* What I do / Who it's for / What I can help with */
.services { padding: var(--section) 0; }
.cols { display: grid; gap: 40px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols article { border-top: 1px solid var(--line); padding-top: 20px; }
.block { margin-top: clamp(48px, 6vw, 72px); }
.tags, .help-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 40px; }
.tags { grid-template-columns: repeat(4, 1fr); }
.help-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
.tags li, .help-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.tags li { font-family: var(--serif); font-size: 20px; color: var(--green); padding-top: 16px; }

/* Past events page */
.page-head { background: var(--green); color: var(--cream); padding: 36px 0 clamp(40px, 5vw, 64px); }
.page-head h1 { color: var(--white); font-size: clamp(38px, 5vw, 56px); line-height: 1.13; margin-top: clamp(32px, 5vw, 56px); }
.event { padding: var(--section) 0; }
.event:nth-of-type(even) { background: var(--cream); }
.event-text { max-width: 680px; margin-bottom: 32px; }
.event .loc { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: #8A7652; margin-bottom: 8px; }
.event .loc svg { width: 1em; height: 1em; flex: none; }
.event h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.event .details { font-size: 15px; color: #8A7652; margin-bottom: 16px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mosaic .lead { grid-column: span 2; grid-row: span 2; height: 100%; aspect-ratio: auto; }
.mosaic .wide { grid-column: span 2; height: 100%; aspect-ratio: auto; }
.mosaic.pair img { grid-column: span 2; }
.mosaic.trio { grid-template-columns: repeat(3, 1fr); }

/* About */
.about { background: var(--cream); padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo img { width: 100%; }
.about p { max-width: 560px; }

/* Plan an event */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro p { max-width: 380px; }
.contact-line { max-width: 520px; margin-bottom: 28px; }
.links { list-style: none; padding: 0; margin: 28px 0 0; }
.links li { margin: 8px 0; }
.links a { color: var(--green); font-weight: 500; text-underline-offset: 4px; }

.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; }
.field[hidden] { display: none; }
.field.half { grid-column: span 1; }
label { font-size: 15px; color: var(--green); margin-bottom: 6px; }
input, textarea, select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid rgba(39, 66, 52, 0.35);
  border-radius: 0;
  padding: 12px 14px;
  background: var(--white);
  width: 100%;
}
textarea { resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23274234' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field .button { align-self: flex-start; }
.form-status { margin-top: 14px; min-height: 1.6em; }

/* Service pages: numbered steps and the closing call to action */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 28px; color: var(--green); margin-bottom: 8px; }
.hero-cta { margin-top: 32px; }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lead-text { max-width: 680px; }
.lead-text a { color: var(--green); text-underline-offset: 4px; }
.split .help-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
.cta { background: var(--cream); padding: var(--section) 0; }
.cta p { max-width: 560px; margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }

/* Tablet */
@media (max-width: 900px) {
  .cols.three { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tags { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split img { max-width: 420px; }
}

/* Menu button: phones and tablets */
@media (max-width: 960px) {
  .topbar { position: relative; }
  .nav { gap: 22px; }
  /* With the script running, the menu folds behind the button. Without it, the links stay visible. */
  .js .nav-toggle { display: flex; position: relative; z-index: 21; }
  /* The menu slides in from the right and covers three quarters of the screen. */
  .js .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: min(75vw, 420px);
    flex-direction: column;
    gap: 0;
    padding: 96px 28px 32px;
    background: var(--green);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .js .nav.open { transform: none; visibility: visible; transition: transform 0.3s ease, visibility 0s; }
  .js .nav a { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; padding: 16px 0; border-bottom: 1px solid rgba(245, 241, 232, 0.25); white-space: normal; }
  .js .nav a:first-child { border-top: 1px solid rgba(245, 241, 232, 0.25); }
  /* The rest of the page dims behind the open menu; tapping it closes the menu. */
  html.menu-open { overflow: hidden; }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, 0.45); }
}

/* Phone */
@media (max-width: 700px) {
  .hero { padding-top: 24px; }
  .logo img { width: 180px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .help-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .steps { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mosaic .lead { grid-row: auto; height: auto; aspect-ratio: 4 / 5; }
  .mosaic .wide { height: auto; aspect-ratio: 8 / 5; }
  .mosaic.pair img { grid-column: auto; }
  .mosaic.trio { grid-template-columns: 1fr 1fr; }
  .mosaic.trio img:first-child { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .inquiry { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
}

/* No sliding for people who turn off motion */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-toggle span { transition: none !important; }
}
