/* witagency.com - single stylesheet.
   Design ported from the WordPress "Seedlet" theme (Automattic):
   green accent #3c8067 (hover #336d58), ink #333, white background,
   Playfair Display headings, Fira Sans body, 18px root, centered header,
   620px content column, dashed green underline under the site title. */

/* ---------- self-hosted webfonts (same set the live site loads) ---------- */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fira-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fira-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fira-sans-italic-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700; /* variable font file covers the range */
  font-display: swap;
  src: url('/fonts/playfair-display-400-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-italic-400.woff2') format('woff2');
}

/* ---------- tokens (values lifted from the Seedlet theme) ---------- */

:root {
  --green: #3c8067;
  --green-dark: #336d58;
  --ink: #333333;
  --black: #000000;
  --border: #efefef;
  --bg: #ffffff;
  --font-heading: 'Playfair Display', Georgia, Times, serif;
  --font-body: 'Fira Sans', Helvetica, Arial, sans-serif;
  --content-w: 620px;
  --space: 30px;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

::selection { background: #ebf2f0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  line-height: 1.3;
  color: var(--black);
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }

img { max-width: 100%; height: auto; }

a {
  border-bottom: 1px solid var(--green);
  color: var(--black);
  text-decoration: none;
  transition: border-color 0.1s ease-out;
}

a:hover, a:focus { border-bottom-color: transparent; }

.site *:focus {
  outline-width: 1px;
  outline-style: dotted;
  outline-color: currentColor;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  padding: 10px 20px;
  z-index: 100;
}

.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  padding: calc(3 * var(--space)) 25px calc(3 * var(--space));
  text-align: center;
}

.site-logo { margin: calc(var(--space) / 2) 25px; }

.site-logo img {
  max-width: 120px;
  max-height: 120px;
  border: 0;
}

.site-logo a { border-bottom: none; }

.site-title {
  margin: 0 0 calc(var(--space) / 2);
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}

/* Dashed green underline with white "gaps" around descenders, as in Seedlet */
.site-title a {
  border-bottom: none;
  color: currentColor;
  background-image: linear-gradient(to right, var(--green) 100%, transparent 100%);
  background-position: 0 1.22em;
  background-repeat: repeat-x;
  background-size: 8px 2px;
  text-shadow:
    1px 0 var(--bg), -1px 0 var(--bg),
    2px 0 var(--bg), -2px 0 var(--bg),
    3px 0 var(--bg), -3px 0 var(--bg),
    4px 0 var(--bg), -4px 0 var(--bg),
    5px 0 var(--bg), -5px 0 var(--bg);
  transition: background-size 0.1s ease-out;
}

.site-title a:hover, .site-title a:focus {
  color: var(--green);
  background-size: 8px 0;
}

.site-description {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- navigation ---------- */

.primary-navigation { margin-top: calc(1.5 * var(--space)); }

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 16px;
  color: var(--black);
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item a {
  color: var(--green);
  border-bottom-color: var(--green);
}

.menu-toggle { display: none; }

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

.site-content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 25px;
}

.site-main > article {
  margin-top: calc(3 * var(--space));
  margin-bottom: calc(3 * var(--space));
}

.entry-header { margin-bottom: calc(2 * var(--space)); }

.entry-title { margin: 0; }

.entry-content h2 { margin: calc(1.5 * var(--space)) 0 20px; }
.entry-content h3 { margin: var(--space) 0 16px; }
.entry-content h4 { margin: var(--space) 0 12px; }

.entry-content p { margin: 0 0 20px; }

.entry-content ul {
  margin: 0 0 20px;
  padding-left: calc(2 * var(--space));
}

.entry-content li { margin-bottom: 10px; }

blockquote {
  margin: 0 0 20px;
  padding-left: 25px;
  border-left: 2px solid var(--green);
  font-style: italic;
}

/* ---------- contact form ---------- */

.contact-form { margin-top: var(--space); }

.contact-form p { margin: 0 0 15px; }

.contact-form label {
  display: block;
  margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--border);
  outline: 1px dotted currentColor;
}

.contact-form textarea { resize: vertical; }

.contact-form .submit-btn {
  padding: 23px 25px;
  border: 0;
  border-radius: 4px;
  background-color: var(--green);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.contact-form .submit-btn:hover,
.contact-form .submit-btn:focus { background-color: var(--green-dark); }

.contact-form .submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-status {
  margin-top: 20px;
  min-height: 30px;
  font-weight: 500;
}

.form-status.ok { color: var(--green-dark); }
.form-status.error { color: #b32d2e; }

.turnstile-slot { margin: 20px 0; min-height: 65px; }

.form-footnote {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: #444444;
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--space) 25px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--ink);
}

/* ---------- 404 ---------- */

.error-404 { text-align: center; }

.error-404 .entry-title { font-size: 84px; }

/* ---------- mobile ---------- */

@media only screen and (max-width: 481px) {
  .site-header { padding-top: calc(4 * var(--space)); }

  .site-logo img { max-width: 96px; max-height: 96px; }

  /* Collapsed menu behind a Menu button, as on the live site */
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
  }

  .primary-navigation {
    position: fixed;
    inset: 0;
    display: none;
    margin: 0;
    padding: calc(4 * var(--space)) 25px;
    background: var(--bg);
    z-index: 10;
  }

  body.menu-open .primary-navigation { display: block; }
  body.menu-open { overflow: hidden; }

  .primary-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .primary-navigation a {
    font-family: var(--font-heading);
    font-size: 32px;
  }
}
