/* ==========================================
   DGP RADIOLOGY — MAIN STYLESHEET
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0056b3;
  --primary-light: #1a74d4;
  --primary-dark: #003e82;
  --accent: #00aaff;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-gray: #f1f5f9;
  --mid-gray: #94a3b8;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all .25s ease;
  --font: 'Inter', sans-serif;
  --nav-h: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

input {
  font-family: var(--font);
}

/* ---------- Utility ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title-centered {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 16px;
}

.section-title-centered::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, .35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .8);
  font-size: .8rem;
  padding: 8px 16px;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .22);
  border-color: var(--white);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  height: 100%;
}

/* Logo image */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: #333;
  position: relative;
  padding: 0 22px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: color .2s;
  white-space: nowrap;
}

/* bottom-border using box-shadow — works reliably on full-height flex links */
.nav-link::after {
  display: none;
}

/* disabled — using box-shadow instead */
.nav-link:hover {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 0 var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 0 var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: 520px;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: var(--nav-h);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
      rgba(5, 20, 55, 0.72) 0%,
      rgba(5, 20, 55, 0.50) 45%,
      rgba(5, 20, 55, 0.15) 75%,
      rgba(5, 20, 55, 0.05) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
}

.hero-text {
  max-width: 589px;
  width: 100%;
  text-align: right;
  animation: fadeInUp .8s ease both;
}

.hero-text h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-tagline .highlight {
  color: #0088AC;
}

.hero-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.hero-btns .btn-primary {
  font-size: .8rem;
  padding: 8px 16px;
  background: #0088AC;
  border-color: #0088AC;
}

.hero-btns .btn-primary:hover {
  background: #006d8a;
  border-color: #006d8a;
}

.hero-btns .btn-outline-white {
  background: #ffffff;
  color: #1e293b;
  border-color: #ffffff;
  font-size: .8rem;
  padding: 8px 16px;
}

.hero-btns .btn-outline-white:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}

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

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

/* ==========================================
   INTRO SECTION
   ========================================== */
.intro-section {
  padding: 72px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.intro-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.intro-content-block {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.intro-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--dark);
  line-height: 38px;
  letter-spacing: 0;
  margin-bottom: 20px;
  text-align: left;
}

.intro-divider {
  width: 220px;
  height: 1.5px;
  background: #cbd5e1;
  margin: 0 0 20px 0;
  /* Align left relative to the block */
}

.intro-sub {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 20px;
  letter-spacing: 0;
  max-width: 1000px;
  text-align: left;
  margin: 0;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
  padding: 72px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 32px 32px;
  border: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease, color .3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  background: #0088ac;
  box-shadow: 0 12px 40px rgba(0, 136, 172, .40);
  transform: translateY(-6px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: filter .3s ease;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  transition: filter .3s ease;
}

/* On hover: invert icon colours to white */
.feature-card:hover .feature-icon svg rect[fill="#e6f4f8"] {
  fill: rgba(255,255,255,.18);
}

.feature-card:hover .feature-icon svg {
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  transition: color .3s ease;
}

.feature-card:hover h3 {
  color: var(--white);
  font-weight: 800;
}

.feature-card p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  transition: color .3s ease;
}

.feature-card:hover p {
  color: rgba(255, 255, 255, .88);
}

.read-more {
  font-size: .85rem;
  font-weight: 500;
  color: #0088ac;
  display: inline-flex;
  align-items: center;
  transition: color .3s ease;
}

.read-more:hover {
  color: #006d8a;
}

.feature-card:hover .read-more {
  color: rgba(255, 255, 255, .90);
}

.feature-card:hover .read-more:hover {
  color: var(--white);
}

.read-more::after {
  content: '';
}

/* ==========================================
   PLATFORM SECTION
   ========================================== */
.platform-section {
  padding: 80px 0 96px;
  background: var(--light-gray);
}

/* Title block top-left */
.platform-title-block {
  margin-bottom: 48px;
}

.platform-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.platform-title-bar {
  width: 48px;
  height: 3px;
  background: #0088ac;
  border-radius: 2px;
}

/* Two-column layout */
.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ---- Overlapping images ---- */
.platform-images {
  position: relative;
  height: 420px;
}

.platform-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 82%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mid-gray);
}

.platform-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  height: 62%;
  border-radius: 6px;
  overflow: hidden;
  background: #94a3b8;
  border: 4px solid var(--light-gray);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

.platform-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Right content ---- */
.platform-right .section-label {
  margin-bottom: 10px;
  color: var(--text-light);
}

.platform-right h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.platform-right p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.platform-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-platform-primary {
  background: #0088ac;
  color: #fff;
  border: 2px solid #0088ac;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.btn-platform-primary:hover {
  background: #006d8a;
  border-color: #006d8a;
  transform: translateY(-1px);
}

.btn-platform-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.btn-platform-outline:hover {
  border-color: #0088ac;
  color: #0088ac;
  transform: translateY(-1px);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section {
  padding: 80px 0 64px;
  background: var(--off-white);
}

/* Left-aligned heading for testimonials */
.section-title-left {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  text-align: left;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 16px;
}

.section-title-left::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px 0 0;
}

/* Drag-scroll track */
.testi-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 40px;
  cursor: grab;
  /* Hide scrollbar visually */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testi-track-wrap::-webkit-scrollbar {
  display: none;
}

.testi-track-wrap.dragging {
  cursor: grabbing;
  user-select: none;
}

.testi-grid {
  display: flex;
  gap: 20px;
  width: max-content;
}

.testi-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 22px 0 0;
  box-shadow: none;
  transition: none;
  width: 280px;
  flex-shrink: 0;
}

.testi-card:hover {
  box-shadow: none;
  transform: none;
}

.stars {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: .95rem;
  margin-bottom: 12px;
}

.stars .star-count {
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 500;
}

.testi-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.testi-role {
  display: none;
}

.testi-text {
  font-size: .83rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter-section {
  padding: 80px 24px;
  background: #0d2b4e;
  text-align: left;
}

.newsletter-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.newsletter-inner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.newsletter-inner p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 560px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 520px;
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 4px 4px 4px 0;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  outline: none;
  font-size: .875rem;
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
}

.newsletter-form input::placeholder {
  color: #94a3b8;
}

.newsletter-form button {
  padding: 10px 22px;
  background: #0088ac;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: #006d8a;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #0099b8;
  color: rgba(255, 255, 255, .9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding: 56px 24px 44px;
  align-items: start;
}

/* Logo box — white square */
.footer-logo-box {
  background: var(--white);
  border-radius: 6px;
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.footer-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: .01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.4;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-contact-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}

.footer-contact-number {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  transition: opacity .2s;
}

.footer-contact-number:hover {
  opacity: .8;
}

/* Social */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.social-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity .2s, transform .2s;
}

.social-btn:hover {
  opacity: .75;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
  }

  .nav-link {
    padding: 12px 24px;
    width: 100%;
  }

  .hero {
    height: 380px;
    min-height: 320px;
  }

  .hero-content {
    justify-content: flex-start;
  }

  .hero-text {
    text-align: left;
  }

  .hero-btns {
    justify-content: flex-start;
  }

  .intro-section {
    padding: 48px 0 40px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .platform-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .platform-images {
    height: 300px;
  }

  .platform-img-main {
    width: 75%;
    height: 80%;
  }

  .platform-img-secondary {
    width: 60%;
    height: 60%;
  }

  .testimonials-section {
    padding: 56px 0 48px;
  }

  .testi-grid {
    grid-template-columns: repeat(6, calc(100% - 20px));
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-sm);
    overflow: visible;
    box-shadow: none;
  }

  .newsletter-form input,
  .newsletter-form .btn {
    border-radius: var(--radius-sm) !important;
    width: 100%;
    box-shadow: var(--shadow-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .section-title-centered {
    font-size: 1.5rem;
  }

  .intro-heading {
    font-size: 28px;
    line-height: 36px;
  }
}