/* ==========================================================
   iTechNest — stylesheet
   Palette: pine green (trust/calm), warm paper (approachable),
   amber accent (CTA/warmth). Signal-arc motif nods to Wi-Fi work.
   ========================================================== */

:root {
  --paper: #FAF6EF;
  --paper-dim: #F1EBDD;
  --ink: #1F2B26;
  --ink-soft: #4A5750;
  --pine: #2F5D50;
  --pine-dark: #1E3F36;
  --amber: #E8A33D;
  --amber-dark: #C8842A;
  --line: #DCD3BE;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(31, 43, 38, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--pine-dark);
  line-height: 1.15;
}

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

/* ---------- Signal-arc signature motif ---------- */
.section-title {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 14px;
  background:
    radial-gradient(circle at 23px 14px, transparent 5px, var(--amber) 6px, var(--amber) 7px, transparent 8px),
    radial-gradient(circle at 23px 14px, transparent 10px, var(--pine) 11px, var(--pine) 12px, transparent 13px);
  clip-path: inset(0 0 50% 0);
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6%;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-icon {
  width: 60px;
  height: auto;
}

.logo h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pine-dark);
}

.logo small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.menu {
  display: flex;
  gap: 2.2rem;
}

.menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.menu a:hover {
  color: var(--pine-dark);
}

.menu a:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
header {
  padding: 6rem 6% 5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 93, 80, 0.08), transparent 55%),
    var(--paper);
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

header h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

header p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--pine-dark);
  box-shadow: 0 6px 18px rgba(232, 163, 61, 0.35);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--pine-dark);
  border: 1.5px solid var(--pine);
}

.btn-secondary:hover {
  background: var(--pine);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Trust bar ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.4rem 6%;
  background: var(--pine-dark);
}

.trust-item {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.92;
}

/* ---------- Services ---------- */
#services {
  padding: 6rem 6%;
  max-width: 1140px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--pine);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pine);
  transition: color 0.2s ease, transform 0.2s ease;
}

.card:hover .card-link {
  color: var(--amber-dark);
  transform: translateX(3px);
}

/* ---------- Why choose us ---------- */
.why {
  background: var(--paper-dim);
  padding: 5.5rem 6%;
}

.why-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.why-grid div {
  background: var(--white);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-weight: 500;
  font-size: 0.98rem;
  border-left: 3px solid var(--amber);
}

/* ---------- Pricing ---------- */
#pricing {
  padding: 6rem 6%;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.price-card {
  text-align: center;
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  transition: transform 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card h3 {
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber);
}

/* ---------- About ---------- */
#about {
  padding: 6rem 6%;
  background: var(--paper-dim);
}

.about-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
#contact {
  padding: 6rem 6%;
  text-align: center;
}

.contact-box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.8rem 2rem;
  box-shadow: var(--shadow);
}

.contact-box p {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact-box a {
  color: var(--pine);
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-box a:hover {
  color: var(--pine-dark);
  border-bottom-color: var(--amber);
}

.contact-box .btn-primary {
  margin-top: 0.8rem;
}

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.contact-form-intro {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.contact-form-box form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-box label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.6rem;
}

.contact-form-box input,
.contact-form-box textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  outline: none;
  border-color: var(--pine);
}

.contact-form-box button {
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.form-status {
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.form-status-success {
  color: var(--pine);
  font-weight: 600;
}

.form-status-error {
  color: #B4432F;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.4rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.social-links a:hover {
  color: var(--pine);
}

/* ---------- Footer ---------- */
footer {
  background: var(--pine-dark);
  color: var(--paper);
  text-align: center;
  padding: 2.4rem 6%;
  font-size: 0.88rem;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 0.6rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.75;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 1.4rem;
}

.footer-social a {
  color: var(--paper);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.footer-social a:hover {
  opacity: 1;
  border-bottom-color: var(--amber);
}

footer p {
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 5%;
  }

  .menu {
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  header {
    padding: 4rem 6% 3.5rem;
  }

  .trust {
    gap: 1.2rem 2rem;
  }

  .service-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .service-illustration {
    order: -1;
    width: 200px;
  }
}

/* ==========================================================
   Individual service pages
   ========================================================== */

.breadcrumb {
  display: block;
  padding: 1.2rem 6% 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.breadcrumb:hover {
  color: var(--pine);
}

.service-hero {
  padding: 3rem 6% 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 93, 80, 0.08), transparent 55%),
    var(--paper);
}

.service-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.service-hero-text {
  flex: 1.2;
}

.service-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.9rem;
}

.service-hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.service-hero-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 1.8rem;
}

.service-illustration {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
}

/* Coverage section */
.coverage {
  padding: 5rem 6%;
  max-width: 900px;
  margin: 0 auto;
}

.coverage h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 2rem;
  text-align: center;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2rem;
}

.coverage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-size: 0.96rem;
  color: var(--ink);
}

.coverage-item .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* Service pricing */
.service-pricing {
  padding: 5rem 6%;
  background: var(--paper-dim);
  text-align: center;
}

.service-pricing h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.service-pricing .pricing-note {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2.2rem;
  font-size: 0.98rem;
}

.service-price-card {
  max-width: 320px;
  margin: 0 auto;
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
}

.service-price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.service-price-card .price-label {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.4rem;
}

.price-fineprint {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* CTA band */
.service-cta {
  padding: 5rem 6%;
  text-align: center;
}

.service-cta h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.8rem;
}

.service-cta p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 1.8rem;
}

.service-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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