/* RESPONSIVE STYLES FOR ZYPLI WEBSITE */

/* GENERAL RESPONSIVE RULES */
/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better text scaling */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive typography scaling */
@media (max-width: 1200px) {
  body { font-size: 15px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
}

/* HAMBURGER MENU STYLES */
.hamburger {
  display: none; /* Will be shown on mobile/tablet via media queries */
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000000; /* Changed to black */
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.nav-menu.active a {
  padding: 15px 20px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.nav-menu.active a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* GENERAL MOBILE FIRST APPROACH */

/* TABLET AND SMALLER DESKTOP */
@media (max-width: 1024px) {
  /* Navbar adjustments */
  .navbar {
    padding: 15px 30px;
  }

  .logo {
    font-size: 22px;
  }

  .navbar nav a {
    margin-left: 20px;
    font-size: 14px;
  }

  /* Hero section */
  .hero {
    height: 55vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 60px 40px;
    max-width: 500px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Hero slider responsive */
  .hero-slides {
    height: 100%;
  }

  .hero-slide {
    background-attachment: scroll;
  }

  /* Intro video section responsive */
  .intro-video-section {
    padding: 40px 5%;
  }

  .intro-video-box {
    padding: 40px;
    gap: 20px;
  }

  .intro-text-1 h2 {
    font-size: 28px;
  }

  .intro-text-2 {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .intro-text-3 {
    max-width: 100%;
  }

  .hero-video {
    width: 100%;
    max-width: 500px;
    height: 280px;
  }

  /* Logo slider responsive */
  .logo-slider {
    padding: 20px 0;
  }

  .track img {
    width: 150px;
    height: 40px;
    padding: 0 20px;
  }

  /* Home services cards */
  .home-services-cards {
    padding: 60px 5%;
  }

  /* Tablet slider styles */
  .slider-wrapper {
    height: 380px !important;
    overflow: visible !important;
  }

  .slide {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
  }

  .slide.active {
    transform: translate(-50%, -50%) scale(1);
    width: 75%;
  }

  .slide.prev {
    transform: translate(-130%, -50%) scale(0.85);
    opacity: 1;
  }

  .slide.next {
    transform: translate(30%, -50%) scale(0.85);
    opacity: 1;
  }

  .slide:not(.active):not(.prev):not(.next) {
    opacity: 0 !important;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .service-card {
    width: 100%;
  }

  /* Featured areas */
  .featured-areas {
    padding: 50px 5%;
  }

  .featured-areas h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .featured-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .featured-card {
    height: 250px;
  }

  .featured-overlay h3 {
    font-size: 18px;
  }

  .featured-overlay p {
    font-size: 14px;
  }

  /* Testimonials */
  .testimonials {
    padding: 60px 5%;
  }

  .testimonials h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .testimonial-grid {
    gap: 25px;
  }

  /* Importance section */
  .importance-section {
    padding: 50px 5%;
  }

  .importance-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .importance-card {
    padding: 24px 20px;
  }

  /* Services page */
  .services {
    padding: 30px 5% 60px;
  }

  .service-row {
    gap: 40px;
    margin-bottom: 60px;
  }

  .service-row img {
    width: 40%;
  }

  .service-content {
    width: 60%;
  }

  .service-content h3 {
    font-size: 24px;
  }

  /* About section */
  .focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .focus-card {
    padding: 18px;
  }

  .focus-card img {
    height: 140px;
  }

  /* Contact section */
  .contact-section {
    padding: 20px 5% 40px;
  }

  .contact-container {
    padding: 40px;
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 26px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .contact-form button {
    padding: 12px 30px;
  }
}

/* MOBILE DEVICES */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 1000;
  }

  .logo {
    font-size: 20px;
    order: 2;
    flex-shrink: 0;
  }

  .hamburger {
    display: flex;
    order: 3;
    flex-shrink: 0;
  }

  .nav-menu {
    display: none;
  }

  .navbar nav {
    display: none; /* Hide default menu on mobile */
    flex-wrap: wrap;
    width: 100%;
  }

  .navbar nav a {
    margin-left: 0;
    margin-right: 15px;
    font-size: 13px;
  }

  /* Hero */
  .hero {
    height: 50vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 40px 20px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-btn {
    padding: 10px 28px;
    font-size: 14px;
  }

  /* Home services cards */
  .home-services-cards {
    padding: 40px 5%;
  }

  .home-services-cards h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Slider styles for mobile */
  .slider-wrapper {
    height: 240px !important;
    overflow: visible !important;
  }

  .slide {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    max-height: 200px;
  }

  .slide.active {
    width: 90%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
  }

  .slide.prev {
    transform: translate(-160%, -50%) scale(0.8);
    opacity: 0.6;
  }

  .slide.next {
    transform: translate(60%, -50%) scale(0.8);
    opacity: 0.6;
  }

  .slide:not(.active):not(.prev):not(.next) {
    opacity: 0 !important;
  }

  .slider-wrapper-img {
    border-radius: 14px;
  }

  .slide .card-title {
    font-size: 12px;
    bottom: 10px;
    padding: 6px;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card {
    width: 100%;
  }

  .service-card img {
    height: 200px;
  }

  .card-content {
    padding: 16px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .card-content p {
    font-size: 14px;
  }

  /* Importance section */
  .importance-section {
    padding: 40px 5%;
    background-size: 100%;
  }

  .importance-section h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

  .importance-card {
    padding: 20px 18px;
  }

  .importance-card h3 {
    font-size: 18px;
  }

  .importance-card p {
    font-size: 14px;
  }

  /* Services page */
  .services {
    padding: 20px 5% 40px;
  }

  .services-header {
    margin-bottom: 50px;
  }

  .services-header h2 {
    font-size: 30px;
  }

  .service-row,
  .service-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 50px;
  }

  .service-row img,
  .service-content {
    width: 100%;
  }

  .service-content h3 {
    font-size: 22px;
  }

  .service-content p {
    font-size: 15px;
  }

  /* About section */
  .about-section {
    padding-bottom: 40px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

  .focus-card {
    padding: 16px;
  }

  .focus-card img {
    height: 120px;
  }

  .focus-card h3 {
    font-size: 16px;
  }

  .focus-card p {
    font-size: 13px;
  }

  /* Focus modal */
  .focus-modal-content {
    width: 90%;
    padding: 20px;
  }

  .focus-modal-content img {
    height: 200px;
  }

  .focus-modal-content h3 {
    font-size: 20px;
  }

  .focus-modal-content p {
    font-size: 14px;
  }

  .focus-modal-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Contact header */
  .contact-header {
    padding: 30px 5% 15px;
  }

  .contact-header h1 {
    font-size: 30px;
  }

  .contact-header p {
    font-size: 15px;
  }

  /* Contact section */
  .contact-section {
    padding: 15px 5% 30px;
  }

  .contact-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .contact-info h2 {
    font-size: 24px;
  }

  .info-block {
    gap: 12px;
    margin-bottom: 18px;
  }

  .info-block .icon {
    font-size: 20px;
  }

  .info-block h4 {
    font-size: 14px;
  }

  .info-block p {
    font-size: 13px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .contact-form button {
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Featured areas */
  .featured-areas {
    padding: 40px 5%;
  }

  .featured-areas h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

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

  .featured-card {
    height: 220px;
  }

  .featured-overlay h3 {
    font-size: 16px;
  }

  .featured-overlay p {
    font-size: 13px;
  }

  /* Testimonials */
  .testimonials {
    padding: 40px 5%;
  }

  .testimonials h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .testimonial-grid {
    gap: 20px;
  }

  .testimonial {
    padding: 16px;
  }

  /* Contact CTA */
  .contact-cta {
    padding: 50px 5%;
  }

  .contact-cta h2 {
    font-size: 28px;
  }

  .contact-cta p {
    margin-bottom: 20px;
  }

  .contact-cta a {
    padding: 10px 24px;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
    gap: 30px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-left {
    order: 1;
  }

  .footer-middle {
    order: 2;
  }

  .footer-right {
    order: 3;
  }

  .office-section {
    margin-bottom: 20px;
  }

  .footer-social {

    margin-top: 15px;
  }

  .Certification-logos {
    justify-content: center;
    gap: 10px;
  }

  .Certification-logo {
    width: 80px;
    height: 53px;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 15px 5%;
    gap: 10px;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    margin-bottom: 5px;
  }

  .footer-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .footer-bottom-right a {
    display: block;
    margin-left: 0;
    margin-bottom: 5px;
  }
}

/* TABLET DEVICES (iPad, Kindle Fire HD, etc.) */
@media (max-width: 1024px) and (min-width: 769px) {
  /* iPad and similar tablets */
  .navbar {
    padding: 15px 40px;
  }

  .logo {
    font-size: 24px;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  .nav-menu {
    display: none;
  }

  /* .navbar nav {
    display: none; 
    Hide default menu on tablets
  } */

  .hero {
    height: 60vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 60px 50px;
    max-width: 600px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .intro-video-box {
    padding: 50px;
    max-width: 100%;
  }

  .intro-text-1 h2 {
    font-size: 32px;
  }

  .hero-video {
    width: 100%;
    max-width: 600px;
    height: 250px;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 50px 10%;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 30%;
    margin-bottom: 0;
  }
}

/* SMALL TABLETS (iPad Mini, Nexus 7) */
@media (max-width: 768px) and (min-width: 481px) {
  .hero-content h1 {
    font-size: 32px;
  }
   .logo {
    /* content: url("/wp-content/themes/YOUR-THEME/assets/images/zypli4.png"); */
    height: 30px; /* optional */
  }

  .intro-text-1 h2 {
    font-size: 28px;
  }

  .hero-video {
    height: 220px;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .featured-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SMALL MOBILE DEVICES (iPhone/Android) */
@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .home-services-cards h2 {
    font-size: 24px;
  }

  .importance-section h2 {
    font-size: 22px;
  }

  .services-header h2 {
    font-size: 26px;
  }

  .contact-header h1 {
    font-size: 26px;
  }

  .contact-info h2 {
    font-size: 22px;
  }

  /* Enhanced mobile touch targets */
  .navbar nav a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-btn, .explore-btn, .intro-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px; /* iOS touch target */
  }

  .contact-cta a {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  .footer-form button {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Better mobile video */
  .intro-video video {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  /* Mobile card adjustments */
  .service-card img {
    height: 160px;
  }

  .card-title {
    font-size: 16px;
    bottom: 25px;
  }

  /* Mobile form inputs */
  .footer-form input,
  .footer-form textarea {
    padding: 10px;
    font-size: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 14px;
  }

  /* Mobile modal */
  .focus-modal-content {
    width: 95%;
    padding: 16px;
  }

  .focus-modal-content img {
    height: 180px;
  }

  /* Featured areas mobile */
  .featured-areas {
    padding: 30px 5%;
  }

  .featured-areas h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .featured-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .featured-card {
    height: 200px;
  }

  .featured-overlay h3 {
    font-size: 16px;
  }

  .featured-overlay p {
    font-size: 13px;
  }

  /* Testimonials mobile */
  .testimonials {
    padding: 30px 5%;
  }

  .testimonials h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .testimonial-grid {
    gap: 15px;
  }

  .testimonial {
    padding: 14px;
  }

  .testimonial p {
    font-size: 14px;
  }

  .testimonial cite {
    font-size: 13px;
  }

  /* Expert Help Button - hide on small mobile */
  .expert-help-btn {
    display: none;
  }

  /* Intro Slider */
  .intro-slider-section {
    height: 30vh;
    min-height: 200px;
    margin: 20px 0;
  }

  .hero-slide .hero-content h1 {
    font-size: 20px;
  }

  .hero-slide .hero-content p {
    font-size: 12px;
  }

  /* Footer responsive */
  .footer-left,
  .footer-middle,
  .footer-right {
    padding-top: 20px;
  }

  .office-section h4 {
    font-size: 16px;
  }

  .office-section p {
    font-size: 12px;
  }

  .footer-logo img {
    width: 120px;
  }

  .client-logo {
    width: 40px;
  }

  .footer-bottom {
    padding: 8px 10px;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    font-size: 12px;
  }
}
