/* Ginger Creative — one-page site */

:root {
  --coral: #CF6F7A;
  --coral-dark: #b55a64;
  --orange: #F5832A;
  --teal: #2AADAD;
  --teal-dark: #1E8A8A;
  --mustard: #E6B325;
  --bg: #FFFDF9;
  --card: #FFFFFF;
  --line: #EDE6DC;
  --text: #2D2D2D;
  --text-light: #5a5a5a;

  --font-display: 'Pacifico', cursive;
  --font-body: 'Poppins', system-ui, sans-serif;

  --wrap: 1040px;
  --gutter: clamp(1rem, 4vw, 2rem);
  /* hand-drawn wobble, same as the CMS guides */
  --sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--coral-dark); }
a:hover { color: var(--orange); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--coral); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 600; }

.top, main, .foot {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Banner ── */
.banner {
  background: var(--mustard);
  color: var(--text);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem var(--gutter);
}
.banner a {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.banner a:hover { color: var(--coral-dark); }

/* ── Header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.top__logo { width: clamp(160px, 24vw, 220px); }
.top__cta {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--coral);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.top__cta:hover { color: #fff; background: var(--coral-dark); }

/* ── Intro ── */
.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 6vw, 4.5rem);
}
.intro__photo { width: clamp(120px, 18vw, 190px); }
.intro__lede {
  margin-top: 0.75rem;
  max-width: 38em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-light);
}

/* ── Work ── */
.work { padding-block: 1rem 3rem; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 960px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  /* An odd card out sits centred under the others rather than left-aligned. */
  .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(1.25rem, 3vw, 2rem) / 2);
  }
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: var(--sketch);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.card:hover {
  color: inherit;
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 6px 8px 0 var(--mustard);
}
.card:nth-child(2):hover { transform: translateY(-4px) rotate(0.4deg); box-shadow: 6px 8px 0 var(--teal); }
.card:nth-child(3):hover { box-shadow: 6px 8px 0 var(--coral); }
.card img { width: 100%; aspect-ratio: 960 / 513; object-fit: cover; border-bottom: 2px solid var(--text); }
.card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card__where { font-size: 0.9rem; color: var(--teal-dark); font-weight: 500; }
.card__body p:not(.card__where) { color: var(--text-light); }
.card__link { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--coral-dark); }

/* ── Admin panel ── */
.cms { padding-block: 2rem 3rem; }
.cms h2 { margin-bottom: 0.75rem; }
.cms__lede { max-width: 40em; font-size: clamp(1.05rem, 1.5vw, 1.15rem); color: var(--text-light); }
.cms__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 2.25rem;
}
.cms__list { list-style: none; display: grid; gap: 1.25rem; }
.cms__list li { padding-left: 1.4rem; position: relative; }
.cms__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--coral);
}
.cms__list li:nth-child(5n+2)::before { background: var(--teal); }
.cms__list li:nth-child(5n+3)::before { background: var(--mustard); }
.cms__list li:nth-child(5n+4)::before { background: var(--orange); }
.cms__list h3 { font-size: 1.05rem; }
.cms__list p { color: var(--text-light); font-size: 0.95rem; }

.cms__phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 2vw, 1.25rem);
  align-items: start;
}
.cms__phones img {
  width: 100%;
  border: 2px solid var(--text);
  border-radius: 18px;
  background: #fff;
  box-shadow: 5px 6px 0 var(--mustard);
}
.cms__phones img:nth-child(1) { transform: rotate(-2deg); }
.cms__phones img:nth-child(2) { transform: translateY(1.5rem); box-shadow: 5px 6px 0 var(--teal); }
.cms__phones img:nth-child(3) { transform: rotate(2deg); box-shadow: 5px 6px 0 var(--coral); }
.cms__phones figcaption {
  grid-column: 1 / -1;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cms__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--sketch);
}
.cms__cta p { max-width: 34em; }

@media (max-width: 860px) {
  .cms__layout { grid-template-columns: 1fr; }
  .cms__phones { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ── Contact ── */
.contact {
  margin-block: 2rem 3rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--teal);
  color: #fff;
  border-radius: var(--sketch);
}
.contact h2 { margin-bottom: 0.5rem; }
.contact > p { opacity: 0.9; }
.contact__list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.contact__list li { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: baseline; }
.contact__list span {
  min-width: 6.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.contact__list a {
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact__list a:hover { text-decoration-color: var(--mustard); }

/* ── Footer ── */
.foot { padding-block: 1rem 2.5rem; font-size: 0.85rem; color: var(--text-light); }

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

@media (max-width: 720px) {
  .intro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .work__grid { grid-template-columns: 1fr; }
  .card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .contact__list { gap: 1rem; }
  .contact__list li { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card:hover, .card:nth-child(2):hover, .card:nth-child(3):hover { transition: none; transform: none; }
}
