/* Do-Right Computer Services — site styles
   Plain CSS, no build step. Royal blue and white, with a warm cream for body sections. */

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --royal: #1652C9;
  --royal-dark: #0C337F;
  --royal-deep: #08245C;
  --royal-soft: #E7EEFA;
  --white: #ffffff;
  --cream: #F6F3EE;
  --ink: #1C2430;
  --muted: #4A5563;
  --line: #D7DDE6;
  --header-h: 4.5rem;
  --shadow: 0 8px 24px rgba(8, 36, 92, 0.08);
  --font-sans: "Libre Franklin", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a {
  color: var(--royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--royal-dark);
}

:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  background: var(--white);
  color: var(--royal-dark);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(720px, calc(100% - 2.5rem));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 1.75rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--royal-deep);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-kicker {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--royal-dark);
}

.brand-rest {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--royal-dark);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--royal-dark);
  border-radius: 1px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--royal);
  border-bottom-color: var(--royal);
}

.site-nav .nav-cta {
  display: inline-block;
  background: var(--royal);
  color: var(--white);
  border-bottom: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--royal-dark);
  color: var(--white);
  border-bottom-color: transparent;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a,
  .site-nav .nav-cta {
    display: block;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-cta {
    margin-top: 0.4rem;
    text-align: center;
    border-bottom: 0;
    border-radius: 6px;
  }
}

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

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 7px;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-solid,
.btn-primary {
  background: var(--white);
  color: var(--royal-dark);
  border-color: var(--white);
}

.btn-solid:hover,
.btn-primary:hover {
  background: var(--royal-soft);
  color: var(--royal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.btn-primary:hover {
  background: var(--royal-dark);
  color: var(--white);
  border-color: var(--royal-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--royal-dark);
  border-color: var(--royal);
}

.btn-secondary:hover {
  background: var(--royal-soft);
  color: var(--royal-deep);
  border-color: var(--royal-dark);
}

/* ---------- Hero & photo breaks (Wix-style parallax) ---------- */

.hero,
.photo-break {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero {
  min-height: 100svh;
  min-height: 100vh;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 3rem;
}

.photo-break {
  min-height: min(48vh, 420px);
  padding: 3.5rem 1.25rem;
}

.parallax-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-color: var(--royal-deep);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll; /* iOS-safe default */
  transform: translateZ(0);
}

/* Desktop / fine-pointer: classic fixed background (Wix-style).
   iOS does not support background-attachment: fixed reliably, so it is
   excluded via .no-fixed-bg (set in <head>) and this hover/pointer query. */
@media (hover: hover) and (pointer: fine) {
  html:not(.no-fixed-bg) .parallax-bg {
    background-attachment: fixed;
  }
}

html.no-fixed-bg .parallax-bg {
  top: -25%;
  bottom: -25%;
  background-attachment: scroll;
}

.hero-overlay,
.photo-break-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(8, 28, 72, 0.42) 0%,
    rgba(8, 28, 72, 0.52) 45%,
    rgba(8, 28, 72, 0.72) 100%
  );
}

.photo-break-overlay {
  background: rgba(8, 28, 72, 0.42);
}

.hero-content,
.photo-break-text {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 40rem;
}

.hero-logo {
  width: min(200px, 42vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 0.4rem;
  text-wrap: balance;
  color: var(--white);
}

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  margin: 0 0 1rem;
  color: #f3f6ff;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #e8edf7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-phone {
  margin: 1.1rem 0 0;
}

.hero-phone a {
  color: #e8edf7;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.hero-phone a:hover,
.hero-phone a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.photo-break-text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 28rem;
}


/* ---------- Sections ---------- */

.section {
  padding: 4.25rem 0 4.5rem;
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--royal-deep);
}

.intro {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ---------- Services ---------- */

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: 0 1px 0 rgba(8, 36, 92, 0.03);
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.4rem;
  color: var(--royal-deep);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  background: var(--royal-soft);
  color: var(--royal);
}

.service-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

/* ---------- About / area lists ---------- */

.plain-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.2rem;
  border-top: 1px solid var(--line);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--royal);
}

/* ---------- Refer ---------- */

.section-refer {
  background: var(--royal);
  color: var(--white);
  text-align: center;
}

.section-refer h2 {
  color: var(--white);
}

.eyebrow-on-blue {
  color: #d5e2ff;
}

.section-refer p {
  color: #eaf0ff;
}

.refer-offer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem !important;
  color: var(--white) !important;
}

.refer-pct {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--white);
}

.refer-offer {
  font-size: 1.35rem;
  font-weight: 600;
}

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

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.25rem 0;
  margin: 1.5rem 0 1rem;
  box-shadow: var(--shadow);
}

.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.contact-row:first-child {
  border-top: 0;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.contact-row a {
  font-weight: 600;
  word-break: break-word;
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-actions {
  margin-top: 1.25rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

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

.site-footer {
  background: var(--royal-deep);
  color: #d5dcf0;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: #cfe0ff;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-credit-heading {
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
}

.footer-credits p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.copyright {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #b7c3df;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-logo {
    width: min(150px, 40vw);
  }

  .section {
    padding: 3.25rem 0 3.5rem;
  }
}
