/* Plot Authority — single-page site
   Font: Montserrat (SIL Open Font License 1.1) */

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

:root {
  --navy: #011B44;
  --navy-deep: #00112E;
  --navy-mid: #16315F;
  --orange: #FF5E03;
  --orange-deep: #E25200;
  --cream: #F6F3EE;
  --cream-dark: #E8E2D7;
  --ink: #1A2740;
  --muted: #5A6478;
  --white: #FFFFFF;
  --line: rgba(1, 27, 68, 0.12);
  --shadow: 0 16px 40px rgba(1, 27, 68, 0.08);
  --radius: 16px;
  --max: 1120px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-deep); }

a:hover { color: var(--navy); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link:hover { opacity: 0.92; }

.logo-link img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.4rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #ff7a2a;
  color: var(--navy);
  border-color: #ff7a2a;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  border-color: var(--navy-mid);
}

.btn-header {
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

section[id], #top { scroll-margin-top: calc(var(--header-h) + 16px); }

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  display: inline-block;
  font-weight: 750;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.15rem); }

h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }

h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; }

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(255, 94, 3, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(255, 94, 3, 0.07), transparent 50%),
    var(--navy);
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-has-photo {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 0;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/portfolio/sample-a-retail-aerial-2400.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 27, 68, 0.90) 0%,
    rgba(1, 27, 68, 0.82) 38%,
    rgba(1, 27, 68, 0.52) 100%
  );
}

.hero-has-photo .wrap,
.hero-credit {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 36rem) 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy { max-width: 36rem; }

.hero h1 { color: var(--white); }

.hero h1 .accent { color: var(--orange); }

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-credit-bar {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: #000a1c;
  padding: 0.7rem 0;
}

.hero-credit {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero-credit a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-credit a:hover { color: var(--orange); }

/* ---------- What we do ---------- */
.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--orange);
}

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

/* ---------- How it works ---------- */
.how { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-top: 0.2rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

/* ---------- Deliverables ---------- */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow);
}

.deliverables-grid li {
  list-style: none;
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  color: var(--ink);
  font-weight: 600;
}

.deliverables-grid ul { margin: 0; padding: 0; }

.deliverables-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.portfolio-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  display: block;
  background: var(--navy);
  cursor: zoom-in;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.portfolio-image:hover img { opacity: 0.92; }

.portfolio-card figcaption {
  padding: 1.2rem 1.3rem 1.35rem;
}

.portfolio-card h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
}

.portfolio-card figcaption > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-credit {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #5A6478;
}

.portfolio-credit a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portfolio-credit a:hover { color: var(--orange-deep); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(1, 16, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 1.5rem;
  overflow: auto;
}

.lightbox[hidden] { display: none; }

body.lightbox-open { overflow: hidden; }

.lightbox-close {
  position: fixed;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
}

.lightbox-figure img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #00112E;
  border-radius: 8px;
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.9rem 0.2rem 0;
}

.lightbox-figure h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.lightbox-figure .portfolio-credit,
.lightbox-figure .portfolio-credit a {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Pricing ---------- */
.pricing-label {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.1rem;
}

.plan-grid {
  display: grid;
  gap: 1.2rem;
}

.plan-grid-monthly {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.85rem;
}

.plan-grid-project {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 0.85rem;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
}

.plan-price {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  margin: 0 0 0.7rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.2rem;
}

.plan-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.plan-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}

.plan-card .btn { align-self: flex-start; }

.plan-card-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 20px 44px rgba(1, 27, 68, 0.22);
}

.plan-card-featured h3,
.plan-card-featured .plan-price { color: var(--white); }

.plan-card-featured h3 { padding-right: 5.6rem; }

.plan-card-featured .plan-price span,
.plan-card-featured .plan-lead { color: rgba(255, 255, 255, 0.78); }

.plan-card-featured .plan-features li { color: var(--white); }

.plan-badge {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  margin: 0;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
}

.plan-card-project .plan-price { font-size: 2.05rem; }

.plan-card-project .plan-lead { flex: 1; }

.pricing-note,
.pricing-addons {
  margin: 0 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-addons {
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  background: var(--cream);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 800px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}

details[open] { box-shadow: var(--shadow); }

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1.05rem 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--orange);
  line-height: 1;
}
details[open] summary::after { content: "–"; }

.faq-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  margin: 0;
}

.placeholder {
  display: inline;
  background: #FFF1C9;
  color: #6A4B00;
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px dashed #E0B84A;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.email-link {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  word-break: break-word;
}
.email-link:hover { color: var(--orange-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 2rem;
  font-size: 0.88rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-top img { height: 32px; width: auto; }

.footer-top a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-top a:hover { color: var(--orange); }

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0.2rem 0 0;
}
.disclaimer {
  margin: 0;
  padding-top: 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  max-width: 46rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .contact-panel,
  .plan-grid-project {
    grid-template-columns: 1fr;
  }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero.hero-has-photo { min-height: 0; padding: 3rem 0 0; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(1, 27, 68, 0.88) 0%,
      rgba(1, 27, 68, 0.80) 70%,
      rgba(1, 27, 68, 0.86) 100%
    );
  }
  .hero-credit { width: calc(100% - 1.5rem); }
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid,
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; padding: 1.2rem 1.4rem; }
  .section { padding: 4rem 0; }
}

@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .header-inner { width: calc(100% - 1.5rem); }
  .wrap { width: calc(100% - 1.5rem); }
  .logo-link img { height: 32px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.2rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }
  .nav a { display: block; width: 100%; padding: 0.7rem 0; font-size: 1rem; }
  .nav .btn-header { margin-top: 0.6rem; width: 100%; }
  body.nav-open .nav { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .card-grid,
  .portfolio-grid,
  .plan-grid-monthly,
  .plan-grid-project { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1.05rem; }
}

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