/* Site pages (kezdőlap, szolgáltatások, munkáink, kapcsolat). Design system: ink / paper / coral, Bebas Neue + Petrona. */

@font-face {
  font-family: "Petrona";
  src: url("../fonts/petrona-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.swd-site-page {
  --paper: #f0f1e9;
  --paper-2: #e4e6dc;
  --paper-3: #f7f8f3;
  --ink: #0a3039;
  --ink-2: #133f4a;
  --accent: #e65252;
  --muted: #4a6168;
  --line: rgba(10, 48, 57, 0.16);
  --line-dark: rgba(240, 241, 233, 0.16);
  --display: "Bebas Neue", sans-serif;
  --body: "Petrona", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: clip;
  /* footer always at the bottom, even on short pages */
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
.swd-site-page main.sp { flex: 1 0 auto; }
.swd-site-page *, .swd-site-page *::before, .swd-site-page *::after { box-sizing: border-box; }
.swd-site-page ::selection { background: var(--ink); color: var(--paper); }
.swd-site-page .site-header-menu .sub-menu { background: var(--paper); }
.swd-site-page :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
/* shared footer keeps its home-page look */
.swd-site-page footer { font-family: var(--primary-font-family, "Barlow", sans-serif); font-size: 16px; line-height: var(--main-line-height, 1.5); }
.swd-site-page footer .content-width { box-sizing: content-box; }

.sp-wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.sp h1, .sp h2, .sp h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; }
.sp h2 { font-size: clamp(38px, 4.4vw, 60px); max-width: 14em; }
.sp h3 { font-size: clamp(24px, 2.4vw, 30px); }
/* no colour accents inside headings (owner rule) */
.sp h1 em, .sp h2 em, .sp h3 em { font-style: normal; color: inherit; }
.sp p { margin: 0; }
.sp a { color: inherit; text-underline-offset: 4px; }
.sp img { display: block; width: 100%; height: auto; }
.sp figure { margin: 0; }

.sp-kicker { font: 400 20px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sp-kicker a { text-decoration: none; color: var(--muted); }
.sp-kicker a:hover { color: var(--ink); }
.sp-lede { max-width: 34em; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; }
.sp-prose p { margin: 0 0 18px; }
.sp-prose p:last-of-type { margin-bottom: 0; }
.sp-prose .sp-link { margin-top: 26px; }
.sp-note { margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); max-width: 44em; color: var(--muted); font-size: 17px; }
.sp-statement { margin-top: 28px !important; font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); }

/* buttons & links */
.sp .sp-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 4px;
  background: var(--accent); color: #fff; font: 400 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease;
}
.sp .sp-btn:hover { background: #d04545; transform: translateY(-1px); }
.sp .sp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sp .sp-link {
  display: inline-flex; align-items: center; gap: 8px; font: 400 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px;
}
.sp .sp-link-paper { color: var(--paper); }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }

/* sections */
.sp-section { padding: clamp(64px, 8vw, 120px) 0; }
.sp-section-paper2 { background: var(--paper-2); }
.sp-section-ink { background: var(--ink); color: var(--paper); }
.sp-section-ink .sp-kicker { color: var(--accent); }
.sp-section-ink .sp-link { color: var(--paper); }
.sp-section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sp-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(48px, 6vw, 96px); align-items: start; }

/* home hero */
.sp-hero { padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px); }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 5vw, 80px); align-items: center; }
.sp-hero-title { font-size: clamp(52px, 6.6vw, 104px); line-height: 0.98; letter-spacing: 0.005em; max-width: 10em; }
.sp-hero-title em { display: block; font-style: normal; color: inherit; }
.sp-hero-text .sp-lede { margin-top: 28px; }
.sp-hero-media { border-radius: 8px; overflow: hidden; background: var(--paper-2); box-shadow: 0 40px 80px -48px rgba(10, 48, 57, 0.5); }
.sp-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.sp-hero-media-raw { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.sp-hero-media-raw img {
  aspect-ratio: auto;
  object-fit: contain;
  width: 50%;
  max-width: none;
  margin-left: -4%;
  position: absolute;
  top: 0;
  z-index: 999;
  pointer-events: none; /* it overlaps the sticky header: keep the menu clickable */
}

/* hand-drawn ellipse around one word of the hero title, as on focuslab.agency:
   the SVG box is the word's own box (6% wider, 26% taller, the same ratio as theirs: svg 177px on a 144px line box), so the loop rises just above and dips just below the glyphs;
   the stroke is drawn by a JS-triggered transition shortly after the page has loaded (assets/js/site.js). */
.sp-circled { position: relative; display: inline-block; white-space: nowrap; }
.sp-circled-svg {
  position: absolute; left: 50%; top: 50%; width: 106%; height: 126%; transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none; z-index: 1;
}
.sp-circled-path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1757; stroke-dashoffset: 1757;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.sp-circled.is-drawn .sp-circled-path { stroke-dashoffset: 0; }

/* page hero (inner pages) */
.sp-page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); }
.sp-page-title { font-size: clamp(52px, 7vw, 112px); line-height: 0.95; letter-spacing: 0.005em; max-width: 11em; }
.sp-page-hero .sp-lede { margin-top: 28px; }

/* services */
.sp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sp-service a {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 26px 30px; border-radius: 8px;
  background: var(--paper-3); border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.sp-service a:hover { transform: translateY(-3px); border-color: var(--ink); }
.sp-service-n { font: 400 18px/1 var(--display); letter-spacing: 0.1em; color: var(--accent); }
.sp-service-name { font: 400 clamp(28px, 2.4vw, 34px)/1.05 var(--display); text-transform: uppercase; }
.sp-service-tagline { font-size: 18px; line-height: 1.4; color: var(--ink); font-style: italic; }
.sp-service-text { font-size: 17px; line-height: 1.55; color: var(--muted); }
.sp-service-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font: 400 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.sp-services-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-services-large .sp-service a { padding: 36px 34px 38px; }
.sp-services-large .sp-service-text { font-size: 18px; color: var(--ink); }

/* work cards */
.sp-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.sp-work-link { display: block; text-decoration: none; }
.sp-work-media { border-radius: 8px; overflow: hidden; background: var(--paper-3); }
.sp-work-media img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.sp-work-link:hover .sp-work-media img { transform: scale(1.02); }
.sp-work-body { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.sp-work-title { font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.sp-work-tags { font-size: 16px; color: var(--muted); }
.sp-work-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 400 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* process */
.sp-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sp-process li { padding-top: 18px; border-top: 1px solid var(--line); }
.sp-process-n { display: block; font: 400 18px/1 var(--display); letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }
.sp-process h3 { margin-bottom: 8px; }
.sp-process p { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* service page */
.sp-approach { margin-top: 36px; padding: 24px 0 0; border-top: 1px solid var(--line); max-width: 26em; }
.sp-approach .sp-kicker { color: var(--muted); font-size: 16px; }
.sp-approach-text { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.4; }
.sp-caps { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.sp-caps li { break-inside: avoid; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 18px; }
.sp-caps li::before { content: "/"; position: absolute; left: 2px; top: 10px; color: var(--accent); font: 400 22px/1.2 var(--display); }
.sp-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.sp-detail { padding-top: 18px; border-top: 1px solid var(--line); }
.sp-detail h3 { margin-bottom: 8px; }
.sp-detail p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.sp-others { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sp-others a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sp-others span { font: 400 26px/1.1 var(--display); text-transform: uppercase; }
.sp-others small { font-size: 17px; color: var(--muted); }
.sp-others a:hover span { color: var(--accent); }

/* CTA */
.sp-cta-section { padding-top: 0; }
.sp-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: center; padding: clamp(40px, 5vw, 72px); border-radius: 8px; background: var(--ink); color: var(--paper); }
.sp-cta-text p { margin-top: 16px; max-width: 32em; color: rgba(240, 241, 233, 0.8); }
.sp-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.sp-section-ink + .sp-cta-section { padding-top: clamp(64px, 8vw, 120px); }

/* contact page (approved design: paper background, statements + details left, form right) */
.sp-contact { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); }
.sp-contact-title { margin-bottom: clamp(40px, 5vw, 72px); }
.sp-contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.sp-contact-lead { grid-column: span 5; }
.sp-contact-statement { font: 400 clamp(26px, 2.4vw, 34px)/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.01em; max-width: 14em; }
.sp-contact-statement + .sp-contact-statement { margin-top: 18px; }
.sp-contact-info { margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 26em; }
.sp-contact-direct a:hover { border-bottom-color: var(--ink); }
.sp-contact-direct { display: flex; flex-direction: column; gap: 6px; }
.sp-contact-direct a { font: 400 clamp(24px, 2.2vw, 30px)/1.15 var(--display); text-decoration: none; border-bottom: 2px solid var(--accent); width: max-content; max-width: 100%; }
.sp-contact-direct span { color: var(--muted); margin-top: 8px; font-size: 17px; }

.sp-form { grid-column: 7 / span 6; }
.sp-form .wpcf7-form { display: flex; flex-direction: column; gap: 22px; }
.sp-form .wpcf7-form-control-wrap { display: block; }
.sp-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.sp-field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-field label, .sp-field legend { font: 400 18px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; padding: 0; }
.sp-field small { color: inherit; font: inherit; text-transform: uppercase; }
.sp-field input, .sp-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 6px;
  background: #fff; color: var(--ink); caret-color: var(--accent); font: 400 17px/1.5 var(--body); transition: box-shadow 0.18s, border-color 0.18s;
}
/* a field the visitor has already touched and left invalid */
.sp-field input:user-invalid, .sp-field textarea:user-invalid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sp-field textarea { min-height: 300px; resize: vertical; }
.sp-field input:focus, .sp-field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.sp-field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sp-form .wpcf7-list-item { margin: 0; }
.sp-field .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 400 17px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.sp-form input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 1px solid var(--ink); border-radius: 50%; background: #fff; display: grid; place-content: center; cursor: pointer; }
.sp-form input[type="radio"]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 0.12s; }
.sp-form input[type="radio"]:checked::before { transform: scale(1); }
.sp-form .wpcf7-list-item label:hover input { box-shadow: 0 0 0 2px var(--paper-2); }
.sp-form input[type="radio"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sp-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 6px; }
.sp-form-note { flex: 1 1 auto; font-size: 16px; color: var(--ink); }
.sp-form .sp-btn { flex: none; width: auto; min-width: 164px; justify-content: center; } /* width: auto beats the legacy `form button { width: 100% }` in style.css */
.sp-form .sp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Contact Form 7 states */
.sp-form .wpcf7-submit { -webkit-appearance: none; appearance: none; }
.sp-form .wpcf7-form.submitting .wpcf7-submit { opacity: 0.7; cursor: progress; transform: none; }
.sp-form .wpcf7-spinner { display: none; }
.sp-form .wpcf7-not-valid { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent); }
.sp-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; color: var(--accent); }
.sp-form .wpcf7-response-output { margin: 0; padding: 12px 16px; border: 0 !important; border-radius: 6px; font-size: 16px; background: var(--paper-2); }
.sp-form .wpcf7-form.sent .wpcf7-response-output { background: #dfe9d9; }
.sp-form .wpcf7-form.invalid .wpcf7-response-output, .sp-form .wpcf7-form.failed .wpcf7-response-output, .sp-form .wpcf7-form.spam .wpcf7-response-output, .sp-form .wpcf7-form.aborted .wpcf7-response-output { background: #f6dcdc; }
.sp-form .wpcf7-form.sent .sp-form-foot, .sp-form .wpcf7-form.sent .sp-field { display: none; }
.swd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* CF7's own stylesheet is dequeued, so replicate the two things it hides */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.wpcf7-form.init .wpcf7-response-output, .wpcf7-form.resetting .wpcf7-response-output, .wpcf7-form.submitting .wpcf7-response-output, .wpcf7-response-output:empty { display: none; }
.wpcf7 .hidden-fields-container { display: none; }
.swd-form-fallback { font-size: 18px; }
.swd-form-fallback a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* thank-you page */
.sp-thanks-page { display: flex; align-items: center; justify-content: center; }
.sp-thanks { width: 100%; padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.sp-thanks-id { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-thanks .sp-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sp-thanks-icon { width: clamp(120px, 16vw, 180px); color: var(--ink); margin-bottom: 8px; }
.sp-thanks-icon svg { display: block; width: 100%; height: auto; stroke-linejoin: round; }
.sp-thanks-title { font-size: clamp(36px, 5vw, 72px); max-width: 14em; }
.sp-thanks-text { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--display); text-transform: uppercase; color: var(--accent); }
.sp-thanks .sp-link { margin-top: 28px; }

/* responsive */
@media (max-width: 1199px) {
  .sp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .swd-site-page { font-size: 18px; }
  .sp-wrap { width: calc(100% - 40px); }
  .sp h2 { font-size: clamp(34px, 6vw, 48px); }
  .sp-hero-grid, .sp-split, .sp-cta, .sp-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sp-hero-media { order: -1; }
  .sp-hero-media-raw img { position: static; width: 100%; margin-left: 0; z-index: auto; }
  .sp-cta-actions { justify-self: start; }
  .sp-contact-lead, .sp-form { grid-column: auto; }
  .sp-section-head-row { flex-direction: column; align-items: flex-start; }
  .sp-process, .sp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sp-hero-media { display: none; } /* no hero image on phones (owner decision) */
}
@media (max-width: 640px) {
  .sp-section { padding: 56px 0; }
  .sp-hero-title { font-size: clamp(44px, 12vw, 64px); }
  .sp-page-title { font-size: clamp(40px, 11vw, 64px); overflow-wrap: anywhere; }
  .sp-hero-title { overflow-wrap: anywhere; }
  .sp-services, .sp-services-large, .sp-work, .sp-process, .sp-details, .sp-form-row { grid-template-columns: minmax(0, 1fr); }
  .sp-form-foot { flex-direction: column; align-items: stretch; }
  .sp-field textarea { min-height: 220px; }
  .sp-caps { columns: 1; }
  .sp-others a { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-others small { grid-column: 1 / -1; }
  .sp .sp-btn { width: 100%; justify-content: center; }
  .sp-cta-actions { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .sp *, .sp *::before, .sp *::after { transition: none !important; animation: none !important; }
  .sp-circled-path { stroke-dashoffset: 0; transition: none; }
}
