/* =========================================================
   A Tech Guy — atechguy.io
   Static rebuild. Brand palette pulled from the original site.
   ========================================================= */

:root {
  --navy: #003960;
  --navy-2: #012a48;
  --green: #1ffc8f;
  --coral: #ff6b6b;
  --coral-dark: #f65252;
  --yellow: #ffcd57;
  --ink: #222222;
  --muted: #5b6b78;
  --lavender: #f9f6fe;
  --line: #e7e9ee;
  --white: #ffffff;

  --maxw: 1180px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0, 30, 55, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 30, 55, 0.12);
  --shadow-lg: 0 24px 70px rgba(0, 30, 55, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover {
  color: var(--coral-dark);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight {
  padding: 72px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 107, 107, 0.36);
}
.btn--primary:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 107, 107, 0.44);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}
.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover {
  background: var(--navy-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--lg {
  padding: 18px 42px;
  font-size: 1.08rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    padding 0.3s var(--ease);
  padding: 18px 0;
}
.site-header.is-solid {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(0, 20, 40, 0.28);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: #fff;
  opacity: 0.9;
}
.brand img {
  width: 44px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0.92;
}
.nav a.nav-link:hover,
.nav a.nav-link[aria-current="page"] {
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}
.nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 150px 0 110px;
  background: #012235;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 45, 76, 0.92) 0%,
    rgba(0, 57, 96, 0.82) 40%,
    rgba(4, 74, 74, 0.78) 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin: 0 auto 22px;
  max-width: 14ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 640px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.92);
}
.hero .lead strong {
  color: var(--green);
  font-weight: 700;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Services ---------- */
.services {
  background: #f4efe7 url("../img/services-bg.jpg") center/cover no-repeat;
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 244, 0.86);
}
.services .container {
  position: relative;
  z-index: 1;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 57, 96, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.service-card .ic {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--navy);
  color: var(--green);
}
.service-card:nth-child(2) .ic { background: #06507f; }
.service-card:nth-child(3) .ic { background: #0a4a73; }
.service-card .ic svg {
  width: 28px;
  height: 28px;
}
.service-card h3 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0, 57, 96, 0.15);
}

/* Looking for something different */
.callout {
  margin-top: 40px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 252, 143, 0.28), transparent 70%);
}
.callout h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.callout p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------- Why Us ---------- */
.why {
  position: relative;
  color: #fff;
  background: #04121d;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/why-bg.jpg") center/cover no-repeat;
  opacity: 0.5;
}
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 20, 34, 0.82),
    rgba(0, 40, 66, 0.86)
  );
}
.why .container {
  position: relative;
  z-index: 1;
}
.why .section-head h2 {
  color: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.why-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(6px);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}
.why-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}
.why-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.why-item h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.why-item p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.99rem;
}

/* ---------- Bottom CTA ---------- */
.cta-strip {
  position: relative;
  color: #fff;
  text-align: center;
  background: var(--navy);
  padding: 110px 0;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/cta-bg.jpg") center/cover no-repeat;
  opacity: 0.28;
}
.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 45, 76, 0.9),
    rgba(0, 57, 96, 0.78)
  );
}
.cta-strip .container {
  position: relative;
  z-index: 1;
}
.cta-strip h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.12rem;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--lavender);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.contact-info p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 30px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-list a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}
.contact-list .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 57, 96, 0.1);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
/* Honeypot — hidden from humans, catches bots that fill every field. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 12px 16px;
  display: none;
}
.form-note.is-visible { display: block; }
.form-note.ok {
  background: rgba(31, 252, 143, 0.16);
  color: #0a7a49;
}
.form-note.err {
  background: rgba(255, 107, 107, 0.14);
  color: #c5382f;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 66px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin: 0;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--green);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}
.footer-bottom .heart { color: var(--coral); }

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.2s var(--ease);
  z-index: 900;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover { background: var(--coral-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Sub-page hero (services / contact) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 170px 0 80px;
  background: var(--navy);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.25;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 45, 76, 0.9), rgba(4, 74, 74, 0.8));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.12rem;
}
.breadcrumb {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: var(--green); }

/* Detailed service blocks on services.html */
.svc-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.svc-detail .service-card { padding: 40px 34px; }
.svc-detail .service-card h3 { font-size: 1.35rem; }
.svc-detail .service-card .lead-txt {
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Reveal animation ----------
   Only hidden when JS is active (html.js). Without JS the content shows
   normally, so a script failure can never leave the page blank.          */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    background: var(--navy);
    padding: 100px 24px 40px;
    transform: translateX(105%);
    transition: transform 0.32s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  }
  .nav.is-open { transform: none; }
  .nav a.nav-link { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 12px 0 0; }
  .nav-toggle { display: flex; z-index: 1200; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 12, 22, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 999;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .callout { padding: 34px 24px; }
  .contact-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 38px; }
}
