/* ==========================================================================
   Remily Events — shared stylesheet
   --------------------------------------------------------------------------
   EASY EDITS: change the colors and fonts below and the whole site updates.
   ========================================================================== */

:root {
  /* ---- Core color scheme ---- */
  --color-navy: #17263F;        /* text, headings and nav */
  --color-peach: #EFB49F;       /* page background */
  --color-ivory: #F8F5EE;       /* header, hero, page titles, CTA band, footer */
  --color-sage: #858C7A;        /* available accent (not used yet) */
  --color-gold: #B8945B;        /* buttons, underlines and accents */
  --color-blush: #DDA49A;       /* soft accents */

  /* ---- Extra accents ---- */
  --color-gold-light: #e8c98a;  /* demo banner */
  --color-magenta: #9b2f7d;     /* package taglines and form focus ring */

  /* ---- How the colors are used ---- */
  --color-bg: var(--color-peach);      /* page background */
  --color-band: var(--color-ivory);    /* header, hero, page titles, CTA band, footer */
  --color-surface: #ffffff;            /* cards and form background */
  --color-text: var(--color-navy);     /* main text */
  --color-muted: color-mix(in srgb, var(--color-navy) 85%, white); /* secondary text */
  --color-border: color-mix(in srgb, var(--color-navy) 12%, white); /* thin lines and outlines */

  /* ---- Fonts ----
     These use fonts already on most computers, so the site loads fast.
     To use a Google Font instead, add its <link> tag to each page's <head>
     and put its name first in the list, e.g. "Cormorant Garamond", ... */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  /* Playfair Display is loaded from Google Fonts in index.html only, for the
     two home-page headings marked class="display-heading". */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- Spacing and shape ---- */
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 38, 63, 0.08);
  --space: clamp(3rem, 7vw, 5.5rem); /* vertical space between sections */
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  text-wrap: balance; /* even out line lengths so one word isn't left alone */
}

/* Highlighted words inside a display heading, e.g. <em>shimmer</em> */
.display-heading em {
  font-style: italic;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

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

a:hover { color: var(--color-magenta); }

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  padding: 0.6rem 1rem;
}

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

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--color-gold-light);
  color: var(--color-navy);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}

.demo-banner strong { letter-spacing: 0.04em; }

/* ---------- Header & navigation ---------- */
.site-header {
  background: var(--color-band);
  color: var(--color-navy);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

/* The logo is a navy and gold serif image (images/logo-remily-events-serif.png) with a
   transparent background, so it sits on the header without a box. */
.logo {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  transition: filter 0.2s ease;
}

.logo:hover img { filter: brightness(1.15); }

@media (min-width: 800px) {
  .logo img { height: 60px; }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  border: 2px solid var(--color-gold);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-ivory);
}

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

.button-outline:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-ivory);
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Home hero (photo) ---------- */
.hero {
  background: var(--color-band);
  color: var(--color-navy);
  padding-bottom: var(--space);
}

/* The photo and the crest logo stacked on top of it */
.hero-media {
  position: relative;
}

/* The photo file is cropped so the centre plate sits exactly in the middle.
   object-fit: cover trims evenly from both sides, so it stays centred. */
.hero-image {
  width: 100%;
  min-height: 300px;
  max-height: 72vh;
  object-fit: cover;
}

/* Soft ivory wash over the photo so the crest stands out: stronger in the
   middle (behind the crest), lighter at the edges. Raise the percentages for
   a lighter photo, lower them to show more of the photo. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--color-band) 82%, transparent) 0%,
    color-mix(in srgb, var(--color-band) 70%, transparent) 40%,
    color-mix(in srgb, var(--color-band) 50%, transparent) 100%
  );
}

.hero-crest {
  position: absolute;
  z-index: 1;
  /* Centre the whole crest (emblem + wordmark) top-to-bottom over the photo.
     Left-to-right it is lined up by the round emblem, whose centre is 48.3%
     across the logo image (the swirl on the right makes the image wider). */
  top: 50%;
  left: 50%;
  transform: translate(-48.3%, -50%);
  height: 82%;
  width: auto;
  max-width: 85%;
  object-fit: contain;
}

@media (min-width: 800px) {
  .hero-crest { height: 80%; }
}

/* The photo already fades into ivory at the bottom, so the text simply
   starts below it (leaving room for the bottom of the crest logo). */
.hero-text {
  text-align: center;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.hero h1 { color: var(--color-navy); }

/* Phones: slightly smaller headline so it fits on two lines */
@media (max-width: 767px) {
  .hero h1 { font-size: 2rem; }
}

/* Tablets and up: the whole headline stays on one line. The text block
   gets wider so it fits, and the paragraph below keeps its narrower width. */
@media (min-width: 768px) {
  .hero-text { max-width: 980px; }
  .hero h1 { white-space: nowrap; }
  .hero .lead { max-width: 712px; margin-inline: auto; }
}

.hero .lead { color: var(--color-muted); }

.hero .button-row { justify-content: center; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}


.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
}

/* ---------- Inner page header ---------- */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(221, 164, 154, 0.3), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(184, 148, 91, 0.25), transparent 40%),
    var(--color-band);
  color: var(--color-navy);
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.page-hero h1 { color: var(--color-navy); }

.page-hero .lead {
  color: var(--color-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }

.section-alt { background: var(--color-surface); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Four cards: 1 column on phones, 2x2 on tablets, 4 across on wide screens */
.card-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

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

/* ---------- Two-column text + image ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split img { border-radius: var(--radius); }

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 0.5rem;
  border-top: 2px solid var(--color-gold);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

/* ---------- Checklists ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-navy);
}

.testimonial figcaption { color: var(--color-muted); }

.sample-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  background: var(--color-band);
  color: var(--color-navy);
  text-align: center;
  padding-block: var(--space);
}

.cta-band h2 { color: var(--color-navy); }

.cta-band p {
  color: var(--color-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ---------- Packages ---------- */
.package { padding: 1.75rem; }

.package .tag {
  color: var(--color-magenta);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.note {
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 2rem;
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 2fr 1fr; }
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.form-grid {
  display: grid;
  gap: 1.1rem 1.25rem;
}

@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.form .optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-magenta);
  box-shadow: 0 0 0 3px rgba(155, 47, 125, 0.18);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form .button { margin-top: 1.5rem; }

/* Hides the spam "honeypot" field from people (bots still see it) */
.hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-details h2 { font-size: 1.5rem; }

.contact-details dl { margin: 0; }

.contact-details dt {
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 1rem;
}

.contact-details dd { margin: 0; }

/* Text read aloud by screen readers but not shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Instagram (and any future social) link: icon + handle side by side */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
}

/* ---------- Thank-you page ---------- */
.thank-you {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.thank-you .button-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-band);
  color: var(--color-navy);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h2 {
  color: var(--color-navy);
  font-size: 1.2rem;
}

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

.site-footer li { margin-bottom: 0.35rem; }

.site-footer a { color: var(--color-navy); }

.site-footer a:hover { color: var(--color-magenta); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
