
:root {
  --bg-dark: #020617;
  --bg-card: #020823;
  --bg-light: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.08);
  --accent-strong: #0ea5e9;
  --accent-secondary: #6366f1;
  --border-subtle: rgba(148,163,184,0.4);
  --text-main: #f3f4f6;
  --text-muted: #d1d5db;
  --radius-xl: 18px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.9);
  --nav-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: radial-gradient(circle at top left, #020617 0, #020617 50%, #000 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

main {
  padding-top: calc(var(--nav-height) + 2.5rem);
}

/* Top Ribbon */

.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(37,99,235,0.96), rgba(8,47,73,0.96));
  border-bottom: 1px solid var(--border-subtle);
}

.top-ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.top-ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top-ribbon-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,0.35);
}

.top-ribbon-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-ribbon-cta a {
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.92;
}

.top-ribbon-cta a:hover {
  opacity: 1;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 27px;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.7);
}

.brand-logo img {
  max-width: 130%;
  max-height: 130%;
}

.brand-text h1 {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-text h1 span.highlight {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Nav */

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.86rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a:hover {
  color: #f9fafb;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #38bdf8, #6366f1);
  transition: width 0.18s ease-out;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */

.btn,
button,
input[type="submit"] {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out, opacity 0.1s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37,99,235,0.7);
}

.btn-ghost {
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.7);
}

.btn-ghost:hover {
  background: rgba(15,23,42,1);
}

.btn-outline-light {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.8);
}

.btn-outline-light:hover {
  background: rgba(15,23,42,0.95);
}

.btn-call {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 10px 30px rgba(22,163,74,0.7);
}

.btn-call:hover {
  background: #16a34a;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.96);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-open .nav-links {
  position: absolute;
  top: calc(var(--nav-height) + 32px);
  right: 1.5rem;
  flex-direction: column;
  background: #020617;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow-soft);
  z-index: 25;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.8fr);
  gap: 2rem;
  margin-top: 2.4rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
}

.hero-title {
  font-size: clamp(2.1rem, 2.7vw, 2.9rem);
  margin: 0.95rem 0 0.6rem;
}

.hero-title span.accent {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta-row small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-pill-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.78rem;
}

.hero-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  color: var(--text-muted);
}

/* Hero Visual */

.hero-visual {
  border-radius: 1.6rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.96));
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.hero-visual-inner {
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
  background: #020617;
}

.hero-visual-inner img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.hero-overlay-card {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(to right, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
  border-radius: 0.95rem;
  padding: 0.7rem 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid rgba(148,163,184,0.5);
}

.hero-overlay-card .metric {
  font-size: 0.82rem;
}

.hero-overlay-card .metric span.label {
  display: block;
  font-size: 0.72rem;
  color: #cbd5f5;
}

.hero-overlay-card .metric strong {
  font-size: 1.08rem;
}

.hero-overlay-card .stacked {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Sections */

.section {
  margin-top: 3.4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3ff;
}

.section-title {
  margin: 0.25rem 0 0;
  font-size: 1.42rem;
}

.section-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Services Grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  box-shadow: 0 22px 55px rgba(15,23,42,0.85);
  position: relative;
  overflow: hidden;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  color: var(--text-muted);
}

.service-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-meta {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.service-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Academy */

.academy-grid {
  display: grid;
  grid-template-columns: 2.1fr 2.2fr;
  gap: 1.6rem;
}

.academy-card,
.academy-outline {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.academy-card h3,
.academy-outline h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.badge {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.academy-outline ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Industries */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.82rem;
}

.industry-pill {
  padding: 0.8rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.97);
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.post-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.post-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.post-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.post-card a {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

/* Contact / CRM */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr;
  gap: 1.6rem;
}

.contact-card,
.contact-info-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.27rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.58rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.98);
  color: var(--text-main);
  font-size: 0.9rem;
}

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

input::placeholder,
textarea::placeholder {
  color: rgba(148,163,184,0.9);
}

/* Floating buttons */

.floating-buttons {
  position: fixed;
  right: 1.25rem;
  bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
}

.floating-buttons a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(15,23,42,0.6);
  background: #22c55e;
  font-size: 0.78rem;
  color: #022c22;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(22,163,74,0.6);
}

.floating-buttons a.secondary {
  background: #0f172a;
  color: #e5e7eb;
  border-color: rgba(148,163,184,0.8);
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid rgba(148,163,184,0.5);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 0.5rem;
  font-size: 0.86rem;
}

.footer-social a:hover {
  color: #e5e7eb;
}

/* Utilities */

.text-accent {
  color: var(--accent);
}

.chip-small {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  font-size: 0.7rem;
}

/* Inner pages */

.page-hero {
  margin-top: 2.6rem;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.45rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.content-main {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.content-main h2,
.content-main h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
}

.content-main p {
  color: var(--text-muted);
}

.content-main ul {
  margin: 0.45rem 0 0.45rem 1.2rem;
  color: var(--text-muted);
}

.content-main li {
  margin-bottom: 0.3rem;
}

.content-sidebar {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(15,23,42,0.98);
  padding: 0.95rem 1.05rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .academy-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    margin-top: 1.8rem;
  }
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .industries-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .top-ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Service hero images */
.service-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.7);
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

/* Home call center image grid */
.home-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.home-image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 16px 35px rgba(15,23,42,0.8);
}
@media (max-width: 900px){
  .home-image-grid {
    grid-template-columns: 1fr;
  }
  .home-image-grid img {
    height: 240px;
  }
}


.blog-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(148,163,184,0.6);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.99), rgba(15,23,42,0.95));
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.8);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-hero-image {
  margin-bottom: 1.75rem;
}
.section-hero-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

/* Advanced footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(148,163,184,0.5);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,1));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-logo-row img {
  width: 40px;
  height: 40px;
}

.footer-brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-brand-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-contact {
  font-size: 0.83rem;
}

.footer-contact a {
  color: #e5e7eb;
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  opacity: 0.85;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
}

.footer-social span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social a {
  color: #e5e7eb;
  text-decoration: none;
}

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

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Global image safety */
.content-main img,
.section-hero-image img {
  max-width: 100%;
  height: auto;
}

/* Mobile readability + layout */
@media (max-width: 900px) {
  body {
    font-size: 17px;
    line-height: 1.75;
  }
  p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
  }
  h1 {
    font-size: 1.6rem;
    line-height: 1.35;
  }
  h2 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-top: 1.6rem;
  }
  h3 {
    font-size: 1.15rem;
    line-height: 1.45;
  }
  .section-description {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .btn,
  .btn-primary,
  .btn-secondary {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }
  .content-main {
    padding: 1.1rem;
  }

  /* Stack key grids on mobile */
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-image-grid,
  .services-grid,
  .industries-grid,
  .blog-grid,
  .testimonials-grid,
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .site-wrapper {
    padding: 0 1rem 3rem;
  }
}

/* Trust badge strip */
.trust-badge {
  border-top: 1px solid rgba(148,163,184,0.4);
  border-bottom: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at center, rgba(15,23,42,0.98), rgba(15,23,42,1));
}

.trust-badge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.8);
  background: rgba(15,23,42,0.95);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.trust-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 520px;
}

@media (max-width: 720px) {
  .trust-badge-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Enhanced mobile experience for owners using phones === */
@media (max-width: 900px) {

  /* Header & nav: stack neatly, no cramping */
  .site-header .container,
  .site-header .site-wrapper,
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .nav-main a {
    padding: 0.25rem 0.35rem;
  }

  /* Sections: slightly tighter top/bottom so pages feel focused */
  .section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  /* Hero: make CTAs easier to tap */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Ensure grids stack cleanly */
  .hero,
  .home-image-grid,
  .services-grid,
  .industries-grid,
  .blog-grid,
  .testimonials-grid,
  .content-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Sidebar under article on phones */
  .content-layout {
    gap: 1.75rem;
  }

  /* Footer padding on mobile */
  .site-footer {
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {

  /* Slightly larger base font for smaller phones */
  body {
    font-size: 17.5px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-description {
    font-size: 1.02rem;
  }

  .site-wrapper {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .footer-grid {
    gap: 1.1rem;
  }
}
