/* ============================================================
   Composition Workshop – Writing to Picture
   Static rebuild of mikeidge.wixsite.com/workshop
   (Wix-free: no platform scripts, self-hosted fonts & images)
   ============================================================ */

/* ---------- Fonts (self-hosted, same files the Wix site uses) ---------- */
@font-face {
  font-family: 'brandon-grot-w01-light';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/brandon-grot-w05-light.woff2') format('woff2');
  unicode-range: U+0100-0130, U+0132-0151, U+0154-015F, U+0162-0177, U+0179-017C,
    U+01FA-01FF, U+0218-021B, U+0237, U+02C7, U+02C9, U+02D8-02DB, U+02DD,
    U+037E, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE, U+0400-045F,
    U+0490-0491, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2044, U+2070, U+2074-2079,
    U+2080-2089, U+20B4, U+20BD, U+2113, U+2117, U+2126, U+212E, U+2153-2154,
    U+215B-215E, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A,
    U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+F8FF, U+FB01-FB02;
  font-display: swap;
}
@font-face {
  font-family: 'brandon-grot-w01-light';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/brandon-grot-w01-light.woff2') format('woff2');
  unicode-range: U+0002, U+0009-000A, U+000D, U+0020-007E, U+00A0-00FF, U+0131,
    U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+0192, U+02C6, U+02DC,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+20AC, U+2122;
  font-display: swap;
}
@font-face {
  font-family: 'open sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-400.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'open sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-700.woff2') format('woff2');
  font-display: swap;
}

/* ---------- Theme tokens (exact palette from the Wix site) ---------- */
:root {
  --c-11: #ffffff;   /* white            */
  --c-12: #d8d8d8;
  --c-13: #9a9fa5;
  --c-14: #646a6e;   /* grey band (testimonials) – darkened from #6d7377
                        so white text on it passes WCAG AA (5.5:1) */
  --c-15: #393f44;   /* dark grey        */
  --c-18: #393f44;
  --c-19: #252f35;
  --c-20: #000000;   /* black            */
  --c-25: #2a7d85;   /* teal (menu hover) – darkened from #70b2b9 so it
                        passes WCAG AA on white (4.8:1) */
  --c-27: #f6f6f6;   /* light grey       */
  --c-32: #e5f0f1;   /* pale teal (section bg) */

  --font-brandon: 'brandon-grot-w01-light', 'Brandon Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-helvetica: 'helvetica-w01-roman', Helvetica, Arial, sans-serif;
  --font-open: 'open sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 980px;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-brandon);
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-15);
  background: var(--c-11);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header (matches the original: white band, centred logo,
   14px "open sans" menu, teal hover / selected)
   ============================================================ */
.site-header {
  background: var(--c-11);
  width: 100%;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo {
  text-align: center;
  font-size: 24px;
  line-height: 1.46em;
  color: var(--c-15);
  text-decoration: none;
  display: block;
  margin-bottom: 30px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 0 0 2px;
}

.main-nav a {
  font-family: var(--font-open);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43em;
  color: var(--c-15);
  text-decoration: none;
  padding: 2px 10px;
  transition: color 0.4s ease 0s;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--c-25); }

.main-nav a.active { color: var(--c-25); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-15);
  border-radius: 4px;
  color: var(--c-15);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-brandon);
  font-size: 16px;
  line-height: 45px;
  height: 45px;
  padding: 0 24px;
  border-radius: 100px;
  transition: background-color 0.4s ease 0s, color 0.4s ease 0s, border-color 0.4s ease 0s;
}

.btn-light {
  background: var(--c-11);
  color: var(--c-15);
  border: 0;
}
.btn-light:hover { background: rgba(255, 255, 255, 0.6); }

.btn-outline {
  background: transparent;
  color: var(--c-18);
  border: 1px solid var(--c-18);
}
.btn-outline:hover { background: var(--c-18); color: var(--c-32); border-color: var(--c-18); }

.btn-dark {
  width: 100%;
  height: 45px;
  border-radius: 0;
  border: 0;
  background: var(--c-15);
  color: var(--c-11);
  cursor: pointer;
}
.btn-dark:hover { background: var(--c-18); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 960px;
  display: flex;
  align-items: flex-start;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Gentle dark scrim so the white hero text keeps contrast over any part
   of the photo (keeps the image visible while lifting readability). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px 100px 60px 60px;
  text-align: right;
}

.hero-eyebrow {
  font-size: 32px;
  line-height: 1.25em;
  color: var(--c-11);
  font-weight: bold;
  text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 72px;
  line-height: 1.18em;
  color: var(--c-11);
  font-weight: bold;
  text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px;
  margin-bottom: 22px;
}

.hero-text {
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-11);
  text-shadow: rgba(255, 255, 255, 0.6) 1px 1px 1px, rgba(0, 0, 0, 0.6) -1px -1px 1px;
  margin-bottom: 0;
}

/* the original renders an empty line between the two hero paragraphs */
.hero-text + .hero-text { margin-top: 30px; }
.hero-text:last-of-type { margin-bottom: 51px; }

.hero-inner .btn-light { margin-top: 0; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 60px 0; }
.section-teal { background: var(--c-32); }
.section-gray { background: var(--c-14); }
.section-white { background: var(--c-11); }

/* vertical rhythm measured from the live site */
#about        { padding: 82px 0 85px; }
/* (the 174px bottom padding the Wix site had left a big empty gap before
   Testimonials – trimmed to a normal 60px) */
#logistics    { padding: 56px 0 60px; }
#testimonials { padding: 38px 0 19px; }
#contact      { padding: 23px 0 17px; }

.section-title {
  font-size: 40px;
  line-height: 1.25em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-15);
  margin-bottom: 17px;
}

.prose p {
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-15);
  margin-bottom: 1em;
}
.prose p:last-child { margin-bottom: 0; }

.prose a {
  text-decoration: underline;
}

/* ---------- About ---------- */
#about .prose { margin-bottom: 41px; }
#about .container { text-align: left; }

/* ---------- Services ---------- */
.services { padding: 60px 0 40px; }

.service-row {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.service-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Photos are shown at their natural aspect ratio, so nothing can ever be
   cropped or clipped (this replaced the old background-image crop, which
   could shift the photo and land the caption over people's faces). */
.service-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* The caption lives in its own solid panel below the photo, so it can
   never overlap the picture. */
.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--c-32);
  padding: 28px 24px;
}

.service-title {
  font-size: 24px;
  line-height: 1.3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-15);
  margin-bottom: 8px;
}

.service-sub {
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-15);
}

/* ---------- Logistics ---------- */
#logistics .prose { max-width: 780px; }

/* ---------- Testimonials ----------
   The band is a mid grey, so all text in it is white – dark text on the
   grey measured only ~2.2–4.4:1 (failing WCAG AA). White on the (slightly
   darkened) grey band passes at ~5.5:1. */
#testimonials .section-title { margin-left: 12px; color: var(--c-11); }

.testimonial-grid {
  display: flex;
  justify-content: flex-start;
  gap: 117px;
  padding-left: 35px;
  margin-top: 40px;
  margin-bottom: 44px;
}

.testimonial {
  width: 297px;
  flex: none;
}

.quote {
  font-size: 17px;
  line-height: 1.46em;
  text-align: justify;
  color: var(--c-11);
  margin-bottom: 28px;
}

.testimonial-portrait {
  width: 297px;
  height: 234px;
  object-fit: cover;
  margin-bottom: 21px;
}

.attrib {
  font-size: 21px;
  /* 1em was too tight – the name lines wrap to several lines in a 297px
     column, so give them proper leading */
  line-height: 1.3em;
  color: var(--c-11);
  font-weight: bold;
  margin-bottom: 4px;
}
.attrib .role { font-size: 18px; font-weight: 400; color: var(--c-11); }

.credit {
  font-size: 18px;
  /* 1em made the wrapped lines of the "Winner of the IFMCA…" text collide;
     1.45em gives them comfortable breathing room */
  line-height: 1.45em;
  color: var(--c-11);
  margin-top: 8px;
  margin-bottom: 21px;
}

.feedback-heading {
  font-size: 31px;
  line-height: 1.25em;
  color: var(--c-11);
  font-weight: 400;
  margin-bottom: 18px;
}

.student-quotes p {
  font-size: 22px;
  line-height: 1.46em;
  color: var(--c-11);
  margin-bottom: 1em;
}
.student-quotes p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.contact-info { width: 460px; flex: none; }

.contact-info p {
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-15);
  margin-bottom: 10px;
}
.contact-info p:first-of-type { margin-bottom: 5px; }

.contact-form { width: 460px; flex: none; }

.contact-form .form-row {
  display: flex;
  gap: 17px;
}

.contact-form .form-row input { width: 50%; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-brandon);
  font-size: 16px;
  color: var(--c-15);
  background: var(--c-11);
  border: 1px solid var(--c-15);
  border-radius: 0;
  padding: 0 12px;
  height: 36px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.5s ease 0s, color 0.5s ease 0s, opacity 0.5s ease 0s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--c-15); }

.contact-form textarea {
  height: 150px;
  padding-top: 0.75em;
  resize: vertical;
}

/* Success/error messages – darkened from the Wix colours (#bada55 / #ff4040)
   which only had ~1.4:1 / ~3:1 contrast on the teal band. */
.form-success {
  display: none;
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 700;
  color: #1b5e20;
  text-align: center;
  margin-top: 12px;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 700;
  color: #b71c1c;
  text-align: center;
  margin-top: 12px;
}
.form-error.show { display: block; }

/* Honeypot – hidden from visitors, visible to naive spam bots */
.contact-form .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   Sub pages (Examples / FAQs)
   ============================================================ */
.page-section { padding: 21px 0 40px; }

.examples-intro {
  font-size: 24px;
  line-height: 1.46em;
  color: var(--c-15);
  max-width: 924px;
  margin-bottom: 34px;
}

.video-wrap {
  max-width: 571px;
  margin: 0 auto 34px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.joseph-block {
  display: flex;
  gap: 21px;
  align-items: flex-start;
  margin-top: 10px;
}

.joseph-photo {
  width: 268px;
  height: 227px;
  object-fit: cover;
  flex: none;
}

.joseph-text { max-width: 625px; }

.joseph-text h1 {
  font-size: 25px;
  line-height: 1.25em;
  font-weight: 400;
  color: var(--c-15);
  margin: 4px 0 15px;
}

.joseph-text p {
  font-family: var(--font-open);
  font-size: 14px;
  line-height: 1.43em;
  color: var(--c-15);
}

.faq-list { max-width: 974px; }

.faq-list .q {
  font-weight: bold;
  margin: 1.6em 0 0.5em;
}
.faq-list .q:first-child { margin-top: 0; }

.faq-list p {
  font-size: 20px;
  line-height: 1.5em;
  color: var(--c-15);
  margin-bottom: 0.5em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 120px 40px 60px; }
  .hero-title { font-size: 52px; }
  .hero-eyebrow { font-size: 26px; }

  .service-row { flex-direction: column; }

  .testimonial-grid { gap: 40px; flex-wrap: wrap; padding-left: 0; }

  .contact-grid { flex-direction: column; }
  .contact-info,
  .contact-form { width: 100%; }

  #logistics { padding-bottom: 60px; }
  #testimonials { padding-bottom: 40px; }

  .joseph-block { flex-direction: column; }
}

@media (max-width: 760px) {
  .hero-inner { padding: 80px 20px 50px; }
  .hero-title { font-size: 38px; }
  .hero-eyebrow { font-size: 22px; }
  .hero-text { font-size: 18px; }

  #about        { padding: 50px 0; }
  #logistics    { padding: 40px 0 50px; }
  #testimonials { padding: 30px 0 30px; }
  #contact      { padding: 30px 0; }
  .section-title { font-size: 32px; }

  .service-row { gap: 24px; }

  /* mobile nav */
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
  }
  .main-nav.open { display: flex; }
}
