:root {
  --oceanic-blue: #1C3954;
  --backline-blue: #43768F;
  --sea-glass: #85CCCC;
  --drift-sand: #FAFAFA;
  --weathered-stone: #D3E8E7;
  --turquoise: #1AEDCD;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--drift-sand);
  color: var(--oceanic-blue);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========== NAVIGATION ========== */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--oceanic-blue);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--drift-sand);
  font-weight: bold;
  font-size: 1.75rem;
}

.logo-icon {
  height: 70px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: var(--drift-sand);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

.nav-menu > li > a:hover {
  color: var(--sea-glass);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--oceanic-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--drift-sand);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--sea-glass);
  color: var(--oceanic-blue);
}

.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
}

/* -------------------------------
   ✅ RESPONSIVE NAVIGATION STYLES
---------------------------------- */

.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #000;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  /* ✅ ENFORCE DARK FONT COLOR IN MOBILE MENU */
  @media (max-width: 768px) {
    .nav-menu a {
      color: #111 !important; /* deep dark font, overrides light inheritance */
      font-weight: 600;
    }

    .nav-menu a:hover {
      color: #46c3b3 !important; /* seaglass hover */
    }
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    margin-bottom: 10px;
  }

  .social-inline {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ========== SOCIAL LINKS ========== */
.social-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-inline a {
  color: var(--drift-sand);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.social-inline a:hover {
  color: var(--sea-glass);
}

/* ========== HERO SECTION ========== */
.hero {
  height: 360px;
  background: url('images/SamiMartinHero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--drift-sand);
  text-align: right;
  padding-right: 5%;
}

/* ✅ Responsive tweaks – corrected */
@media (max-width: 768px) {
  .hero {
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-position: center top;
    background-size: cover;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .subheadline {
    font-size: 1.2rem;
  }

  /* ✅ No changes to .btn – respects original style */
}
.hero .btn {
  margin-top: 20px;
  background-color: var(--turquoise);
  color: var(--oceanic-blue);
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  border-radius: 5px;
}

/* ========== INTRO SECTION ========== */
.intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.profile {
  width: 250px;
  border-radius: 50%;
}

.intro-text h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--oceanic-blue);
  margin-bottom: 10px;
}

.intro-text .subheadline {
  color: var(--oceanic-blue);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--oceanic-blue);
}

/* ========== CALLOUTS SECTION ========== */
.callouts {
  width: 100%;
  background-color: var(--oceanic-blue);
  padding: 30px 0;
}

.callouts .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

.callout {
  background-color: var(--backline-blue);
  border-radius: 12px;
  padding: 20px 20px;
  flex: 1 1 350px;
  max-width: 420px;
  min-height: 250px; /* reduced height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: var(--drift-sand);
  transition: transform 0.3s ease;
}

.callout:hover {
  transform: translateY(-6px);
}

.callout-icon {
  background-color: var(--turquoise);
  color: var(--oceanic-blue);
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--drift-sand);
}

.callout p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--weathered-stone);
}

.btn-sm {
  background-color: var(--drift-sand);
  color: var(--oceanic-blue);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn-sm:hover {
  background-color: var(--sea-glass);
  color: var(--oceanic-blue);
}

/* Responsive */
@media (max-width: 768px) {
  .callouts .container {
    flex-direction: column;
    align-items: center;
  }

  .callout {
    width: 100%;
    max-width: 90%;
  }
}

/* ========== SHIVER  ========== */

.shivermedia {
  position: relative;
  background-color: var(--backline-blue);
  color: var(--oceanic-blue); /* ← Dark ocean blue font */
  text-align: right;
  padding: 50px 20px;
  overflow: hidden;
}

.shiver-logo {
  width: 450px;
  height: auto;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.shivermedia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/shivermedia.png') center/cover no-repeat;
  opacity: 0.75;
  z-index: 0;
}

.shivermedia .container {
  position: relative;
  z-index: 1;
}

.shivermedia h2 {
  font-size: 2rem;
  margin-bottom: 10px; /* optional: reduce further if needed */
  margin-top: 0; /* ensure no top gap */
  color: var(--oceanic-blue);
}

.shiver-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 0 15px auto;
  color: var(--oceanic-blue);
  line-height: 1.4; /* tighter, but still readable */
}

.shivermedia .btn.alt {
  background-color: var(--turquoise);
  color: var(--oceanic-blue);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px; /* ← 20px spacing above */
  display: inline-block;
  transition: background 0.2s ease;
}

.shivermedia .btn.alt:hover {
  background-color: var(--sea-glass);
  color: var(--oceanic-blue);
}

/* ===== WORK WITH ME SECTION ===== */
.work-with-me {
  padding: 60px 20px;
  background-color: var(--backline-blue);
  color: var(--drift-sand);
}

.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.work-column {
  flex: 1 1 45%;
  min-width: 280px;
}

.work-column h2 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: var(--sea-glass);
}

.work-column p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--drift-sand);
}

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

  .work-column {
    flex: 1 1 100%;
  }
}

.work-logo {
  max-width: 100px;
  margin-bottom: 15px;
}

/* ========== CTA Divider ========== */
.cta-divider {
  background-color: var(--shiver-tan);
  padding: 20px 20px;
  color: var(--drift-sand);
}

.cta-content {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-text {
  flex: 1 1 50%;
  max-width: 580px;
}

.cta-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--oceanic-blue);
}

.cta-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--oceanic-blue);
  margin-bottom: 20px;
}

.related-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.related-channels a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--oceanic-blue);
  font-size: 0.95rem;
}

.related-channels img {
  width: 100px;
  height: auto;
  border-radius: 6px;
}

.related-channels a:hover {
  opacity: 0.8;
}

.cta-image {
  flex: 1 1 45%;
  text-align: right;
}

.cta-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
}

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

  .cta-image {
    text-align: center;
    margin-top: 30px;
  }

  .cta-text {
    text-align: center;
  }

  .related-channels {
    align-items: center;
  }
}

/* ========== Salty ========== */
.saltyblue-coming {
  background: url('images/SBMHero.png') center/cover no-repeat;
  text-align: right;
  padding: 20px 20px;
  color: #ffffff; /* Force all text to white */
}

.saltyblue-coming h2,{
  color: #ffffff; /* Make sure all text is light */
}

.salty-subtext {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #000000;
  font-weight: 1000; /* medium weight */
}

.salty-subscribe {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 35%;
  margin-left: auto;
  gap: 10px;
}

.salty-subscribe input[type="email"] {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ffffff;
  color: #ffffff;
  width: 100%;
}

.salty-subscribe input::placeholder {
  color: color: #333333;
}

.salty-subscribe button {
  background-color: var(--oceanic-blue); /* Dark blue */
  color: #ffffff; /* Light font for contrast */
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.salty-subscribe button:hover {
  background-color: var(--backline-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .salty-subscribe {
    max-width: 100%;
    align-items: center;
  }

  .salty-subscribe input[type="email"] {
    width: 100%;
  }
}


/* ========== FOOTER ========== */
.footer {
  background-color: var(--oceanic-blue);
  color: var(--drift-sand);
  padding: 30px 20px; /* reduced vertical padding */
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-column {
  flex: 1 1 30%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-column h4 {
  margin-bottom: 12px;
  color: var(--drift-sand);
}

/* Footer Link Styling */
.nav-links ul,
.support-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li,
.support-links li {
  margin-bottom: 6px; /* reduced spacing between links */
  line-height: 1.2;
}

.nav-links a,
.support-links a {
  color: var(--drift-sand);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.support-links a:hover {
  color: var(--sea-glass);
  text-decoration: none;
}

/* ========== DOWNLOADS PAGE ========== */
.downloads {
  padding: 60px 20px;
  background: #fff;
  color: var(--oceanic-blue);
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--oceanic-blue);
}

/* === FEATURED BLOCK === */
.featured-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.featured-info {
  flex: 1 1 50%;
}

.featured-info h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.featured-info .subheadline {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 16px;
}

.featured-image {
  flex: 1 1 40%;
  max-width: 280px;
}

.featured-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ========== DOWNLOADS PAGE ========== */
.downloads {
  padding: 60px 20px;
  background: #fff;
  color: var(--oceanic-blue);
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--oceanic-blue);
}

/* === FEATURED BLOCK === */
.featured-download {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
}

.featured-info {
  flex: 1 1 50%;
  max-width: 600px;
}

.featured-media {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.featured-media img {
  width: 400px;
  height: auto;
  display: block;
}

.video-wrapper-fixed iframe {
  width: 400px;
  height: 225px;
  display: block;
  border-radius: 6px;
}

/* === DOWNLOAD GRID === */
.section-title {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  text-align: left;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.download-card {
  background: var(--drift-sand);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 30%;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.download-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 12px;
}

.download-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.download-card .note {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--oceanic-blue);
}

.download-card .btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.video-wrapper {
  margin: 20px 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === RESOURCES PAGE STYLES === */

.resources-hero {
  padding: 20px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.resources-hero h1 {
  font-size: 2.5rem;
  color: var(--oceanic-blue);
  margin-bottom: 20px;
  font-weight: bold;
}

.resources-hero .resources-banner {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
}

.resources-hero p {
  font-size: 1rem;
  line-height: 1.6;
  color: #1e2a30;
}

.resources-section {
  padding: 20px 20px;
}

.resources-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #1e2a30;;
  margin-bottom: 30px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.resource-grid img {
  width: 150px;
  height: auto;
  transition: transform 0.2s ease;
}

.resource-grid img:hover {
  transform: scale(1.05);
}

/* Alternating Backgrounds */
.bg-alt1 {
  background-color: var(--seaglass);
}

.bg-alt2 {
  background-color: var(--backline-blue);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .resources-hero h1 {
    font-size: 2rem;
  }

  .resources-section h2 {
    font-size: 1.5rem;
  }
}

/* ========== RESPONSIVE ========== */
@.resources-section {
  background: #f8f8f8;
  padding: 60px 20px 20px;
  text-align: center;
}

.resources-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1.2rem;
  color: #666;
}

.resources-category {
  padding: 20px;
}

.resources-category.alt-bg {
  background-color: #f2f2f2;
}

.resources-category h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.resource-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-item {
  text-align: center;
  max-width: 200px;
}

.resource-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
  background-color: #fff;
}

.resource-item a {
  display: block;
  font-weight: bold;
  color: var(--link-color);
  text-decoration: none;
}

/* ===============================
   ✅ RESPONSIVE LAYOUT ADJUSTMENTS
   For logos, footer blocks, and link rows
   Covers tablets and phones under 1024px
================================= */

@media (max-width: 1024px) {
  .logo-row, .footer-logos, .linked-entities {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 10px;
  }

  .logo-row img,
  .footer-logos img,
  .linked-entities img {
    max-width: 140px;
    height: auto;
  }

  /* Fix for logos overflowing on mobile */
  .logo-row a,
  .footer-logos a,
  .linked-entities a {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 48%;
    margin: 10px 0;
  }

  /* Salty Blue Mexico specific case */
  img[src*="saltybluemexico"] {
    max-width: 120px;
    width: 100%;
  }
}