/* ── Very wide screens ── */
@media (min-width: 1600px) {
  .hero { padding-top: 180px; }
}

/* ── Large screens (1200px and below) ── */
@media (max-width: 1200px) {
  .navbar { padding: 0 32px; }
  .nav-links { gap: 0; }

  .hero { padding: 170px 6% 110px; }
  .hero h1 { font-size: clamp(54px, 9vw, 94px); }

  /* Steps: 2-column */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1),
  .step:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Featured & footer: single column */
  .featured-build,
  .footer-inner { grid-template-columns: 1fr; }

  /* Featured: reorder visual below copy on collapse */
  .featured-build { gap: 48px; }
  .featured-visual { order: 1; }
  .featured-copy  { order: 0; }
}

/* 15" laptops (1920x1080, 1366x768, etc.) */
@media (min-width:1000px) and (max-height:900px){

    .hero{
        min-height:82vh;
        min-height:82dvh;
        padding:120px 7% 70px;
    }

    .hero h1{
        font-size:clamp(3.3rem,4.5vw,5rem);
        max-width:700px;
    }

    .hero p{
        margin-top:18px;
        font-size:1rem;
    }

    .hero-actions{
        margin-top:24px;
    }
}

/* ── Short landscape desktop viewports ── */
@media (min-width: 1000px) and (max-height: 840px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 140px 7% 90px;
  }
  .hero h1 {
    max-width: 900px;
    font-size: clamp(52px, 6.6vw, 90px);
    line-height: 0.9;
  }
  .hero p {
    margin-top: 26px;
    max-width: 650px;
    font-size: 17px;
    line-height: 1.65;
  }
  .hero-actions { margin-top: 32px; }
}

/* ── Medium screens (1100px and below) ── */
@media (max-width: 1100px) {
  /* Work: stack left panel above cards */
  .work-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .work-sticky,
  .work-head {
    position: relative;
    top: auto;
    max-width: 760px;
  }
  .work-sticky p,
  .work-head p { max-width: 620px; }

  /* Services: stack left panel below list */
  .services-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .services-left {
    grid-column: auto;
    grid-row: auto;
    position: relative;
    top: auto;
  }
  .services-list,
  .capabilities-list {
    grid-column: auto;
    grid-row: auto;
  }
  .services-left h2,
  .services-left p { max-width: 680px; }

  /* Footer: single column */
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Tablet / mid breakpoint (960px and below) ── */
@media (max-width: 960px) {
  .featured-build { padding: 100px 6%; }

  .featured-visual,
  .featured-visual img { min-height: 0; }

  /* Footer link columns: 2-col */
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  /* Pricing: tighten columns */
  .pricing-header,
  .pricing-row {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ── Mobile nav (860px and below) ── */
@media (max-width: 860px) {

  /* 2-item flex: brand left, nav-right (burger) right */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    min-height: 58px;
    background: rgba(4, 9, 20, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }

  .navbar.scrolled {
    background: rgba(4, 9, 20, 0.97);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }

  /* Hide desktop CTA, show burger */
  .nav-cta  { display: none; }
  .menu-toggle { display: flex; }

  /* Full-width slide-down menu panel */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    top: 58px; /* overridden by JS */
    width: 100%;
    gap: 0;
    padding: 6px 16px 16px;
    background: rgba(4, 9, 20, 0.99);
    border-bottom: 1px solid rgba(216, 180, 106, 0.10);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    justify-self: unset;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Each link: full-width tap target */
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: none;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .nav-links a:last-child { border-bottom: none; }

  /* Chevron replaces the desktop underline pseudo-element */
  .nav-links a::after {
    content: "›";
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    border-radius: 0;
    bottom: auto; left: auto; right: auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
  .nav-links a:hover::after { color: var(--accent-2); transform: translateX(4px); }
  .nav-links a.active { color: var(--accent-2); }
  .nav-links a.active::after { color: var(--accent-2); }

  /* Hero */
  .hero { padding: 130px 6% 80px; }
  .hero h1 { font-size: clamp(44px, 11vw, 76px); }
  .hero p { font-size: 16px; }

  /* Shared section padding */
  .intro,
  .section,
  .services,
  .featured-build { padding-top: 90px; padding-bottom: 90px; padding-left: 6%; padding-right: 6%; }

  /* Steps: keep 2-col */
  .steps { grid-template-columns: repeat(2, 1fr); }

  /* Pricing: tighten */
  .pricing-header,
  .pricing-row {
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
  }

  /* Container */
  .container { width: min(calc(100% - 32px), var(--max-width)); }

  section[id] {
    scroll-margin-top: 18px;
  }
}

/* ── Small tablet / large phone (760px and below) ── */
@media (max-width: 760px) {
  .hero { padding-top: 118px; }

  /* Solution cards: full-width single column */
  .solution-panel,
  .solution-card {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "tags"
      "link";
    padding: 24px;
    gap: 14px;
  }
  .solution-count,
  .solution-number { display: none; }

  /* ── Mobile Pricing: 3 plan cards stacked ── */
  .pricing-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: none;
    margin-top: 40px;
  }

  .pricing-header { display: none; }

  /* Every row: full-width feature line */
  .pricing-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 0;
    border: none;
    background: none;
  }

  /* Hide everything except the feature label column */
  .pricing-row span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  /* The three plan value columns become badges on the same row */
  .pricing-row div,
  .pricing-row strong {
    display: none;
  }

  /* Price row (first pricing-row) — make it the big heading */
  .pricing-row:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0;
    border: none;
    background: none;
    margin-bottom: 4px;
  }

  .pricing-row:first-of-type span { display: none; }

  .pricing-row:first-of-type strong {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px 16px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    text-align: left;
    min-height: 90px;
  }

  /* Plan name labels via counter / nth */
  .pricing-row:first-of-type strong:nth-child(2)::before { content: "One-Time Help"; display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .pricing-row:first-of-type strong:nth-child(3)::before { content: "Business Support"; display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
  .pricing-row:first-of-type strong:nth-child(4)::before { content: "Digital Partner"; display: block; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

  .pricing-row:first-of-type strong:nth-child(3) {
    background: rgba(216, 180, 106, 0.07);
    border-color: rgba(216, 180, 106, 0.22);
  }

  /* All other rows: feature label + 3 value columns */
  .pricing-row:not(:first-of-type) {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 46px;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    background: none !important;
    border-radius: 0;
  }

  .pricing-row:not(:first-of-type) span {
    padding: 12px 0;
    border-bottom: none;
    font-size: 13px;
    color: var(--text-soft);
  }

  .pricing-row:not(:first-of-type) div {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    text-align: center;
    padding: 12px 4px;
  }

  .pricing-row:not(:first-of-type) strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 12px 4px;
  }

  .featured-row { background: rgba(216, 180, 106, 0.04) !important; }

  /* Footer: single col links */
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ── Phones (640px and below) ── */
@media (max-width: 640px) {
  /* Brand wordmark */
  .brand-main { font-size: 20px; }
  .brand-sub  { font-size: 9px; letter-spacing: 0.24em; }

  /* Hero */
  .hero { padding: 110px 5% 68px; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); line-height: 0.93; }
  .hero p  { font-size: 15px; line-height: 1.7; margin-top: 20px; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 28px;
  }
  .btn { width: 100%; justify-content: center; }

  /* Hero */
.hero-copy{
    max-width:100%;
    text-align:center;
}

.hero h1{
    max-width:340px;
    margin:0 auto;
    text-align:center;
}

.hero p{
    max-width:340px;
    margin:20px auto 0;
    text-align:center;
}

.hero-actions{
    justify-content:center;
}

  /* Sections */
  .intro,
  .section,
  .services,
  .featured-build { padding-top: 72px; padding-bottom: 72px; }

  .intro h2,
  .section-head h2,
  .featured-copy h2,
  .cta-inner h2 { font-size: clamp(36px, 11vw, 56px); }

  .intro p,
  .section-head p,
  .featured-copy p,
  .cta-inner p { font-size: 15px; }

  /* Section head margin */
  .section-head {
    margin-bottom: 40px; 
    text-align: left;
}

  .section-head h2 {
    text-wrap: balance;
    line-height: 0.95;
    max-width: 340px;
  }

  .section-head .eyebrow {
    margin-left: 0;
  }

  /* Steps: single column */
  .steps { grid-template-columns: 1fr; }
  .step {
    min-height: auto;
    padding: 30px 0;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 24px; font-size: 28px; }

  /* Capabilities */
  .capability-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }
  .capability-number { padding-top: 0; }
  .capability-item h3 { font-size: clamp(26px, 8vw, 36px); }
  .capability-item::before { display: none; }

  /* Pricing — inherit mobile layout from 760px block */
  .pricing-row:not(:first-of-type) span { font-size: 12px; }
  .pricing-row:not(:first-of-type) div,
  .pricing-row:not(:first-of-type) strong { font-size: 12px; }
  .pricing-row:first-of-type strong { font-size: 19px; min-height: 80px; padding: 14px 12px; }

  /* CTA */
  .cta-final { padding-top: 80px; padding-bottom: 80px; }
  .btn-xl { min-height: 54px; padding: 0 24px; font-size: 15px; margin-top: 28px; }

  /* Featured */
  .featured-visual { padding: 10px; }
  .primecare-card  { padding: 14px; }

  /* Footer */
  .footer-links { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand p { font-size: 14px; }
  .footer { padding: 60px 0 36px; }

  /* Solution panel typography */
  .solution-panel h3,
  .solution-card  h3 { font-size: clamp(22px, 6vw, 30px); }
  .solution-panel p,
  .solution-card  p  { font-size: 14.5px; }
}

/* ── Small phones (480px and below) ── */
@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(36px, 13vw, 56px); }

  .intro h2,
  .section-head h2,
  .featured-copy h2,
  .cta-inner h2 { font-size: clamp(34px, 12vw, 52px); }

  .navbar {
    padding: 0 14px;
    min-height: 54px;
  }
  .nav-links { top: 54px; padding: 4px 12px 12px; }
  .nav-links a { height: 46px; font-size: 12px; }

  .footer-links { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { font-size: 12px; }

  /* Eyebrow */
  .eyebrow { font-size: 11px; letter-spacing: 0.13em; }

  /* Pricing */
  .pricing-table { gap: 12px; }
  .pricing-row { padding: 18px; border-radius: 18px; }

  section[id] {
    scroll-margin-top: 14px;
  }
}

/* ── Very small phones (390px and below) ── */
@media (max-width: 390px) {
  .hero { padding-top: 96px; }
  .hero h1 { font-size: clamp(34px, 14vw, 50px); }

  .brand-main { font-size: 20px; }
  .brand-sub  { margin-left: 2px; font-size: 8px; }

  .hero-actions .btn { padding: 0 18px; min-height: 50px; font-size: 14px; }

  .work-sticky h2,
  .work-head h2    { font-size: clamp(34px, 12vw, 52px); }
  .services-left h2 { font-size: clamp(34px, 12vw, 52px); }

  .step h3 { font-size: 24px; }
  .capability-item h3 { font-size: clamp(22px, 9vw, 32px); }

  .solution-panel,
  .solution-card { padding: 18px; border-radius: 20px; }

  /* Pricing grid is the densest layout on the page — give it a touch more room */
  .pricing-row:not(:first-of-type) {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
  .pricing-row:not(:first-of-type) span,
  .pricing-row:not(:first-of-type) div,
  .pricing-row:not(:first-of-type) strong {
    font-size: 11px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-motion::before,
  .hero-motion span { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── Redesign overrides ── */
@media (max-width: 1200px) {
  .hero {
    padding: 140px 6% 100px;
    background-position: 64% center;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 92vh;
    min-height: 92dvh;
    padding: 122px 6% 78px;
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.74) 0%, rgba(5, 7, 11, 0.94) 58%, #06070b 100%),
      url("images/hero-primeridge-tech.png") 68% center / cover no-repeat,
      #06070b;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 74px);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
    min-height: 88dvh;
    padding: 106px 5% 66px;
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.82) 0%, rgba(5, 7, 11, 0.96) 64%, #06070b 100%),
      url("images/hero-primeridge-tech.png") 71% center / cover no-repeat,
      #06070b;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 60px);
    line-height: 0.98;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero {
    background-position: 75% center;
  }
}
