/* ================================================================
   custom.css — Riptides (riptidesio.com)
   Accent: #0984e3
   ALL values in px, NO rem
   ================================================================ */

/* --- CSS Variables --- */
:root {
  --accent: #0984e3;
  --accent-dark: #0670c4;
  --accent-light: #3da0f0;
  --bg-dark: #0d1117;
  --bg-medium: #161b22;
  --bg-light: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-light: #e2e8f0;
  --text-muted: #8fabc4;
  --border-color: #2d3748;
  --funding-bar-h: 0px;
}

/* --- Override template accent color (#00c6d7 -> #0984e3) --- */
.opc-main-bg,
.plan-two,
.btn-danger,
a.smoothScroll:hover,
.navbar-nav > li > a:hover {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* --- Typography overrides: remove template uppercase/letter-spacing --- */
h1, h2, h3, h4, h5, h6,
.heading,
.navbar-nav > li > a,
.section-title h1,
.section-title h2,
.plan_title h3,
.footer-heading {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Font sizes in px */
body { font-size: 18px; color: #1a1a2e; }
.navbar-nav > li > a { font-size: 15px; }
h1 { font-size: 58px; line-height: 1.15; }
h2 { font-size: 40px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 20px; }
p { font-size: 16px; line-height: 1.75; }

/* --- Nav cleanup (R77) --- */
.nav-item { margin-bottom: 0 !important; background-image: none !important; }
.navbar-brand img { max-width: none !important; }
.btn-accent, .cta-primary, .cta-secondary { white-space: nowrap; }

/* --- Hero section --- */
#home {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 160px 0 100px;
  text-align: center;
}
#home h1 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 58px;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.hero-sub {
  font-size: 20px;
  color: #c8d6e5;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* --- Hero transparent container (R79) --- */
.header-thumb { background: transparent !important; border: none !important; }

/* --- Buttons --- */
.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px;
  display: inline-block;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}
.btn-outline-light {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #e2e8f0;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px;
  display: inline-block;
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  text-decoration: none;
}
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px;
  display: inline-block;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}
.btn-white {
  background: #ffffff;
  color: var(--accent);
  border: 2px solid #ffffff;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px;
  display: inline-block;
}
.btn-white:hover {
  background: #e8f4ff;
  color: var(--accent-dark);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin: 6px;
  display: inline-block;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none;
}

/* --- Section colors --- */
.section-light {
  background: #f8f9fa;
  padding: 80px 0;
  color: #1a1a2e;
}
.section-dark {
  background: var(--bg-dark);
  padding: 80px 0;
  color: #e2e8f0;
}
.section-dark h2, .section-dark h3, .section-dark .section-title strong {
  color: #e2e8f0;
}
.section-dark p { color: #c8d6e5; }
.section-dark hr { border-color: #2d3748; }
.section-accent {
  background: var(--accent);
  padding: 70px 0;
  color: #ffffff;
}
.section-accent h2 { color: #ffffff; font-size: 36px; margin-bottom: 16px; }
.section-accent p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 32px; }

/* --- Work/features section --- */
#work { padding: 80px 0; background: #f8f9fa; }
.section-sub {
  font-size: 18px;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* --- Feature cards (R87) --- */
.feature-card {
  padding: 32px 24px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  height: 100%;
}
.feature-card h3 {
  font-size: 20px;
  color: #1a1a2e;
  margin-top: 16px;
  font-weight: 600;
}
.feature-card p {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.75;
}
.feature-card .medium-icon {
  font-size: 48px;
  color: var(--accent);
}

/* Force accent on feature icons (R81) */
.feature-icon.medium-icon,
.feature-card .medium-icon,
.feature-icon .fa,
.card-icon .fa,
.step-icon .fa {
  color: var(--accent) !important;
}

/* --- Card equal-height flex (K17) --- */
.card-equal-height { display: flex; flex-wrap: wrap; }
.card-equal-height > [class*="col-"] { display: flex; }
.card-grid,
.team-grid,
.blog-grid,
.features-grid {
  display: flex;
  flex-wrap: wrap;
}
.card-grid > *,
.team-grid > *,
.blog-grid > *,
.features-grid > * {
  display: flex;
  flex-direction: column;
}

/* --- Container narrow for legal/article pages --- */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* --- About section --- */
#about { padding: 80px 0; }
.about-img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  object-fit: cover;
  object-position: center;
}
#about h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
#about p { font-size: 16px; line-height: 1.75; margin-bottom: 16px; }

/* --- CTA section --- */
#cta { padding: 70px 0; background: var(--accent); }
#cta h2 { color: #ffffff; font-size: 36px; margin-bottom: 16px; }
#cta p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 32px; }

/* --- Team cards (R84, R86) --- */
.team-wrapper {
  background: #1e2533;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid #2d3748;
  height: 100%;
}
.team-wrapper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team-des {
  padding: 20px;
  background: #1e2533;
  color: #e2e8f0;
}
.team-des h4 { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.team-des h3 { font-size: 14px; color: var(--accent); margin-top: 0; }
.team-des p { font-size: 15px; color: #c8d6e5; line-height: 1.6; }
.team-des hr { border-color: #2d3748; }
.team-contact { font-size: 14px; color: var(--accent-light); margin-top: 8px; }
.team-contact a { color: var(--accent-light); text-decoration: none; }
.team-contact a:hover { text-decoration: underline; }

/* --- Blog cards --- */
.blog-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
  height: 100%;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(9,132,227,0.12); }
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h4 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 15px; color: #4a5568; line-height: 1.6; flex: 1; }
.blog-card-date { font-size: 13px; color: #8fabc4; margin-bottom: 8px; }
.blog-card-link { font-size: 14px; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 12px; }
.blog-card-link:hover { text-decoration: underline; }

/* --- Pricing cards --- */
.pricing-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 36px 28px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(9,132,227,0.15);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.pricing-card .price { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; margin: 16px 0 4px; }
.pricing-card .price-period { font-size: 15px; color: #8fabc4; margin-bottom: 24px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; flex: 1; }
.pricing-card ul li { font-size: 15px; color: #4a5568; padding: 8px 0; border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li .fa { color: var(--accent); font-size: 13px; }

/* --- Contact section --- */
#contact { padding: 80px 0; }
.contact-info h2 { font-size: 30px; color: #e2e8f0; margin-bottom: 16px; }
.contact-info h3 { font-size: 18px; color: #e2e8f0; }
.contact-info p { color: #c8d6e5; font-size: 16px; }

/* --- Section titles --- */
.section-title { margin-bottom: 48px; text-align: center; }
.section-title strong { font-size: 40px; color: rgba(9,132,227,0.18); display: block; font-weight: 800; line-height: 1; }
.section-title h1, .section-title h2 { font-size: 40px; margin: 8px 0 16px; }
.section-title hr { width: 60px; border-color: var(--accent); border-width: 3px; margin: 0 auto 16px; }

/* --- Footer --- */
footer {
  background: #0d1117;
  color: #c8d6e5;
  padding: 60px 0 24px;
}
.footer-col { margin-bottom: 32px; }
.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  color: #8fabc4;
  font-size: 15px;
  text-decoration: none;
}
.footer-links li a:hover { color: var(--accent); }
footer p { font-size: 15px; color: #8fabc4; line-height: 1.7; }
.footer-bottom p { font-size: 14px; color: #4a5568; margin: 0; }
.footer-bottom hr { border-color: #1e2533; }

/* --- Template overlay pointer-events (R89) --- */
.tm-bg-overlay, [class*="overlay"] { pointer-events: none !important; }

/* --- Article/blog images (R-IMG) --- */
article img, .blog-article img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* --- Legal / article pages --- */
.legal-page, .article-page {
  padding: 100px 0 60px;
  background: #ffffff;
}
.legal-page h1, .article-page h1 { font-size: 40px; color: #1a1a2e; margin-bottom: 24px; }
.legal-page h2, .article-page h2 { font-size: 26px; color: #1a1a2e; margin-top: 36px; margin-bottom: 12px; }
.legal-page p, .article-page p { font-size: 16px; color: #2d3748; line-height: 1.8; margin-bottom: 16px; }
.legal-page ul, .article-page ul { font-size: 16px; color: #2d3748; line-height: 1.8; padding-left: 24px; margin-bottom: 16px; }

/* --- Scrolled nav active state --- */
.custom-navbar.active,
.custom-navbar.scrolled {
  background-color: rgba(13, 17, 23, 0.98) !important;
}
.custom-navbar.active .navbar-nav > li > a,
.custom-navbar.scrolled .navbar-nav > li > a {
  color: #e2e8f0 !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero-sub { font-size: 17px; }
  #home { padding: 120px 0 70px; }
  .section-light, .section-dark, #work, #about, #contact, #cta { padding: 56px 0; }
  .card-grid, .team-grid, .blog-grid, .features-grid { display: block; }
}

/* ===== RIPTIDESIO LAYOUT FIXES ===== */

/* steps-grid-3: 3-column grid for How It Works section */
.steps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.steps-grid-3 .step-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e2e8f0;
}
.steps-grid-3 .step-number {
  font-size: 42px;
  font-weight: 800;
  color: rgba(9,132,227,0.4);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.steps-grid-3 .step-card h3 {
  font-size: 20px;
  color: #e2e8f0;
  margin-bottom: 12px;
}
.steps-grid-3 .step-card p {
  font-size: 16px;
  color: #c8d6e5;
}

/* features-grid inside .row: remove negative margins conflict */
.row > .features-grid {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* card-grid inside .row */
.row > .card-grid {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* team-grid inside .row: ensure full width (mirrors card-grid fix) */
.row > .team-grid {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* Override style.css #team .team-des { opacity:0; position:absolute } —
   The template uses hover overlay; our design uses static card layout */
#team .team-des {
  opacity: 1 !important;
  position: static !important;
  background: #1e2533;
  max-width: none;
  height: auto;
}

/* team-card col widths inside flex team-grid: Bootstrap float cols 
   don’t auto-size in flex; give them explicit proportion */
.team-grid .col-md-4 {
  float: none;
  width: 33.33%;
}
.team-grid .col-sm-6 {
  float: none;
}

/* WOW visibility fallback for team cards */
.team-card {
  visibility: visible !important;
}

@media (max-width: 767px) {
  .steps-grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .steps-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Fix pricing card label clipping
   ============================================================ */
.pricing-card, .price-card, .card-inner, [class*="pricing"] > [class*="col"] > div {
  overflow: visible !important;
}

/* ============================================================
   Fix 3: Pricing badge overflow fix (no badge on plan cards but adding safety)
   ============================================================ */
.plan {
    overflow: visible !important;
}

/* ============================================================
   Fix 3b: Navbar overlap on page header
   ============================================================ */
.page-header-section {
    padding-top: 110px;
    padding-bottom: 60px;
    background: #f5f5f5;
}
.page-header-section h1 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.page-header-section p {
    font-size: 17px;
    color: #555;
}
