/* Prodevy website — styles recreating the original WordPress "Go / Playful" theme look */

:root {
  --color-primary: hsl(196, 95%, 47%);
  --color-secondary: hsl(211, 16%, 35%);
  --color-button: #0071a1;
  --color-button-hover: #005a80;
  --color-cta-band: #4c5a69;
  --color-text: #5a5d6c;
  --color-heading: #323648;
  --color-chrome-text: hsl(0, 0%, 31%);
  --color-header-bg: hsl(0, 0%, 98%);
  --color-footer-bg: hsl(0, 0%, 96%);
  --color-border: #c8c8c8;
  --color-error: #c0392b;
  --color-success: #1e7e34;

  --font-body: "Quicksand", sans-serif;
  --font-heading: "Poppins", sans-serif;

  --max-width: 42rem;
  --max-width-wide: 84rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1.25rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.5rem; }
h4,
.h4-style { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p {
  margin: 0 0 1.25rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--color-heading);
  z-index: 1000;
}

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

.site-header {
  background: var(--color-header-bg);
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--color-chrome-text);
}

.site-brand:hover {
  color: var(--color-chrome-text);
}

.site-brand img {
  width: 60px;
  height: 60px;
}

.site-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0;
  color: var(--color-chrome-text);
  margin: 0;
  line-height: 1;
}

.primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--color-chrome-text);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-chrome-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

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

@media (max-width: 781px) {
  .site-brand img {
    width: 48px;
    height: 48px;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .site-header.menu-is-open .site-nav {
    display: block;
  }

  .site-header.menu-is-open .icon-open {
    display: none;
  }

  .site-header.menu-is-open .icon-close {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0.75rem;
  }

  .primary-menu a {
    font-size: 1.3rem;
  }
}

/* ---------- Home: collage gallery ---------- */

.collage {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.2em;
  margin: 0;
  padding: 0;
  list-style: none;
  height: clamp(320px, 52vw, 820px);
}

.collage li {
  margin: 0;
  overflow: hidden;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage .item-1 { grid-column: 1; grid-row: 1 / span 2; }
.collage .item-2 { grid-column: 2 / span 2; grid-row: 1; }
.collage .item-3 { grid-column: 2; grid-row: 2; }
.collage .item-4 { grid-column: 3; grid-row: 2; }

@media (max-width: 599px) {
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .collage li {
    aspect-ratio: 3 / 2;
  }

  .collage .item-1 { grid-column: 1 / span 2; grid-row: auto; }
  .collage .item-2 { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 2 / 1; }
  .collage .item-3,
  .collage .item-4 { grid-column: auto; grid-row: auto; }
}

/* ---------- Home: intro + services ---------- */

.intro {
  display: flex;
  gap: 5rem;
  max-width: var(--max-width-wide);
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  padding: 0 var(--gutter);
  font-size: 0.88rem;
}

.intro p {
  font-size: inherit;
}

.intro__main {
  flex: 0 1 70%;
}

.intro__aside {
  flex: 0 1 25%;
}

.text-justify {
  text-align: justify;
}

.checklist,
.feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.25rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1em;
  height: 1em;
  background-color: var(--color-secondary);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.7 4.9a.9.9 0 0 0-1.3 0L7 8.3 5.6 6.9a.9.9 0 1 0-1.3 1.3l2 2a.9.9 0 0 0 1.3 0l4-4a.9.9 0 0 0 0-1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.7 4.9a.9.9 0 0 0-1.3 0L7 8.3 5.6 6.9a.9.9 0 1 0-1.3 1.3l2 2a.9.9 0 0 0 1.3 0l4-4a.9.9 0 0 0 0-1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
}

.feature-list img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.intro__aside h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.intro__aside hr {
  border: 0;
  border-top: 1px solid #999;
  margin: 0 0 1rem;
  max-width: 200px;
}

.service {
  margin-bottom: 1.5rem;
}

.service img {
  width: 60px;
  height: 60px;
  margin: 0.5rem 0 0.75rem 0.5rem;
}

.service p {
  text-align: justify;
}

@media (max-width: 781px) {
  .intro {
    flex-direction: column;
    gap: 1rem;
  }

  .text-justify,
  .service p {
    text-align: left;
  }
}

/* Gentle fade-in, replacing the AOS library */
.reveal {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Home: our apps ---------- */

.apps {
  max-width: var(--max-width-wide);
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  padding: 0 var(--gutter);
}

.apps > h2 {
  margin-top: 0;
}

.app-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.app-card__shot,
.app-card__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-card__body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-card__text {
  flex: 1;
}

.app-card__text h3 {
  margin: 0 0 0.25rem;
}

.app-card__text p {
  margin: 0;
  font-size: 0.88rem;
}

.app-card__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

/* Apple's official badge (from App Store Marketing Tools): never redrawn or recolored. */
.app-card__badge {
  display: inline-block;
  line-height: 0;
}

.app-card__badge img {
  height: 48px;
  width: auto;
}

@media (max-width: 781px) {
  .app-card__body {
    flex-wrap: wrap;
  }

  .app-card__links {
    width: 100%;
  }
}

/* Desktop: banner left, details right, so the card stays proportionate to the page */
@media (min-width: 1000px) {
  .app-card {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .app-card__shot img {
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }

  .app-card__body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-content: center;
    gap: 1.25rem;
    padding: 2rem;
  }

  .app-card__text p {
    font-size: 0.95rem;
  }

  .app-card__links {
    grid-column: 1 / -1;
  }
}

/* ---------- Call to action band ---------- */

.cta-band {
  background: var(--color-cta-band);
  color: #fff;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.cta-band h2 {
  color: #fff;
  margin: 0;
  text-align: right;
}

@media (max-width: 599px) {
  .cta-band__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-band h2 {
    text-align: center;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--color-button);
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--color-button-hover);
  color: #fff;
}

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

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-chrome-text);
  font-size: 0.8rem;
}

.site-footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a {
  text-decoration: none;
  padding-left: 0.75rem;
  border-left: 1px solid #ccc;
}

@media (max-width: 599px) {
  .site-footer__inner {
    justify-content: center;
  }
}

/* ---------- Generic content pages (policies, contact) ---------- */

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.page-content > h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.page-content ul {
  padding-left: 1.5rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 42rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field > label,
.form-field > .label {
  display: block;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.required {
  color: var(--color-error);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 25rem;
}

.name-row label {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--color-heading);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 0.45rem 0.6rem;
}

.contact-form input[type="email"] {
  max-width: 25rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

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

.form-submit {
  background: #eee;
  color: var(--color-heading);
  border: 1px solid #ddd;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.form-submit:hover:not(:disabled) {
  background: #ddd;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin-top: 1.25rem;
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: var(--color-error);
}

.form-status[data-state="success"] {
  color: var(--color-success);
}

/* Invisible Turnstile renders nothing; in "managed" mode the box appears here only when needed */
.cf-turnstile {
  margin: 0 0 1.25rem;
}

@media (max-width: 599px) {
  .name-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

fieldset.form-field {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

fieldset.form-field > legend {
  padding: 0;
}
