/* ==========================================================================
   Elevate Patent Group — site styles
   Brand: dark navy + blue accent + black/white. Mobile-first, no frameworks.
   ========================================================================== */

:root {
  --navy:        #0b1f3a;
  --navy-900:    #061429;
  --navy-800:    #0e2548;
  --navy-700:    #173460;
  --accent:      #7cb8f0;   /* light blue — text/icons on dark backgrounds */
  --accent-btn:  #3f93e6;   /* bright blue — primary buttons (dark text) */
  --accent-btn-h:#62a9ee;   /* button hover (brighter) */
  --accent-600:  #1a63b5;   /* primary blue — buttons (white text) */
  --accent-700:  #154e8f;   /* deep blue — accents on light backgrounds */
  --accent-100:  #d9e8f8;   /* light blue tint */
  --white:       #ffffff;
  --ink:         #16243a; /* body text on light bg */
  --ink-muted:   #4a5a72;
  --line:        #e2e7ef;
  --bg-soft:     #f5f7fb;

  --maxw:        1120px;
  --radius:      12px;
  --shadow:      0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg:   0 18px 48px rgba(11, 31, 58, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Helvetica Neue", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* Visible focus for keyboard users (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--accent-600); color: #fff; padding: .6rem 1rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d8e2f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--accent-700); margin: 0 0 .6rem;
}
.section--navy .eyebrow,
.hero .eyebrow,
.page-head .eyebrow { color: var(--accent); }
.lead { font-size: 1.18rem; color: var(--ink-muted); max-width: 60ch; }
.section--navy .lead { color: #c3d0e4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--primary { background: var(--accent-btn); color: #07223f; }
.btn--primary:hover { background: var(--accent-btn-h); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 22px; height: 44px; }
.brand .brand-name { font-size: 1.0rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.brand .brand-name span { color: var(--accent); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none;
  border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a, .nav-menu .dropdown-label {
  color: #d8e2f1; text-decoration: none; font-weight: 600; font-size: .98rem;
  display: block; padding: .7rem 0;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-menu a[aria-current="page"] { font-weight: 700; }
.nav-cta { margin-top: .5rem; }

/* Dropdown (Who We Serve) */
.dropdown > summary {
  list-style: none; cursor: pointer; color: #d8e2f1; font-weight: 600;
  padding: .7rem 0; display: flex; align-items: center; gap: .35rem;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: "▾"; font-size: .8em; color: var(--accent); }
.dropdown[open] > summary { color: var(--accent); }
.dropdown-panel { list-style: none; margin: 0; padding: 0 0 .3rem .9rem; }
.dropdown-panel a { font-size: .94rem; padding: .5rem 0; color: #b9c6dc; }

/* Mobile: menu collapses under toggle */
.nav-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); padding: .5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-menu.is-open { display: block; }
.nav-menu > li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-menu > li:last-child { border-bottom: 0; }

/* Desktop nav */
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important; position: static; background: none; padding: 0;
    align-items: center; gap: 1.6rem; border: 0;
  }
  .nav-menu > li { border: 0; }
  .nav-menu a, .dropdown > summary { padding: .4rem 0; }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn { padding: .55rem 1.1rem; }

  .dropdown { position: relative; }
  .dropdown-panel {
    position: absolute; top: 100%; left: -1rem; min-width: 240px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: .5rem; margin-top: .4rem;
  }
  .dropdown-panel a { color: var(--ink); border-radius: 8px; padding: .6rem .8rem; }
  .dropdown-panel a:hover { background: var(--bg-soft); color: var(--navy); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(90,160,230,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy));
  color: #fff; position: relative; overflow: hidden;
}
/* faint blueprint grid motif */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 70%);
}
.hero .container { position: relative; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #cdd9ec; max-width: 52ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-meta { margin-top: 1.6rem; font-size: .92rem; color: #9fb1cd; }
.hero-meta strong { color: var(--accent); }

/* page header (interior pages) */
.page-head { background: linear-gradient(180deg, var(--navy-900), var(--navy)); color: #fff; }
.page-head .container { padding: 3rem 1.25rem; }
.page-head h1 { color: #fff; }
.page-head .lead { color: #cdd9ec; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: .2rem; }
.card .card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: .8rem;
  background: var(--navy); color: var(--accent); font-weight: 800;
}
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; color: var(--accent-700); text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

/* feature list with check marks */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-700); font-weight: 800;
}
.section--navy .checklist li::before { color: var(--accent); }

/* two-column prose + aside */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }

.aside-card {
  background: var(--navy); color: #d8e2f1; border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.aside-card h3 { color: #fff; }
.aside-card a { color: var(--accent); }
.headshot {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  margin: 0 0 1.1rem; display: block;
  border: 3px solid rgba(124,184,240,.55);
  background: var(--navy-700);
}

/* ---------- USPTO certificate ---------- */
.certificate { margin: 1.6rem 0 .5rem; max-width: 540px; }
.certificate img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
}
.certificate figcaption { font-size: .9rem; color: var(--ink-muted); margin-top: .55rem; }

/* ---------- Photo gallery (international experience) ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--navy-700);
}
.photo figcaption { font-size: .9rem; color: var(--ink-muted); margin-top: .55rem; }
.split .photo img { aspect-ratio: 4 / 3; }

/* ---------- Logo marquee (Companies Served) ---------- */
.companies-served-title { font-size: clamp(2.2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
.marquee {
  position: relative; overflow: hidden; margin-top: 2.2rem; padding: .4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 1.5rem; width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-tile {
  flex: 0 0 auto; width: 180px; height: 94px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; padding: .9rem 1.2rem;
}
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
}

/* ---------- Reviews carousel ---------- */
.reviews { position: relative; margin-top: 2rem; }
.reviews__track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .25rem 1.4rem; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.review-card {
  scroll-snap-align: center; flex: 0 0 87%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column;
}
@media (min-width: 760px)  { .review-card { flex-basis: calc(50% - .625rem); } }
@media (min-width: 1100px) { .review-card { flex-basis: calc(33.333% - .84rem); } }
.review-stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; margin-bottom: .9rem; }
.review-card blockquote { margin: 0 0 1.2rem; font-size: 1.0rem; line-height: 1.6; color: var(--ink); quotes: "\201C" "\201D"; }
.review-card blockquote::before { content: open-quote; }
.review-card blockquote::after  { content: close-quote; }
.review-card figcaption { margin-top: auto; }
.review-name { display: block; font-weight: 800; color: var(--navy); }
.review-meta { display: block; font-size: .85rem; color: var(--ink-muted); margin-top: .15rem; }
.reviews__nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); box-shadow: var(--shadow-lg);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: none;
}
.reviews__nav--prev { left: -8px; }
.reviews__nav--next { right: -8px; }
.reviews__nav:hover { color: var(--accent-700); }
@media (min-width: 760px) {
  .reviews.has-js-nav .reviews__nav { display: inline-flex; align-items: center; justify-content: center; }
}

/* stat / credential pill */
.pill {
  display: inline-block; background: rgba(124,184,240,.16); color: var(--accent);
  border: 1px solid rgba(124,184,240,.45); padding: .35rem .8rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { display: grid; gap: 1.4rem; align-items: center; padding: 3.2rem 1.25rem; }
@media (min-width: 860px) { .cta-band .container { grid-template-columns: 1.6fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c3d0e4; margin: 0; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-600); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -5000px; } /* honeypot, visually hidden */
.form-note { font-size: .85rem; color: var(--ink-muted); }

.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: .7rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list .ico { color: var(--accent-700); font-weight: 800; width: 1.4rem; }
.contact-list a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.embed-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 660px; width: 100%;
}

/* ---------- Testimonials placeholder ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent-600);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.quote p { font-style: italic; }
.quote cite { display: block; font-style: normal; font-weight: 700; color: var(--navy); margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebbd1; padding: 3rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #aebbd1; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-brand img { width: 19px; height: 38px; }
.footer-brand span { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.4rem;
  font-size: .82rem; color: #7e8eaa; line-height: 1.6;
}
.footer-bottom .disclaimer { max-width: 80ch; }

/* prose blocks */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose > p:first-of-type { font-size: 1.1rem; }

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