/* Deborah Meyler — matching Wix site styling */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,700;1,300&family=EB+Garamond:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #767676;
  --accent: #384ad3;
  --accent-hover: #ed5829;
  --accent-active: #550e9b;
  --border: #767676;
  --surface: #ffffff;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  /* Barlow Light stands in for the Wix site's DIN Next W01 Light (commercial, not licensable here) */
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4em;
  color: var(--text);
  background-color: var(--bg);
}

/* ---- Layout ---- */

.site-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */

.site-header {
  padding: 23px 0;
  border-bottom: none;
  margin-bottom: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.64);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 5px;
  background: #c7c7c7;
}

.site-title {
  font-family: 'EB Garamond', 'eb garamond', serif;
  font-size: 41px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: normal;
  margin: 0;
  color: #15291b;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-subtitle {
  font-family: 'EB Garamond', 'eb garamond', serif;
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  line-height: normal;
  color: var(--text);
}

/* ---- Navigation ---- */

.site-nav {
  margin-top: 20px;
}

/* Wix original: 673px left-aligned block, fixed item widths, text at the left of each */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  width: 673px;
  max-width: 100%;
}

.site-nav li {
  padding: 0;
  text-align: left;
}

.site-nav li:nth-child(1) { width: 136px; }
.site-nav li:nth-child(2) { width: 219px; }
.site-nav li:nth-child(3) { width: 171px; }
.site-nav li:nth-child(4) { width: 147px; }

.site-nav a {
  font-weight: 300;
  font-size: 22px;
  padding: 0 5px;
  line-height: 52px;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.4s ease 0s;
}

.site-nav a:hover {
  color: var(--accent-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-active);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ---- Main content ---- */

main {
  padding: 20px 0 40px;
}

main p {
  margin-bottom: 1em;
  font-size: 20px;
  line-height: normal;
}

main p:last-child {
  margin-bottom: 0;
}

/* Writing page uses smaller, airier text than the rest of the site (Wix original: 18px/1.8em) */
.page-writing p {
  font-size: 18px;
  line-height: 1.8em;
}

/* ---- Headings ---- */

main h1 {
  font-weight: 300;
  font-size: 50px;
  line-height: 1.4em;
  margin-bottom: 20px;
  color: var(--muted);
}

h2 {
  font-weight: 300;
  font-size: 50px;
  line-height: 1.4em;
  margin-bottom: 20px;
  color: var(--muted);
}

/* ---- Links ---- */

a {
  color: var(--accent);
  text-decoration: none;
}

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

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---- Hero image ---- */

.hero-image {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-quote {
  position: absolute;
  top: 25px;
  left: 25px;
  max-width: 55%;
  font-size: 20px;
  line-height: 1.4;
  color: #000;
}

.hero-quote p {
  margin-bottom: 0;
}

/* ---- Two-column layout ---- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 302px;
  gap: 0 35px;
}

.two-col-aside img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Page images ---- */

.page-image {
  margin: 0 0 1rem 0;
}

.page-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-image.float-right {
  float: right;
  margin: 0 0 1rem 35px;
}

.page-image.float-right img {
  height: auto;
}

/* ---- Professional badges ---- */

.professional-badges {
  margin: 1.5rem 0;
  clear: both;
}

.professional-badges img {
  max-width: 297px;
  height: auto;
  display: block;
}

/* ---- Contact section ---- */

.contact-section {
  margin-top: 29px;
  padding: 0;
  border: 1px solid #c7c7c7;
  background: var(--surface);
}

.contact-inner {
  padding: 0 62px 30px;
}

.contact-section h2 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 62px;
}

.contact-intro {
  font-size: 22px;
  line-height: normal;
  padding: 0 64px;
  margin-bottom: 37px;
}

/* ---- Form ---- */

.contact-form-wrapper {
  padding: 0 125px 27px;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
}

.form-col-left {
  flex: 0 0 280px;
}

.form-col-right {
  flex: 0 0 392px;
  margin-left: 16px;
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 15px;
  line-height: 1.4em;
  color: var(--muted);
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.4em;
  padding: 3px 3px 3px 12px;
  border: 1px solid var(--muted);
  background: var(--surface);
  color: var(--text);
  height: 32px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
  border-width: 1px;
}

.form-field textarea {
  min-height: 155px;
  resize: none;
  height: auto;
  padding-top: 3px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.form-submit {
  margin-top: 8px;
}

.form-submit button {
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4em;
  font-weight: 300;
  padding: 0;
  width: 392px;
  height: 34px;
  background: #c7c7c7;
  color: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background-color 0.4s ease 0s;
}

.form-submit button:hover {
  background: #e8e6e6;
}

.form-submit button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---- Contact details ---- */

.contact-details {
  padding: 0 125px;
  font-size: 22px;
  margin-bottom: 30px;
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */

.site-footer {
  padding: 53px 0 19px;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.social-links img {
  width: 25px;
  height: 25px;
  display: block;
}

/* ---- Thank you page ---- */

.thank-you-message {
  margin: 3rem 0;
}

/* ---- Clearfix ---- */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ---- Mobile nav ---- */

.nav-toggle,
.nav-close {
  display: none;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .site-title {
    font-size: 28px;
    padding-right: 50px;
  }

  .site-subtitle {
    font-size: 18px;
    padding-right: 50px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    top: 23px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -70%;
    width: 65%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    margin-top: 0;
    padding: 80px 30px 30px;
    /* visibility keeps the closed menu out of the keyboard tab order; the 0.3s
       delay hides it only after the slide-out finishes */
    visibility: hidden;
    transition: right 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: none;
  }

  .site-nav.open {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease, visibility 0s;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    margin: 0;
  }

  .site-nav li,
  .site-nav li:nth-child(1),
  .site-nav li:nth-child(2),
  .site-nav li:nth-child(3),
  .site-nav li:nth-child(4) {
    width: auto;
    padding: 0;
    text-align: right;
  }

  .site-nav a {
    font-size: 22px;
    font-weight: normal;
    line-height: 2.8;
    padding: 0;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: var(--text);
    line-height: 1;
  }

  .nav-close:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
  }

  .hero-image {
    margin-bottom: 1em;
  }

  .hero-quote {
    position: static;
    max-width: 100%;
    padding: 0;
    margin-top: 1em;
    margin-bottom: 0;
  }

  main p,
  .page-writing p {
    font-size: 16px;
  }

  h2 {
    font-size: 32px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col-aside {
    margin-top: 1em;
  }

  .page-image.float-right {
    float: none;
    margin: 1.5rem 0;
  }

  .page-image.float-right img {
    width: 100%;
    max-width: 302px;
  }

  .form-col-left,
  .form-col-right {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .form-submit button {
    width: 100%;
  }

  .contact-section h2,
  .contact-intro,
  .contact-form-wrapper,
  .contact-details {
    padding-left: 20px;
    padding-right: 20px;
  }
}
