/* Felma Cakes — shared styles
   Palette: cocoa (text), berry (actions), icing (blush), pistachio (fresh green), butter (accent) */

:root {
  --cocoa: #3b1f2b;
  --berry: #c2305f;
  --berry-deep: #9a2149;
  --icing: #fff1f3;
  --pistachio: #d3e6c3;
  --butter: #fff1bf;
  --paper: #fffaf8;
  --line: rgba(59, 31, 43, 0.18);
  --radius: 18px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cocoa);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: "Caprasimo", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--berry-deep); }

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--berry);
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.btn-ghost { background: transparent; color: var(--berry-deep); }
.btn-ghost:hover { background: var(--berry); border-color: var(--berry); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--berry-deep); }
.btn-light:hover { background: var(--butter); border-color: var(--butter); color: var(--cocoa); }
.btn-small { padding: 0.5rem 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cocoa);
  font-family: "Caprasimo", Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }

.nav-toggle {
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  background: transparent;
  color: var(--cocoa);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  right: -1.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav.open { display: block; }
.nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.btn) {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: var(--cocoa);
  font-weight: 600;
  text-decoration: none;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { border-color: var(--berry); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }
  .nav ul { flex-direction: row; align-items: center; gap: 1.8rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 4.5rem 0; }
.tint-icing { background: var(--icing); }
.tint-pistachio { background: var(--pistachio); }
.tint-berry { background: var(--berry); color: #fff; }
.tint-berry a:not(.btn) { color: #fff; }

/* Scalloped icing edge: the previous section's colour drips into this one */
.scallop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: radial-gradient(circle at 18px 0, var(--prev) 17px, transparent 18px) 0 0 / 36px 22px repeat-x;
}
.scallop { padding-top: 5.5rem; }
.after-icing { --prev: var(--icing); }
.after-paper { --prev: var(--paper); }
.after-pistachio { --prev: var(--pistachio); }
.after-berry { --prev: var(--berry); }

.section-intro { margin-bottom: 2rem; }
.lead { font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 5rem; background: var(--icing); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-art { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }

.arch {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  background: var(--pistachio);
  box-shadow: 0 0 0 8px var(--icing), 0 0 0 10px var(--berry);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.stamp {
  position: absolute;
  right: -0.6rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--butter);
  color: var(--cocoa);
  font-family: "Caprasimo", Georgia, serif;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-9deg);
}

@media (prefers-reduced-motion: no-preference) {
  .arch { animation: rise 0.9s ease-out both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

@media (min-width: 860px) {
  .hero { padding: 5rem 0 6.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Split (text + photo) ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--icing); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Photo that stretches to match the height of the text beside it */
.photo-fill { position: relative; aspect-ratio: 4 / 5; }
.photo-fill img { position: absolute; inset: 0; object-position: 50% 20%; }
@media (min-width: 860px) {
  .split-fill { align-items: stretch; }
  .photo-fill { aspect-ratio: auto; min-height: 420px; }
}

/* ---------- Featured showcase ---------- */
.showcase { display: grid; gap: 1rem; }
.shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--pistachio);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--paper);
}
.shot figcaption a { color: var(--cocoa); font-weight: 700; text-decoration: none; }
.shot figcaption a:hover { color: var(--berry-deep); text-decoration: underline; }

@media (min-width: 760px) {
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .shot { aspect-ratio: 4 / 5; }
}

/* ---------- Reasons ---------- */
.reasons { display: grid; margin: 2rem 0 0; padding: 0; list-style: none; }
.reasons li { padding: 1.2rem 0; border-top: 2px dotted var(--cocoa); }
.reasons h3::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.95rem;
  vertical-align: 0.1em;
}
.reasons p { margin: 0; }
@media (min-width: 760px) {
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Call to action band ---------- */
.cta { display: grid; gap: 1.5rem; align-items: center; }
.cta h2 { margin: 0; }
.cta p { margin: 0.5rem 0 0; }
@media (min-width: 760px) {
  .cta { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* ---------- Page heading (inner pages) ---------- */
.page-head { padding: 3.5rem 0 4.5rem; background: var(--icing); }
.page-head p { margin: 0; font-size: 1.2rem; }

/* ---------- Cakes page ---------- */
.cake-row {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 2px dotted var(--cocoa);
  scroll-margin-top: 5rem;
}
.cake-row:first-child { border-top: 0; padding-top: 0; }
.cake-row p { margin-bottom: 0.8rem; }
.cake-row .photo { aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .cake-row.has-photo { grid-template-columns: 1fr 300px; gap: 3rem; align-items: center; }
}

.checklist { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.checklist li { margin-bottom: 0.3rem; }

.steps { counter-reset: step; margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-family: "Caprasimo", Georgia, serif;
  font-size: 1.2rem;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; margin-bottom: 0.3rem; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--cocoa);
  font: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--berry); outline: none; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.95rem; }

.details { margin: 0; padding: 0; list-style: none; }
.details li { padding: 0.9rem 0; border-top: 2px dotted var(--cocoa); }
.details li:first-child { border-top: 0; padding-top: 0; }
.details strong { display: block; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 2rem; background: var(--cocoa); color: #f7e7ec; }
.site-footer a { color: #ffd9e3; }
.site-footer h2 { margin-bottom: 0.4rem; font-size: 1.5rem; }
.site-footer h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.35rem; }
.copyright { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

[hidden] { display: none !important; }

.pay-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 2px dotted var(--cocoa);
  border-radius: var(--radius);
  background: var(--butter);
}
.pay-box p { max-width: 46ch; }

.map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  background: var(--icing);
}
@media (min-width: 760px) {
  .map-frame { height: 440px; }
}

/* ---------- Gallery ---------- */
.gallery { columns: 1; column-gap: 1rem; margin-top: 1.5rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { width: 100%; height: auto; border-radius: var(--radius); background: var(--pistachio); }
.gallery figcaption { padding: 0.5rem 0.2rem 0; font-size: 0.95rem; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }

.photo-note { margin: 0.4rem 0 0; font-size: 0.9rem; font-style: italic; }

.photo.portrait { aspect-ratio: 3 / 4; }


.flyer { display: block; width: 100%; max-width: 420px; margin-inline: auto; }
.flyer img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(59, 31, 43, 0.25);
}
