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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Ocean Depth Theme */
  --bg: #030d1a;
  --bg-alt: #05162b;
  --bg-card: rgba(5, 22, 43, 0.7);
  --text: #f8fafc; /* Pearl-white text */
  --text-muted: #94a3b8;
  --accent: #00f2ff; /* Seafoam/Teal accent */
  --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #008fcc 100%);
  --deep-navy: #030d1a;
  --teal-glow: rgba(0, 242, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Background Texture: Geometric SVG Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.5rem;
  max-width: 75ch;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 0;
  padding: 0;
}

/* === NAVIGATION === */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 5%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  color: var(--text-muted);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === BENTO GRID / MOSAIC === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-glass);
}

.bento-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.tall {
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

/* === IMAGES WITH GRADIENT OVERLAY === */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 13, 26, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

.bento-item:hover img {
  transform: scale(1.05);
}

/* === BUTTONS === */
.btn-primary {
  background: var(--accent-gradient);
  color: #030d1a;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px var(--accent);
  filter: brightness(1.1);
}

.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
}

/* === TESTIMONIAL WALL === */
.testimonial-wall {
  columns: 3;
  column-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  break-inside: avoid;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* === HERO: MAP/LOCATION STYLE === */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(rgba(3, 13, 26, 0.85), rgba(3, 13, 26, 0.95)),
              url('images/img-cdn-24.jpg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
}

.hero-tagline {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
}

/* === MARQUEE === */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 40px;
  padding: 2rem 0;
  background: var(--bg-alt);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 40px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.partner-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.6;
  white-space: nowrap;
  font-weight: 700;
}

/* === CALCULATOR === */
.calculator-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
}

.calc-result {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--accent);
  margin-top: 1.5rem;
}

/* === FOOTER === */
.minimal-footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-item.large, .bento-item.wide, .bento-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .testimonial-wall {
    columns: 1;
  }

  section {
    padding: 60px 0;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 10px;
}

/* Reading time */
.reading-time {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Image Gallery Strip (Inner Pages) */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 3rem 0;
}

/* Bonus Section: Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  margin: 0 auto;
}

/* Lead Gen Card */
.download-card {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(0, 143, 204, 0.05));
  border: 1px solid var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
