/* Byteside site styles. Built from the Byteside website design (Main, Service, About, Contact, SiteHeader, SiteFooter). */

:root {
  --bs-brand: #0F766E;
  --bs-brand-deep: #0A4F4A;
  --bs-accent: #F59E0B;
  --bs-surface: #FFF8EC;
  --bs-paper: #FFFDF8;
  --bs-ink: #1F2937;
  --bs-muted: #4B5563;
  --bs-line: #E7DFCF;
  --bs-mint: #CDE7E3;
  --bs-font: "Nunito", "Trebuchet MS", Arial, sans-serif;
}

/* Base (from the design's shared stylesheet) */
body { margin: 0; font-family: var(--bs-font); color: var(--bs-ink); background: var(--bs-paper); font-size: 19px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
:where(.bs-main, .bs-part) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset, legend, figure, blockquote) { margin: 0; }
:where(.bs-main, .bs-part) :where(ul) { padding: 0; list-style: none; }
:where(.bs-main) fieldset { border: 0; padding: 0; min-width: 0; }
:where(.bs-main) legend { padding: 0; }
a { color: var(--bs-brand); }
a:hover { color: var(--bs-brand-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--bs-brand-deep); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 32px; border-radius: 999px; background: var(--bs-brand); color: #fff; font: 700 18px/1 var(--bs-font); text-decoration: none; border: 2px solid var(--bs-brand); cursor: pointer; }
.btn:hover { background: var(--bs-brand-deep); border-color: var(--bs-brand-deep); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: transparent; color: var(--bs-brand); font: 700 18px/1 var(--bs-font); text-decoration: none; border: 2px solid var(--bs-brand); cursor: pointer; }
.btn-outline:hover { background: var(--bs-mint); color: var(--bs-brand-deep); }
.btn-on-dark { background: var(--bs-surface); border-color: var(--bs-surface); color: var(--bs-brand-deep); }
.btn-on-dark:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--bs-brand-deep); }
.bs-main section[style*="#0A4F4A"] a:focus-visible { outline-color: var(--bs-surface); }

/* FAQ (details/summary) */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }

/* Booking form */
.field { width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid #6B7B78; border-radius: 8px; background: var(--bs-paper); color: var(--bs-ink); font: 400 19px/1.4 var(--bs-font); }
.opt { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 20px; border: 2px solid #D9CFBA; border-radius: 16px; background: var(--bs-paper); font-size: 19px; font-weight: 600; cursor: pointer; flex: 1 1 220px; }
.opt input { width: 24px; height: 24px; margin: 0; accent-color: var(--bs-brand); flex: none; }
.opt:has(input:checked) { border-color: var(--bs-brand); background: #F2FAF8; }
.bs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bs-form-error { background: #FDECEC; border: 2px solid #B42318; color: #7A1A12; border-radius: 16px; padding: 16px 20px; font-size: 19px; font-weight: 700; line-height: 1.45; }
.bs-req { font-weight: 600; color: var(--bs-muted); }

/* Header */
.bs-header { width: 100%; background: var(--bs-paper); border-bottom: 2px solid var(--bs-line); position: relative; z-index: 20; }
.bs-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.bs-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.bs-logo span { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: var(--bs-ink); line-height: 1; }
.bs-logo--rev span { color: var(--bs-surface); }
.bs-nav { display: flex; align-items: center; gap: 32px; }
.bs-nav a { font-size: 18px; font-weight: 700; text-decoration: none; padding: 8px 2px; border-bottom: 3px solid transparent; color: var(--bs-ink); }
.bs-nav a:hover { color: var(--bs-brand); }
.bs-nav a[aria-current="page"] { border-bottom-color: var(--bs-brand); color: var(--bs-brand-deep); }
.bs-header__actions { display: flex; align-items: center; gap: 12px; }
.bs-menu { display: none; }
.bs-panel { border-top: 2px solid var(--bs-line); background: var(--bs-surface); }
.bs-panel[hidden] { display: none; }
.bs-panel nav { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; padding-bottom: 24px; }
.bs-panel nav a:not(.btn) { font-size: 22px; font-weight: 800; text-decoration: none; padding: 14px 0; border-bottom: 2px solid var(--bs-line); color: var(--bs-ink); }
.bs-panel nav a[aria-current="page"] { color: var(--bs-brand); }
.bs-panel .btn { margin-top: 12px; }
@media (max-width: 900px) { .bs-nav { display: none !important; } .bs-menu { display: inline-flex !important; } }
@media (max-width: 640px) { .bs-cta { display: none !important; } }

/* Footer */
.bs-footer { width: 100%; background: var(--bs-brand-deep); color: var(--bs-surface); }
.bs-footer__inner { padding-top: 64px; padding-bottom: 32px; }
.bs-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 48px; }
.bs-footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.bs-footer__brand p { font-size: 19px; line-height: 1.6; color: var(--bs-mint); }
.bs-footer__col { display: flex; flex-direction: column; gap: 12px; }
.bs-footer__col h2 { font-size: 19px; font-weight: 800; color: var(--bs-mint); line-height: 1.3; }
.bs-footer__col p { font-size: 18px; color: var(--bs-surface); }
.bs-footer a { color: var(--bs-surface); text-decoration: none; font-weight: 600; font-size: 18px; }
.bs-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.bs-footer a:focus-visible { outline-color: var(--bs-surface); }
.bs-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 2px solid #1E6B64; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.bs-footer__bottom p { font-size: 17px; color: var(--bs-mint); }

/* Shared section helpers (blog, article, plain pages) */
.bs-eyebrow { font-size: 18px; font-weight: 800; color: var(--bs-brand); }
.bs-eyebrow a { text-decoration: none; }
.bs-h1 { font-size: clamp(40px, 4.8vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.bs-lead { font-size: 22px; line-height: 1.5; }

/* Blog list */
.bs-posts { margin-top: 48px; border-top: 2px solid var(--bs-line); }
.bs-posts li { padding: 36px 0; border-bottom: 2px solid var(--bs-line); display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.bs-posts time { font-size: 17px; font-weight: 700; color: var(--bs-muted); }
.bs-posts h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 800; }
.bs-posts h2 a { color: var(--bs-ink); text-decoration: none; }
.bs-posts h2 a:hover { color: var(--bs-brand); text-decoration: underline; text-decoration-color: var(--bs-accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.bs-posts p { font-size: 20px; line-height: 1.55; color: var(--bs-ink); }
.bs-posts .bs-more { font-weight: 800; font-size: 18px; }
.bs-pager { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Single post */
.bs-article__inner { max-width: 1200px; padding-top: 72px; padding-bottom: 72px; }
.bs-article__inner > * { max-width: 760px; }
.bs-article__title { margin: 16px 0 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--bs-ink); }
.bs-article__date { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--bs-muted); }
.bs-prose { margin-top: 40px; font-size: 20px; line-height: 1.65; }
.bs-prose > * + * { margin-top: 20px; }
.bs-prose h2 { margin-top: 48px; font-size: clamp(28px, 2.8vw, 34px); line-height: 1.2; font-weight: 800; color: var(--bs-brand-deep); }
.bs-prose h3 { margin-top: 32px; font-size: 24px; line-height: 1.3; font-weight: 800; }
.bs-prose ol, .bs-prose ul { padding-left: 1.4em; }
.bs-prose ul { list-style: disc; }
.bs-prose li + li { margin-top: 10px; }
.bs-prose ol li::marker { font-weight: 800; color: var(--bs-brand); }
.bs-prose .bs-lead { font-size: 23px; line-height: 1.5; }

/* Plain pages that were not built from the design (privacy policy and similar) */
.bs-page .wp-block-post-content > :not(section):not(style) { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.bs-page .wp-block-post-content > :not(section):not(style):first-child { padding-top: 72px; }
.bs-page .wp-block-post-content > :not(section):not(style):last-child { padding-bottom: 96px; }
.bs-page .wp-block-post-content > :not(section) + :not(section) { margin-top: 20px; }
.bs-page .wp-block-post-content > h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; font-weight: 800; }
.bs-page .wp-block-post-content > h2 { font-size: 30px; line-height: 1.2; font-weight: 800; margin-top: 40px; }

/* Phones: full-width buttons inside page content, as in the "Home on a phone" design */
@media (max-width: 640px) {
  .bs-main .btn, .bs-main .btn-outline { width: 100%; }
  body { line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
