/* ============================================
   RJB Group - Responsive Styles for All Devices
   ============================================ */

/* Large Desktop - 1400px and above */
@media screen and (min-width: 1400px) {

  .hero-content,
  .services-grid,
  .features-grid,
  .testimonials-grid,
  .why-choose-content {
    max-width: 1600px;
  }

  .hero-text h1 {
    font-size: 5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }
}

/* Standard Desktop - 1024px to 1399px */
@media screen and (max-width: 1399px) {
  .hero-text h1 {
    font-size: 4rem;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .hero-content {
    gap: 3rem;
  }
}

/* Tablet Landscape - 768px to 1023px */
@media screen and (max-width: 1023px) {

  /* Navigation */
  nav {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Hero Section */
  .hero {
    min-height: 80vh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }

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

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

  .hero-text p {
    font-size: 1.15rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 2.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  /* Sections */
  .section-title {
    font-size: 2.5rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 4rem 1.5rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* ROY ADDED */
  .service-features li {
    padding-left: 1.25rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 2.5rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .quote-form {
    padding: 1.25rem;
  }

  /* Footer */
  footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablet Portrait - 600px to 767px */
@media screen and (max-width: 767px) {

  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    min-height: auto !important;
    height: fit-content !important;
    max-height: 100vh;
    width: 280px;
    background: rgba(2, 6, 23, 0.85);
    /* Changed from 0.98 to 0.85 for more transparency */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 20px 0 0 20px;
    /* ADD THIS LINE - rounds left corners */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }

  .nav-links .cta-button {
    text-align: center;
    margin-top: 1rem;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .cta-button {
    width: 50%;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  .hero-stats {
    gap: 2rem;
    margin-top: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .trust-badge {
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .trust-badge-stars {
    font-size: 1rem;
  }

  .trust-badge-text {
    font-size: 0.75rem;
  }

  /* Sections */
  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 3rem 1.5rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  /* ROY ADDED */
  .service-features li {
    padding-left: 1.25rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature {
    padding: 1.5rem;
  }

  .feature h3 {
    font-size: 1.35rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial {
    padding: 2rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    width: 50%;
    text-align: center;
  }

  .quote-form {
    padding: 1.25rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section {
    text-align: left;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-links {
    text-align: left;
  }

  .contact-item {
    justify-content: left;
  }

  /* Center footer elements on mobile */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom p:first-child {
    grid-column: auto;
  }

  .footer-last-updated {
    grid-column: auto;
    justify-content: center;
  }

}

/* Mobile Landscape - 480px to 599px */
@media screen and (max-width: 599px) {

  /* Navigation */
  .logo {
    font-size: 1.3rem;
  }

  nav {
    padding: 0.85rem 1rem;
  }

  .nav-links {
    width: 250px;
    padding: 5rem 1.5rem 2rem;
  }

  /* Hero Section */
  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
  }

  .stat {
    width: 100%;
  }

  /* Sections */
  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  /* Service Cards */
  .service-card {
    padding: 1.75rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon svg {
    width: 25px;
    height: 25px;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  /* ROY ADDED */
  .service-features li {
    padding-left: 1.25rem;
  }

  /* Features */
  .feature {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .feature h3 {
    font-size: 1.25rem;
  }

  /* Testimonials */
  .testimonial {
    padding: 1.75rem;
  }

  .testimonial-stars {
    font-size: 1.3rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .quote-form {
    padding: 1.25rem;
  }

  /* Footer */
  footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }
}

/* Mobile Portrait - 375px to 479px */
@media screen and (max-width: 479px) {

  /* Navigation */
  .logo {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }

  nav {
    padding: 0.75rem 1rem;
  }

  /* Hero Section */
  .hero {
    margin-top: 70px;
  }

  .hero-content {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text h1 br {
    display: none;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-cta .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .trust-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem;
  }

  /* Sections */
  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 2rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .section-description {
    font-size: 0.9rem;
  }

  /* Service Cards */
  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .service-features li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }

  /* ROY ADDED */
  .service-features li {
    padding-left: 1.25rem;
  }

  /* Features */
  .feature {
    padding: 1.25rem;
  }

  .feature h3 {
    font-size: 1.15rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  /* Testimonials */
  .testimonial {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .quote-form {
    padding: 1.25rem;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem 1.25rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-logo {
    font-size: 1.3rem;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .footer-section p,
  .footer-links a,
  .contact-item {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-last-updated {
    white-space: normal;
  }
}

/* Small Mobile - 320px to 374px */
@media screen and (max-width: 374px) {

  /* Navigation */
  .logo {
    font-size: 1rem;
  }

  nav {
    padding: 0.65rem 0.85rem;
  }

  .mobile-menu-toggle span {
    width: 22px;
  }

  .nav-links {
    width: 100%;
  }

  /* Hero Section */
  .hero-content {
    padding: 1.25rem 0.85rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }

  .hero-cta .cta-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat {
    flex: 1 1 45%;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Sections */
  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 1.75rem 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .section-description {
    font-size: 0.85rem;
  }

  /* Service Cards */
  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
  }

  .service-icon svg {
    width: 22px;
    height: 22px;
  }

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .service-features li {
    font-size: 0.8rem;
  }

  /* Features */
  .feature {
    padding: 1rem;
  }

  .feature-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 1rem;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .feature h3 {
    font-size: 1.05rem;
  }

  .feature p {
    font-size: 0.85rem;
  }

  /* Testimonials */
  .testimonial {
    padding: 1.25rem;
  }

  .testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .testimonial-text {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .testimonial-info h4 {
    font-size: 0.95rem;
  }

  .testimonial-info p {
    font-size: 0.8rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-logo {
    font-size: 1.15rem;
  }

  .footer-section p {
    font-size: 0.85rem;
  }

  .footer-section h3 {
    font-size: 0.95rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  .footer-links a,
  .contact-item a {
    font-size: 0.85rem;
  }
}

/* Landscape Orientation Adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-text p {
    margin-bottom: 1rem;
  }

  .hero-stats {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .services,
  .why-choose,
  .testimonials,
  .cta-section {
    padding: 2rem 1rem;
  }
}

/* Print Styles */
@media print {

  header,
  .mobile-menu-toggle,
  .cta-button,
  .cta-section,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .services,
  .why-choose,
  .testimonials {
    page-break-inside: avoid;
    padding: 1rem;
  }

  .service-card,
  .feature,
  .testimonial {
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --accent-primary: #40c0ff;
    --accent-secondary: #20a0df;
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
  }

  .service-card,
  .feature,
  .testimonial {
    border: 2px solid var(--accent-primary);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}