/* MaxBiz Marketing — main stylesheet
   Palette from the MaxBiz logo: globe orange #FF771B, wordmark blue #1A43FB. */

:root {
  /* REPLACEABLE IMAGES */
  --img-globe: url("globe.svg");
  /* end REPLACEABLE IMAGES */

  --orange: #FF771B;        /* logo globe */
  --orange-600: #F06512;
  --orange-700: #B34700;    /* orange for text on white (5.5:1) */
  --orange-50: #FFF2E8;
  --blue: #1A43FB;          /* logo wordmark */
  --blue-700: #1233D0;
  --blue-900: #0A1A6B;      /* deep step for footer and dark bands */
  --blue-50: #EEF1FF;
  --blue-100: #DCE3FF;
  --ink: #12163A;
  --muted: #4A4F6A;
  --line: #E1E4F0;
  --white: #FFFFFF;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(10, 26, 107, .10);
  --wrap: 1160px;
  --space: clamp(64px, 9vw, 112px);
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--blue-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-style: italic; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; font-style: italic; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40em; }
.accent { color: var(--blue); }
.accent-o { color: var(--orange-700); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section--tint { background: var(--blue-50); }
.section--dark { background: var(--blue-900); color: #E6EAFF; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section--dark .section-head p { color: #C9D2FF; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--orange); color: var(--blue-900); box-shadow: 0 6px 18px rgba(255, 119, 27, .35); }
.btn--primary:hover { background: var(--orange-600); color: var(--blue-900); transform: translateY(-1px); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--blue-900); }
.btn--lg { font-size: 1.1rem; padding: 1em 1.7em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: block; flex: none; }
.brand img { width: 180px; height: 50px; }
.nav-toggle { display: none; }
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { font-weight: 700; color: var(--blue-900); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-700); }
.header-phone:hover { color: var(--blue); }
.header-cta .btn { padding: .7em 1.2em; }

@media (max-width: 1060px) {
  .header-phone span { display: none; }
}
@media (max-width: 899px) {
  .header-bar { min-height: 64px; gap: 10px; }
  .brand img { width: 158px; height: 44px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { justify-content: flex-start; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--blue-100);
    background: var(--white); color: var(--blue-900); cursor: pointer;
  }
  .js .nav-toggle svg { width: 24px; height: 24px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 12px; }
  .js .site-nav.is-open ul { flex-direction: column; }
  .js .site-nav.is-open a { padding: 12px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border-radius: 10px; background: var(--orange); }
  .header-phone svg { color: var(--blue-900); width: 22px; height: 22px; }
}
@media (max-width: 380px) { .brand img { width: 140px; height: 39px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%); }
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -180px;
  background: var(--img-globe) center / contain no-repeat; opacity: .09; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-place { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-700); margin-bottom: 14px; }
.hero-place svg { width: 20px; height: 20px; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent { display: block; }
.hero .lead { margin-bottom: 1.6em; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.hero-figure::before {
  content: ""; position: absolute; inset: 22px -14px -14px 22px; border-radius: var(--radius-lg);
  background: var(--orange);
}
.hero-badge {
  position: absolute; left: -18px; bottom: -26px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow);
  font-weight: 600; color: var(--blue-900); line-height: 1.25; font-size: .95rem;
}
.hero-badge img { width: 44px; height: 44px; }
@media (max-width: 600px) { .hero-badge { left: 10px; bottom: -30px; } .hero-figure::before { inset: 14px -8px -8px 14px; } }

.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--white), var(--blue-50)); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -120px;
  background: var(--img-globe) center / contain no-repeat; opacity: .1; pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .tagline { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--orange-700); font-style: italic; margin-bottom: .6em; }

/* ---------- Promise strip ---------- */
.strip { background: var(--blue); color: var(--white); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 14px 32px; }
@media (min-width: 760px) { .strip ul { grid-template-columns: repeat(3, 1fr); } }
.strip li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.strip svg { width: 26px; height: 26px; flex: none; color: var(--orange); }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 26px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--orange-50); color: var(--orange-700); margin-bottom: 18px;
}
.svc-icon svg { width: 30px; height: 30px; }
.svc h3 { font-size: 1.35rem; }
.svc p { color: var(--muted); margin: 0; }
.svc-grid--lead .svc:nth-child(odd) .svc-icon { background: var(--blue-50); color: var(--blue); }
.more-link { margin-top: 32px; font-weight: 700; }
.more-link a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more-link a:hover { text-decoration: underline; }

.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; gap: 6px 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 760px) { .svc-row { grid-template-columns: 56px 300px 1fr; } }
.svc-row .svc-icon { margin: 0; width: 48px; height: 48px; border-radius: 12px; }
.svc-row .svc-icon svg { width: 24px; height: 24px; }
.svc-row h3 { margin: 8px 0 0; }
.svc-row p { margin: 8px 0 0; color: var(--muted); }

.svc-detail { display: grid; gap: 22px; }
.svc-detail .svc { display: grid; gap: 8px 28px; }
@media (min-width: 760px) { .svc-detail .svc { grid-template-columns: 58px 1fr; } .svc-detail .svc-icon { margin: 0; } }
.svc-detail .svc p + p { margin-top: .8em; }

/* ---------- Values / what we hold dear ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; } .split--center { align-items: center; } }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.values li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.values .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--blue-900); }
.values .dot svg { width: 22px; height: 22px; }
.values h3 { margin: 4px 0 4px; font-size: 1.15rem; }
.values p { margin: 0; }
.section--dark .values p { color: #C9D2FF; }
.big-quote { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; font-weight: 700; font-style: italic; color: var(--white); margin: 0 0 .7em; }
.big-quote .accent-o { color: var(--orange); }

/* ---------- Local ---------- */
.local-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 40px);
  border-top: 6px solid var(--orange);
}
.local-card dl { margin: 0; display: grid; gap: 16px; }
.local-card dt { font-weight: 700; color: var(--blue-900); display: flex; gap: 10px; align-items: center; }
.local-card dt svg { width: 20px; height: 20px; color: var(--orange-700); }
.local-card dd { margin: 2px 0 0 30px; }
.globe-mark { width: 120px; height: 120px; margin-bottom: 18px; }

/* ---------- Media ---------- */
.frame { margin: 0; }
.frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.frame figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* ---------- Work samples ---------- */
.work-teaser { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-teaser { grid-template-columns: 1fr 1fr; align-items: start; } }
.work-teaser .stack { display: grid; gap: 22px; }
.work-item { margin: 0; display: block; text-decoration: none; color: inherit; }
.work-item img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform .2s, box-shadow .2s; }
.work-item:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-item figcaption, .work-item .cap { display: block; margin-top: 10px; font-size: .95rem; color: var(--muted); }
.work-item strong { color: var(--blue-900); display: block; font-size: 1.05rem; }
.note { background: var(--orange-50); border-left: 5px solid var(--orange); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink); max-width: 46em; }

.web-concepts { display: grid; grid-template-columns: 3.1fr 1fr; gap: clamp(12px, 3vw, 28px); align-items: start; max-width: 900px; }
.cover-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .cover-grid { grid-template-columns: 1fr 1fr; } }
.video-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-grid .ext { display: inline-flex; gap: 6px; align-items: center; color: var(--blue); font-weight: 600; }
.video-grid .ext svg { width: 16px; height: 16px; }
.sub-h { margin-top: clamp(48px, 7vw, 80px); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -90px; bottom: -150px;
  background: var(--img-globe) center / contain no-repeat; opacity: .35; pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta-band p { font-size: 1.2rem; max-width: 36em; color: #E6EAFF; margin-bottom: 1.6em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blue-900); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #C5CBE0; background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
@media (min-width: 640px) { .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 18px; min-height: 65px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.ok { background: #E7F7EE; color: #0D5B2E; }
.form-status.err { background: #FDECEC; color: #8A1C1C; }
.form-small { font-size: .92rem; color: var(--muted); margin-top: 14px; }

.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact-list .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-700); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--blue-900); }
.contact-list a { font-weight: 600; font-size: 1.1rem; }
.hours { border-radius: var(--radius); background: var(--blue-50); padding: 22px 24px; }
.hours h2 { font-size: 1.35rem; font-style: normal; }
.hours dl { margin: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--blue-100); }
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-weight: 600; }
.hours-row dd { margin: 0; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #C9D2FF; font-size: .98rem; }
.footer-grid { display: grid; gap: 36px; padding-block: 64px 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr .7fr; } }
.footer-logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 8px 12px; margin-bottom: 18px; }
.footer-logo img { width: 180px; height: 50px; }
.site-footer h2 { color: var(--white); font-size: 1.1rem; font-style: normal; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer a.btn--primary, .site-footer a.btn--primary:hover { color: var(--blue-900); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--orange); }
.footer-cta { margin-top: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px 28px; font-size: .88rem; color: #A9B4EE; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #C9D2FF; }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.notfound li a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--blue-50); text-decoration: none; font-weight: 600; }

@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .hero::before { width: 360px; height: 360px; right: -170px; top: -90px; opacity: .06; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.2em; }
  .hero .btn--lg { font-size: 1rem; padding: .85em 1.3em; }
  .hero-place { margin-bottom: 8px; }
  .page-hero::before { opacity: .06; }
}
.hours-row [data-ss-field="open"]:empty + .hours-sep { display: none; }
.hours-row [data-ss-field="close"]:not(:empty) + [data-ss-field="note"]:not(:empty) { margin-left: .4em; }
