/* 
 * Ding Dong Digital - Mobile First Style Sheet
 * Brand Colors: Primary Blue #0052CC, Secondary Orange #FF6B00, Accent #172B4D
 * Font: Inter
 */

:root {
  --primary-blue: #0052CC;
  --secondary-orange: #FF6B00;
  --accent-dark: #172B4D;
  --bg-light: #F4F5F7;
  --white: #FFFFFF;
  --text-gray: #5E6C84;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif; /* Using Inter for everything for modern app feel */
  --nav-height-top: 60px;
  --nav-height-bottom: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--accent-dark);
  background-color: var(--white);
  line-height: 1.5;
  padding-top: var(--nav-height-top);
  padding-bottom: var(--nav-height-bottom);
  overflow-x: hidden;
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
  background: #003E99;
}

/* FIXED TOP NAV (Mobile App Style) */
.fixed-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-top);
  background: var(--primary-blue);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fixed-top-nav nav {
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixed-top-nav .logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  background: transparent !important;
}

.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: block; /* Visible on mobile */
}

/* Mobile Menu Dropdown */
.nav-menu {
  position: absolute;
  top: var(--nav-height-top);
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: none; /* Hidden by default */
  transform-origin: top;
  animation: slideDown 0.3s ease forwards;
}

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

.nav-menu li {
  margin-bottom: 15px;
  width: 100%;
  text-align: center;
}

.nav-menu a {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 10px;
}

.nav-menu a.active {
  color: var(--primary-blue);
}

.nav-cta-btn {
  background: var(--secondary-orange);
  color: white !important;
  border-radius: 50px;
  padding: 10px 20px !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FIXED BOTTOM NAV (Mobile App Style) */
.fixed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-bottom);
  background: var(--secondary-orange);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 0 10px;
}

.nav-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white); /* White text on orange bg for better contrast */
  font-size: 12px;
  font-weight: 500;
  min-width: 60px;
  min-height: 50px;
  border-radius: 8px;
}

.nav-action-btn i {
  font-size: 20px;
  color: var(--accent-dark); /* Dark icons for contrast */
}

.nav-action-btn span {
  color: var(--accent-dark);
  font-weight: 600;
}

.nav-action-btn:active {
  background: rgba(255,255,255,0.2);
  transform: scale(0.95);
}

/* HERO SECTION (Mockup Clone) */
.hero-section {
  padding: 40px 0;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero-img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.corner-shape {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 1;
}

.corner-shape.top-left {
  top: -15px;
  left: -15px;
  border-top: 15px solid var(--primary-blue);
  border-left: 15px solid var(--primary-blue);
}

.corner-shape.bottom-right {
  bottom: -15px;
  right: -15px;
  border-bottom: 15px solid var(--secondary-orange);
  border-right: 15px solid var(--secondary-orange);
}

/* HOW IT WORKS */
.how-it-works {
  padding: 60px 0;
  background: linear-gradient(to bottom, #fff, #f0f4ff);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--accent-dark);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.process-card {
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.process-card:active {
  transform: scale(0.98);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-blue);
  font-size: 28px;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.process-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* COUNTER BAR */
.counter-bar {
  background: var(--primary-blue);
  padding: 30px 0;
  color: var(--white);
  text-align: center;
}

.counter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.counter-content span {
  font-size: 1.2rem;
  font-weight: 600;
}

.counter-digits {
  display: flex;
  gap: 10px;
}

.digit {
  background: var(--white);
  color: var(--primary-blue);
  width: 40px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 4px;
}

/* SERVICE BENEFITS */
.service-benefits {
  padding: 60px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.benefit-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.icon-orange {
  color: var(--secondary-orange);
  font-size: 28px;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.booking-cta-card {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: 20px;
  border: 1px solid #eee;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background: #f9f9f9;
}

/* TRUST & TESTIMONIALS */
.trust-testimonials {
  padding: 60px 0;
}

.column-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--accent-dark);
}

.logos-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-gray);
}

.client-logo i {
  font-size: 24px;
  color: var(--primary-blue);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f0f7ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.testimonial-slider {
  position: relative;
}

.testimonial-card {
  background: var(--white);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: var(--secondary-orange);
  font-size: 12px;
  margin-bottom: 5px;
}

.testimonial-text p {
  font-size: 0.95rem;
  color: var(--accent-dark);
  margin-bottom: 5px;
  font-style: italic;
}

.testimonial-text strong {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.faded {
  opacity: 0.6;
  transform: scale(0.95);
}

.nav-arrow {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid #ddd;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
  background: #f9fafb;
  padding: 60px 0 30px;
  border-top: 1px solid #eee;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-gray);
  max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-gray);
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.9rem;
}

/* DESKTOP MEDIA QUERIES */
@media (min-width: 768px) {
  :root {
    --nav-height-top: 70px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    animation: none;
  }

  .nav-menu li {
    margin: 0 0 0 30px;
    width: auto;
  }

  .nav-menu a {
    color: rgba(255,255,255,0.9); /* Light text on blue header */
    padding: 0;
    font-size: 1rem;
  }
  
  .nav-menu a.active {
    color: var(--white);
    text-decoration: underline;
  }

  .hero-section {
    padding: 80px 0;
  }

  .hero-content {
    text-align: left;
    margin-bottom: 0;
  }

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

  .hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .benefit-card:nth-child(5), .benefit-card:nth-child(6) {
    grid-column: span 2;
  }

  .counter-content {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .counter-content span {
    font-size: 1.5rem;
  }

  .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  /* Hide bottom nav on desktop if preferred, but prompt asks for mobile app style. 
     We'll keep it visible as per "fixed bottom nav" requirement for this style variation. */
}