/* VeranoPlay — site styles
   A simple company site: header, dark hero, services, footer.
   Palette: baize green, white, sun gold for actions. */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/league-spartan-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/league-spartan-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --green: #0f1f10;
  --green-2: #162a17;
  --green-3: #1f3b20;
  --leaf: #2f6b35;
  --paper: #ffffff;
  --paper-2: #f4f6f1;
  --line: #e1e6dc;
  --ink: #0f1f10;
  --ink-2: #364638;
  --on-dark: #ffffff;
  --on-dark-2: #c6cfc4;
  --sun: #ffc845;
  --sun-strong: #ffd56e;
  --error: #a1321c;

  --font-display: "League Spartan", "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --title-sm: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --title-md: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --title-lg: clamp(2.75rem, 1.6rem + 4.4vw, 5rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-ui: 200ms;
  --t-enter: 300ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, input, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--sun); }
::selection { background: var(--sun); color: var(--ink); }
:target { scroll-margin-top: 96px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 20; padding: 12px 16px; border-radius: var(--radius); background: var(--sun); color: var(--ink); font-weight: 600; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- logo ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; color: var(--ink); text-decoration: none; }
.o-sun { display: inline-block; width: 0.47em; height: 0.47em; margin-inline: 0.02em 0.035em; color: #e5a400; align-self: center; transform: translateY(0.09em); }
.on-dark .wordmark { color: var(--on-dark); }
.on-dark .o-sun { color: var(--sun); }
.o-sun svg { width: 100%; height: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-header .wordmark { font-size: 1.875rem; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); font-weight: 600; font-size: var(--text-md); text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.nav a[aria-current="page"] { color: var(--leaf); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--paper-2); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--sun); color: var(--ink); font-weight: 600; font-size: var(--text-md); text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.btn:not(:disabled):active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn svg { width: 18px; height: 18px; transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--sun-strong); } .btn:hover svg { transform: translateX(3px); } }
.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .is-loading::after { animation: spin 700ms linear infinite; } }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- hero ---------- */
.hero { background: var(--green); color: var(--on-dark); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(56px, 8vw, 112px); }
.hero-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-2); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: var(--title-lg); line-height: 0.98; }
.hero p { margin-top: 20px; font-size: var(--text-lg); color: var(--on-dark-2); max-width: 32ch; }
.hero .btn { margin-top: 32px; }

/* page title band on inner pages */
.page-title { background: var(--green); color: var(--on-dark); }
.page-title .wrap { padding-block: clamp(48px, 7vw, 96px); }
.page-title h1 { font-size: var(--title-lg); }
.page-title p { margin-top: 16px; font-size: var(--text-lg); color: var(--on-dark-2); max-width: 56ch; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--title-md); color: var(--leaf); }
.section-head p { margin-top: 16px; font-size: var(--text-lg); color: var(--ink-2); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { padding: 32px 28px; border-radius: var(--radius); background: var(--paper-2); }
.service h3 { font-size: var(--title-sm); }
.service p { margin-top: 12px; color: var(--ink-2); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro p { font-size: var(--text-lg); color: var(--ink-2); }
.contact-details { margin-top: 40px; display: grid; gap: 4px; }
.contact-details strong { font-weight: 600; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--paper-2); }
.form-card h2 { font-size: var(--title-sm); margin-bottom: 24px; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form .req { color: var(--error); }
.form input, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #9aa79a; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: max(16px, var(--text-md)); font-weight: 400; transition: border-color var(--t-ui) var(--ease-out); }
.form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: #6f7d70; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form .err { color: var(--error); font-size: var(--text-sm); font-weight: 600; }
.form .err:empty { display: none; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form .note { font-size: var(--text-sm); color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 0; height: 0; overflow: hidden; }

/* ---------- careers and text pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--title-sm); margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-underline-offset: 0.2em; }
.prose .btn { margin-top: 28px; }
.prose .meta { color: var(--ink-2); font-size: var(--text-sm); }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: var(--on-dark); text-align: center; }
.site-footer .wrap { padding-block: 48px 40px; display: grid; gap: 16px; justify-items: center; }
.site-footer .wordmark { font-size: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-weight: 600; text-underline-offset: 0.25em; }
.site-footer p { color: var(--on-dark-2); font-size: var(--text-sm); max-width: 72ch; }
.site-footer p a { color: var(--on-dark); }
.site-footer .credits { font-size: 0.8125rem; }
.site-footer .credits a { color: var(--on-dark-2); }

/* ---------- light motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { animation: rise var(--t-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js [data-reveal] { animation: fade 300ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 40px 56px; }
}
@media (max-width: 600px) {
  .site-header .wrap { min-height: 64px; }
  .site-header .wordmark { font-size: 1.5rem; }
  .nav a { padding: 0 10px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 24px 20px; }
}
@media (max-width: 380px) {
  .site-header .wordmark { font-size: 1.3125rem; }
  .nav a { padding: 0 8px; font-size: 1rem; }
}
