/* =========================================================
  Resurds Web Services - Stylesheet
  Theme: "Noir" - affordable, well-built, well-hosted.
  ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --paper: #0b0f14;
  --paper-dim: #111821;
  --ink: #f4f7fb;
  --ink-soft: #aab7c7;
  --blue: #8dbbff;
  --blue-deep: #07111d;
  --blue-deeper: #050b13;
  --line: #2a3b52;
  --line-soft: rgba(141, 187, 255, 0.14);
  --coral: #f08a5d;
  --coral-dark: #db7447;
  --paper-on-dark: #f4f7fb;
  --green: #5fc98a;

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Layout */
  --max-width: 1140px;
  --radius: 6px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

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

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-dark {
  background: var(--blue-deep);
  color: var(--paper-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--paper-on-dark);
}
.section-dark p {
  color: #b7c4da;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--coral);
  color: #111821;
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 96, 47, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(44, 90, 160, 0.05);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(244, 247, 251, 0.28);
  color: var(--paper-on-dark);
}

.btn-ghost-light:hover {
  border-color: var(--paper-on-dark);
  background: rgba(244, 247, 251, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-mark span {
  color: var(--coral);
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: none;
}

@media (min-width: 560px) {
  .brand-suffix {
    display: inline;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--coral);
}

.nav-cta {
  display: none;
}
@media (min-width: 860px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 859px) {
  .main-nav ul,
  .main-nav .nav-cta-mobile-hide {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0f151d;
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    max-height: 420px;
  }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 8px;
  }
  .main-nav ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav .nav-cta {
    display: flex;
    margin: 16px 24px 24px;
  }
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero / Blueprint ---------- */
.hero {
  position: relative;
  padding: 72px 0 60px;
  background-image:
    radial-gradient(
      circle at top left,
      rgba(141, 187, 255, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at top right,
      rgba(240, 138, 93, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(13, 19, 27, 0.96), rgba(7, 11, 19, 1));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(11, 15, 20, 0) 0%,
    var(--paper) 82%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 480px;
  margin: 18px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.blueprint-diagram {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #08101a, #050b13);
  color: var(--paper-on-dark);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(141, 187, 255, 0.12),
      transparent 28%
    ),
    radial-gradient(circle at 80% 0%, rgba(240, 138, 93, 0.1), transparent 24%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header .eyebrow {
  color: var(--line);
}
.page-header .eyebrow::before {
  background: var(--line);
}
.page-header h1 {
  color: var(--paper-on-dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.page-header p {
  color: #b7c4da;
  max-width: 560px;
  margin-top: 14px;
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 720px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 28px 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #0f151d;
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.process-step h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}
.process-step p {
  font-size: 0.92rem;
}

.process-connector {
  display: none;
}

@media (min-width: 720px) {
  .process-grid .process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 24px;
    right: -26px;
    color: var(--line);
    font-size: 1.1rem;
  }
}

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

@media (min-width: 700px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #0f151d;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
}

.card h3 {
  margin: 10px 0 10px;
}
.card p {
  font-size: 0.95rem;
}

.card ul.feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Pricing ---------- */
.pricing-toggle-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: -12px;
  margin-bottom: 36px;
}

.pricing-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .pricing-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card {
  background: #0f151d;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(141, 187, 255, 0.1);
}

.price-card.featured::before {
  content: "MOST PICKED";
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--blue);
  color: #0b0f14;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 0 0 4px 4px;
}

.price-card h3 {
  font-size: 1.15rem;
}
.price-card .price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 4px;
}

.price-amount sup {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-card .price-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.price-card .feature-list {
  flex-grow: 1;
  margin-bottom: 24px;
}

/* ---------- Dimension label (blueprint motif used sparingly) ---------- */
.dim-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Testimonial / quote ---------- */
.quote-block {
  border-left: 3px solid var(--coral);
  padding-left: 24px;
  margin-top: 40px;
  max-width: 640px;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paper-on-dark);
  font-weight: 500;
}

.quote-block cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: normal;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 {
  margin-bottom: 16px;
}
.cta-band p {
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue);
  flex-shrink: 0;
  width: 28px;
}

.value-item h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.value-item p {
  font-size: 0.92rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 18px;
  }
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius);
  background: #111821;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  font-size: 0.8rem;
  color: var(--coral-dark);
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--coral);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(63, 143, 95, 0.1);
  color: var(--green);
  border: 1px solid rgba(63, 143, 95, 0.3);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.contact-info-item .dim-label {
  display: block;
  margin-bottom: 4px;
}
.contact-info-item a,
.contact-info-item span {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050b13;
  color: #aab7c7;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .brand-mark {
  color: var(--paper-on-dark);
}
.footer-brand p {
  margin-top: 12px;
  max-width: 300px;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #7e8ea8;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.center-col {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* --- Navbar Button Fix --- */
.site-header .btn.btn-primary.nav-cta {
  /* Fix the text colour for better contrast (dark navy/black) */
  color: #0c121c !important;

  /* Remove the stray underline */
  text-decoration: none !important;
  border-bottom: none !important;

  /* Ensure the background stays your brand orange */
  background-color: #f08a5d;
}

/* Add a smooth hover effect so the underline doesn't return */
.site-header .btn.btn-primary.nav-cta:hover {
  background-color: #d9784e; /* Slightly darker orange */
  text-decoration: none !important;
  border-bottom: none !important;
  color: #0c121c !important;
}
