/* ==========================================================================
   My Neighborhood Tech — Static Site Styles
   Compatible with any cPanel / shared hosting (cheapname.com, etc.)
   Mobile-first, no dependencies
   ========================================================================== */

:root {
  --navy-950: #040d1c;
  --navy-900: #07172f;
  --navy-850: #0a1f3e;
  --navy-800: #0d2a52;
  --ink-900: #101d33;
  --ink-800: #1c2c47;
  --ink-700: #354765;
  --ink-600: #566984;
  --paper: #f4f7fb;
  --paper-blue: #edf5ff;
  --white: #ffffff;
  --line: #dce4ef;
  --line-dark: rgba(255, 255, 255, 0.14);
  --blue: #0a62d7;
  --blue-dark: #074ca7;
  --blue-bright: #1d7af2;
  --cyan: #52d8f2;
  --cyan-soft: #dff9ff;
  --success: #15754c;
  --shadow-sm: 0 8px 24px rgba(7, 23, 47, 0.08);
  --shadow-md: 0 18px 50px rgba(7, 23, 47, 0.14);
  --shadow-lg: 0 30px 80px rgba(4, 13, 28, 0.24);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --container: 76rem;
  --header-height: 4.75rem;
  --transition: 180ms ease;
}

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

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

body {
  margin: 0;
  min-width: 20rem;
  background: var(--white);
  color: var(--ink-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4, p, ul, ol, figure {
  margin-top: 0;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

p {
  margin-bottom: 1.1rem;
}

::selection {
  background: var(--cyan);
  color: var(--navy-950);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 48rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
  background:
    radial-gradient(circle at 12% 18%, rgba(82, 216, 242, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 78%, rgba(29, 122, 242, 0.12), transparent 26rem),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--tint {
  background: var(--paper);
}

/* ===== Top bar & Header ===== */
.top-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

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

.top-bar a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.top-bar a:hover {
  color: var(--white);
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-900);
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  padding: 0.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-card.portrait-fallback .portrait-img,
.portrait-card:not(.portrait-fallback) .portrait-fallback-msg {
  display: none;
}

.portrait-card.portrait-fallback .portrait-fallback-msg {
  display: grid;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink-800);
  margin: 5px 0;
  transition: var(--transition);
}

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

.primary-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--paper-blue);
}

.primary-nav .button {
  margin-left: 0.5rem;
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  color: var(--white);
  background: var(--blue);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: translate var(--transition), background var(--transition), box-shadow var(--transition);
}

.button:hover {
  translate: 0 -2px;
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(10, 98, 215, 0.25);
}

.button--large {
  min-height: 3.15rem;
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.button--light {
  background: var(--white);
  color: var(--navy-900);
}

.button--light:hover {
  background: var(--cyan-soft);
  color: var(--navy-900);
}

.button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7.5rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(82, 216, 242, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 70%, rgba(29, 122, 242, 0.15), transparent 30rem),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82, 216, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 216, 242, 0.04) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

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

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

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

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2.2;
}

.hero-visual {
  position: relative;
  justify-self: center;
}

.portrait-card {
  position: relative;
  width: min(100%, 22rem);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(82, 216, 242, 0.15),
    0 0 60px rgba(29, 122, 242, 0.25),
    var(--shadow-lg);
  background: var(--navy-850);
}

.portrait-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #0d2a52, #07172f);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.portrait-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(4, 13, 28, 0.92));
  color: white;
  font-size: 0.85rem;
}

.portrait-caption strong {
  display: block;
  font-size: 1.05rem;
}

.float-card {
  position: absolute;
  background: rgba(7, 23, 47, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}

.float-card--top {
  top: 1.25rem;
  left: -1.5rem;
}

.float-card--bottom {
  bottom: 4.5rem;
  right: -1.25rem;
}

.float-card small {
  display: block;
  opacity: 0.7;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.float-card strong {
  font-weight: 700;
}

/* ===== Common components ===== */
.section-header {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-header p {
  color: var(--ink-600);
  font-size: 1.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: translate var(--transition), box-shadow var(--transition);
}

.card:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-md);
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
}

.card--dark h3 {
  color: var(--white);
}

.card-number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--ink-600);
  font-size: 0.95rem;
}

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

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.area-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.cta-band {
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3.5rem 2rem;
  font-size: 0.95rem;
}

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

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ===== Page-specific ===== */
.page-hero {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  max-width: 38rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

/* Form styles */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--ink-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 98, 215, 0.15);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-600);
  margin-top: 0.5rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.step-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-950);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.15rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 18rem;
    margin-inline: auto;
  }

  .float-card--top {
    left: 0.5rem;
  }

  .float-card--bottom {
    right: 0.5rem;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: var(--shadow-md);
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 0.85rem 1rem;
  }

  .primary-nav .button {
    margin: 0.5rem 0 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-proof {
    flex-direction: column;
    gap: 0.6rem;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}
