/* ==============================
   DAN DAN THE WIFI MAN – style.css
   ============================== */

/* --- TOKENS --- */
:root {
  --navy:    #0d1b2a;
  --blue:    #1a56db;
  --sky:     #38bdf8;
  --amber:   #f59e0b;
  --white:   #ffffff;
  --off:     #f5f7fa;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --text:    #1e293b;

  --font-display: 'Righteous', cursive;
  --font-body:    'DM Sans', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.18);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- NAV --- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--sky);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(56,189,248,0.15);
  color: var(--sky);
  text-decoration: none;
}
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- SECTION --- */
.section {
  padding: 5rem 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}
.btn-primary:hover { background: #1648c0; box-shadow: 0 6px 22px rgba(26,86,219,0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-white:hover { background: var(--off); }
.btn-full { width: 100%; text-align: center; }

/* --- HERO --- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(56,189,248,0.18);
  animation: pulse 3.5s ease-out infinite;
}
.r1 { width: 200px; height: 200px; animation-delay: 0s; }
.r2 { width: 380px; height: 380px; animation-delay: 0.6s; }
.r3 { width: 580px; height: 580px; animation-delay: 1.2s; }
.r4 { width: 800px; height: 800px; animation-delay: 1.8s; }
@keyframes pulse {
  0%   { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 0;   transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}
.hero-title .accent { color: var(--sky); }
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.12rem;
  margin-bottom: 2.2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Badge */
.hero-badge {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 50%;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  z-index: 3;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- AREA STRIP --- */
.area-strip {
  background: var(--blue);
  padding: 0.75rem 1.5rem;
}
.area-strip-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
}
.area-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* --- WHY / CARDS --- */
.why { background: var(--off); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* --- SERVICES SNAP --- */
.service-list { display: flex; flex-direction: column; gap: 1.6rem; }
.service-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.service-dot {
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.15);
}
.service-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.service-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* --- CTA STRIP --- */
.cta-strip {
  background: var(--navy);
  padding: 4rem 1.5rem;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 0.3rem;
}
.cta-inner p { color: rgba(255,255,255,0.65); }

/* --- FOOTER --- */
.footer {
  background: #060f1a;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.footer-logo {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.footer-tagline { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 0 0.2rem; }
.footer-links a:hover { color: var(--sky); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  background: var(--navy);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.page-hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto;
}

/* --- SERVICE BLOCKS (services page) --- */
.service-block {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.service-block:last-child { border-bottom: none; }
.service-block-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding-top: 0.2rem;
}
.service-block-body h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}
.service-block-body p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.service-features {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-features li::before { content: "✓  "; color: var(--blue); font-weight: 700; }
.service-features li { color: var(--text); font-size: 0.95rem; }

/* --- CONTACT PAGE --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-group .optional { font-weight: 400; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-success {
  display: none;
  background: #ecfdf5;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-weight: 500;
  border: 1px solid #6ee7b7;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
  background: var(--off);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--border);
}
.info-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon { font-size: 1.4rem; line-height: 1.3; flex-shrink: 0; }
.info-item strong { display: block; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.1rem; }
.info-item a, .info-item span { color: var(--text); font-weight: 500; }
.info-card-alt { background: var(--navy); border-color: transparent; }
.info-card-alt h3 { color: var(--white); }
.info-list { display: flex; flex-direction: column; gap: 0.65rem; }
.info-list li { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* --- SIMPLE CONTACT --- */
.contact-simple {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  text-decoration: none;
}
.contact-card-icon { font-size: 2rem; flex-shrink: 0; }
.contact-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-card span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-simple  { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.9rem; display: block; }
  .hero-badge { display: none; }
  .service-block { flex-direction: column; gap: 1rem; }
  .service-block-icon { width: auto; }
  .cta-inner { flex-direction: column; text-align: center; }
}
