/* ==================== |
| - - - style.css - - - |
| ==================== */

/* ======================= */
/* Color Scheme & Tokens   */
/* ======================= */

:root {
  /* Background & structure */
  --primary: #0B0F14;
  --primary-dark: #090C10;

  /* Text */
  --text-primary: #F4FAFF;
  --text-secondary: #d0e5f1;

  /* Surfaces */
  --secondary: #111821;
  --secondary-dark: #0A1017;

  /* Accents — Glacier Steel */
  --accent: #3C8FC1;        /* base */
  --accent-dark: #2B6B99;   /* hover */

  /* Panels & Cards */
  --panel-bg: rgba(11, 15, 20, 0.9);
  --panel-border: #182129;
  --panel-shadow: 0 10px 28px rgba(0,0,0,.35);

  --card-bg: #0E141B;
  --card-border: #18252E;
  --card-border-hover: #24404B;

  /* Buttons */
  --btn-bg: #141A22;
  --btn-bg-hover: #18222C;
  --btn-border: #2A3540;
  --btn-border-hover: #34414C;
  --btn-fg: var(--text-primary);
  --btn-primary: var(--accent);

  /* Misc */
  --chip-bg: #12151B;
  --chip-border: #1E242C;
  --border-strong: #000000;
  --shadow-soft: 0 6px 18px rgba(0,0,0,.18);
  --shadow-strong: 0 14px 26px rgba(0,0,0,.24);

  /* Process card variant */
  --process-card-bg: #0F141A;
  --process-card-border: #1A2028;
}

/* ========================= */
/* Global Reset & Base       */
/* ========================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }

main { position: relative; overflow: hidden; }

body {
  font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
  background: var(--primary) url('../images/page-background.png') no-repeat center / cover;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.25px;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.0rem, 5vw, 3.0rem); text-align: center; margin-bottom: .75em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); text-align: center; margin-bottom: .6em; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
h4 { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }

p { font-size: 1.125rem; margin-bottom: 1.25em; }

p, li {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover, a:focus { color: var(--text-primary); outline: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  padding: .5rem .75rem;
  background: var(--secondary-dark);
  border: 1px solid var(--btn-border);
  border-radius: .5rem; z-index: 9999;
}

/* ================= */
/* Header & Nav      */
/* ================= */

.site-header {
  position: sticky; top: 0; width: 100%;
  background: var(--primary-dark);
  border-bottom: 5px solid var(--border-strong);
  z-index: 1000;
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: .5rem 1rem;
  font-size: 1.05rem;
}

.nav-logo img { height: 84px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.nav-links a:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text-primary);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }

  .nav-links {
    position: absolute; right: 0; top: 100%;
    background: var(--primary-dark);
    border-left: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    width: min(92vw, 360px);
    padding: .75rem;
    display: none; flex-direction: column; gap: .25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { margin: 0; }
  .nav-links a { padding: .6rem .8rem; display: block; }
  /* Show menu when nav has data-open="true" */
  .nav[data-open="true"] .nav-links {
    display: flex;
  }
}

/* ================ */
/* Hero + Particles */
/* ================ */

.hero {
  position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  min-height: 92vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  overflow: hidden; /* clips particle canvas to hero */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 55% at center,
    rgba(11, 15, 20, 0.55) 0%,
    rgba(11, 15, 20, 0.25) 50%,
    rgba(11, 15, 20, 0.0) 80%
  );
  z-index: 2;
  pointer-events: none;
}

#home-hero { background-image: url('../images/hero.jpg'); }
#services-hero { background-image: url('../images/hero-services.jpg'); }
#pricing-hero { background-image: url('../images/hero-pricing.jpg'); }
#process-hero { background-image: url('../images/hero-process.jpg'); }
#contact-hero { background-image: url('../images/hero-contact.jpg'); }

/* If #particles-js is inside #hero, it stays under content */
#particles-js {
  position: absolute; inset: 0; width: 100%; height: 95%;
  z-index: 1;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 3; text-align: center; padding: 0 1rem; }

.hero-sub { margin: .25rem auto 1rem; max-width: 70ch; color: var(--text-secondary); }

.hero-buttons { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

.trust-line { display: block; margin-top: 1rem; font-size: .95rem; color: var(--text-primary); }
.typed-line { display: inline; font-weight: 600; }

/* ============== */
/* Sections       */
/* ============== */

.section {
  padding: 3.5rem 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.container {
  width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem;
}

/* Panel surface inside each section */
.section > .container {
  position: relative;
  z-index: 3;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--panel-shadow);
  max-width: 1200px;
  margin-inline: auto;
}

.section-lead {
  margin: 0 auto 1.25rem; color: var(--text-secondary);
  max-width: 72ch; text-align: center;
}

/* ============== */
/* Grid & Cards   */
/* ============== */

.grid { display: grid; gap: 1.25rem; }
.grid.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3, .card h4 { margin: 0 0 .4rem; font-weight: 700; text-align: left; }
.card p { margin: 0; color: var(--text-secondary); }

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: var(--card-border-hover);
}

/* Process surface variant (subtle) */
.process-grid .card {
  background: var(--process-card-bg);
  border-color: var(--process-card-border);
}

/* Responsive grid for pricing cards */
.grid.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Optional: if you want tighter rows on large monitors */
@media (min-width: 1280px) {
  .grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
}

/* Card adjustments for pricing */
.pricing-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.25rem 1rem;
}

/* ================= */
/* Lists (theme)     */
/* ================= */

/* Default themed lists (sections & cards) */
.section ul,
.section ol {
  margin: .75rem 0 0;
  padding-inline-start: 1.25rem;   /* readable indent */
}
.section ul li,
.section ol li {
  color: var(--text-secondary);
  line-height: 1.55;
  margin: .35rem 0;
  font-size: 1.05rem;
}

/* Accent markers (keep semantics; works in modern browsers) */
.section ul li::marker { color: var(--accent); font-size: .9em; }
.section ol { list-style: decimal; }
.section ol li::marker { color: var(--accent); font-weight: 700; }

p, li {
  text-wrap: pretty;
}

/* ============== */
/* Buttons        */
/* ============== */

.btn {
  display: inline-block;
  margin: .5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  text-align: center;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

/* Primary CTA */
.btn-primary {
  background: var(--btn-primary);
  border-color: var(--accent-dark);
  color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Secondary CTA — solid (no transparency) */
.btn-secondary {
  background: var(--btn-bg);
  border: 1px solid var(--accent);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--text-primary);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.cta-inline { text-align: center; margin-top: 1.1rem; }

.pricing-notes {
  margin-top: 1.25rem;
}

.pricing-note {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ============== */
/* Footer         */
/* ============== */

.site-footer {
  text-align: center; padding: 20px 0;
  background: var(--primary-dark); color: var(--text-primary);
  border-top: 5px solid var(--border-strong);
  position: relative; /* enables z-index if needed */
  margin-top: auto;
  z-index: 1000;
}
.site-footer p { font-size: .85rem; margin: 4px 0; }

/* ============== */
/* Forms (contact)*/
/* ============== */


.contact-content {
  background: var(--secondary);
  padding: 30px; border-radius: 10px;
  box-shadow: 4px 6px 10px rgba(0,0,0,.3);
  width: 80vw; max-width: 600px; margin: 20px auto;
}

form { display: flex; flex-direction: column; align-items: stretch; }
label { margin-top: 10px; color: var(--text-primary); font-size: 1.05rem; }

input, textarea {
  padding: 10px; margin-top: 5px; width: 100%;
  border: 2px solid var(--secondary-dark);
  background: var(--text-primary); color: var(--primary);
  border-radius: 5px; font-size: 1rem;
}

#responseMessage.error {
    color: #d9534f; /* red */
    font-weight: 600;
}

#responseMessage.success {
    color: #3c763d; /* green */
    font-weight: 600;
}

button[type="submit"] {
  background: var(--accent-dark); color: #DDD;
  padding: 12px 24px; border: none; border-radius: 5px;
  margin-top: 20px; cursor: pointer; font-size: 1.05rem;
  transition: .25s ease;
}
button[type="submit"]:hover {
  background: var(--accent);
  box-shadow: 0 0 12px 4px color-mix(in srgb, var(--accent) 40%, transparent);
}


/* ===== GRID: 3 Columns ===== */
.grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem; /* matches your card spacing */
}

/* Tablet breakpoint: 2 columns */
@media (max-width: 900px) {
    .grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .grid.grid-3 {
        grid-template-columns: 1fr;
    }
}



/* ========================= */
/* Motion Preferences        */
/* ========================= */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; box-shadow: none; }
}


/* ============== */
/* Error Pages    */
/* ============== */
.error-page {
  min-height: 100dvh;
  background: var(--primary) url('../images/page-background.png') no-repeat center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
  padding: 2rem;
}
.error-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: var(--panel-shadow);
  max-width: 600px;
}
.error-container h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 1rem;
  color: var(--accent);
}
.error-container p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}