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

:root {
  --dark-bg: #020617;
  --dark-bg-alt: #0f172a;
  --dark-surface: #1e293b;
  --accent-primary: #38bdf8;
  --accent-secondary: #0ea5e9;
  --accent-gold: #fbbf24;
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #94a3b8;
  --success: #22c55e;
}

body {
  font-family: 'Alice', system-ui, -apple-system, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   Header & Navigation
───────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(2, 6, 23, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─────────────────────────────────────────
   Logo — consolidated (shimmer + layout)
───────────────────────────────────────── */

/* "RJB GROUP / Homepage" outer text — white base with blue shimmer sweep */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 1001;

  color: transparent;
  background: linear-gradient(90deg,
      #f9fafb 0%,
      #f9fafb 35%,
      #7dd3fc 45%,
      #38bdf8 50%,
      #7dd3fc 55%,
      #f9fafb 65%,
      #f9fafb 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: logo-shimmer 4s infinite linear;
}

.logo:hover {
  transform: translateY(-2px);
}

/* "RJB" span — blue base with lighter blue/white sweep */
.logo span {
  color: transparent;
  background: linear-gradient(90deg,
      #38bdf8 0%,
      #38bdf8 35%,
      #bae6fd 45%,
      #ffffff 50%,
      #bae6fd 55%,
      #38bdf8 65%,
      #38bdf8 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: logo-shimmer 8s infinite linear;
}

@keyframes logo-shimmer {
  0% {
    background-position: 150% 0;
  }

  100% {
    background-position: -150% 0;
  }
}

/* ─────────────────────────────────────────
   Mobile Menu Toggle
───────────────────────────────────────── */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ─────────────────────────────────────────
   Nav Links
───────────────────────────────────────── */

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────
   CTA Buttons — base + modifiers
───────────────────────────────────────── */

/* Shared base for all .cta-button variants */
.cta-button {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Modifier: submit button inside a form */
.cta-button--submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  width: 50%;
  display: block;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   Hero Section
───────────────────────────────────────── */

.hero {
  margin-top: 80px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
  overflow: hidden;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  animation: fadeInUp 0.8s ease;
}

.hero-text .accent {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.3s backwards;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-image {
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-primary);
  border-radius: 20px;
  opacity: 0.3;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.trust-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.trust-badge-stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.trust-badge-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   CTA Section
───────────────────────────────────────── */

.cta-section {
  padding: 6rem 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 70%),
    var(--dark-bg);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.cta-button-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  font-size: 1.1rem;
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.cta-button-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-primary);
  font-size: 1.1rem;
}

.cta-button-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   Message / Quote Form
───────────────────────────────────────── */

.quote-form {
  max-width: 800px;
  margin: 3rem auto 0;
  background: var(--dark-surface);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* form-group margin only applies outside of form-grid to avoid doubled spacing */
.form-group {
  margin-bottom: 1.5rem;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--dark-bg);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */

footer {
  background: var(--dark-bg-alt);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-section {
  text-align: left;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-primary);
}

.footer-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  text-align: left;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  text-align: left;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p:first-child {
  grid-column: 2;
  text-align: center;
  margin: 0;
}

.footer-last-updated {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #a0a0a0;
  white-space: nowrap;
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    background-color: #3b82f6;
  }

  50% {
    box-shadow: 0 0 0 7px rgba(59, 130, 246, 0);
    background-color: #60a5fa;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    background-color: #3b82f6;
  }
}

/* Footer: gold colour for Roy Hagland credit link */
.footer-bottom a.footer-credit {
  color: #d4a017;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a.footer-credit:hover {
  text-decoration: underline;
}

/* Footer logo: blue RJB span to match nav */
.footer-logo span {
  color: #38bdf8;
}

.footer-credit-rjb {
  color: #38bdf8;
}

/* ─────────────────────────────────────────
   Services Section
───────────────────────────────────────── */

.services {
  padding: 6rem 2rem;
  background: var(--dark-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--dark-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: left;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.service-features li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  text-align: left;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.service-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
}

/* ─────────────────────────────────────────
   Why Choose Us Section
───────────────────────────────────────── */

.why-choose {
  padding: 6rem 2rem;
  background: var(--dark-bg);
}

.why-choose-content {
  max-width: 1400px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--dark-surface);
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.feature h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Testimonials Section
───────────────────────────────────────── */

.testimonials {
  padding: 6rem 2rem;
  background: var(--dark-bg-alt);
}

.testimonials-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--dark-surface);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.testimonial:hover::before {
  transform: scaleX(1);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}