/* ==========================================
   OLU-LEGAL — MOBILE RESPONSIVENESS
   Breakpoints:
     1024px  Tablets (landscape)
      768px  Tablets (portrait)
      480px  Large phones
      360px  Small phones
   ========================================== */

/* ==========================================
   1024px — TABLET LANDSCAPE
   ========================================== */
@media (max-width: 1024px) {
  /* --- Navigation --- */
  .nav-links {
    gap: 24px;
  }

  /* --- Hero --- */
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-center {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
  }

  .hero-image-container {
    height: 500px;
  }

  .hero-right {
    padding-left: 10px;
  }

  /* --- Sections --- */
  .why-grid,
  .story-grid {
    gap: 40px;
  }

  .contact-grid {
    gap: 40px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  /* --- Services --- */
  .service-detailed-content {
    padding: 36px;
  }

  /* --- Process --- */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }
}

/* ==========================================
   768px — TABLET PORTRAIT
   ========================================== */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 40px 60px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

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

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

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    width: 100%;
    color: var(--white);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
  }

  .nav-cta {
    margin-top: 20px;
    text-align: center !important;
    display: block !important;
    padding: 14px 28px !important;
    width: 100% !important;
  }

  .navbar.scrolled .nav-links {
    background: var(--primary);
  }

  /* Hamburger → X animation */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.active {
    display: block;
  }

  /* --- Hero --- */
  .hero {
    min-height: 100svh;
    padding: 150px 0 60px;
    align-items: flex-start;
    background:
      linear-gradient(
        160deg,
        rgba(25, 2, 79, 0.88) 0%,
        rgba(6, 2, 39, 0.95) 100%
      ),
      url("../assets/imgs/olulegal_2.jpg") center / cover no-repeat;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-center {
    display: none;
  }

  /* — Left panel: title + CTA — */
  .hero-left {
    text-align: center;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  /* Decorative label above title */
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--white);
  }

  .hero-highlight {
    font-weight: 800;
    color: var(--secondary);
  }

  .hero-description {
    font-size: 0.97rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    max-width: 100%;
    margin-bottom: 28px;
  }

  .btn-link {
    color: rgba(255, 255, 255, 0.9);
  }

  .hero-buttons {
    justify-content: center;
    margin-bottom: 0;
    gap: 14px;
  }

  /* Divider between left and right panels */
  .hero-left::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--secondary);
    margin: 36px auto 0;
    opacity: 0.7;
  }

  /* — Right panel: services + stats — */
  .hero-right {
    padding-left: 0;
    padding-bottom: 0;
    align-items: center;
    justify-content: flex-start;
    padding-top: 36px;
  }

  /* Icon row */
  .icon-indicator {
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-service-icons {
    justify-content: center;
    margin-bottom: 24px;
  }

  /* Service list */
  .hero-services {
    width: 100%;
    gap: 0;
    margin-bottom: 36px;
  }

  .service-item {
    background: transparent;
    padding: 14px 8px;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    align-items: center;
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .service-item i {
    color: var(--secondary);
    opacity: 1;
    font-size: 0.85rem;
  }

  .service-item h4 {
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 600;
  }

  .service-item p {
    display: block !important;
    font-size: 0.8rem;
    color: var(--white);
    opacity: 0.72;
  }

  /* Stats — glass card */
  .hero-right-stats {
    display: flex;
    justify-content: space-around;
    gap: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 16px;
    backdrop-filter: blur(12px);
  }

  .right-stat {
    align-items: center;
    text-align: center;
  }

  .right-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .right-stat-number {
    font-size: 1.9rem;
    color: var(--white);
  }

  /* --- Section Headers --- */
  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  /* --- Practice Areas --- */
  .practice-areas {
    padding: 70px 0;
  }

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

  .area-card {
    padding: 30px 24px;
  }

  /* --- Why Choose Us --- */
  .why-choose {
    padding: 70px 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-image::before {
    display: none;
  }

  .why-feature:hover {
    transform: none;
  }

  /* --- Testimonials --- */
  .testimonials {
    padding: 70px 0;
  }

  .testimonial-card {
    padding: 36px 24px;
  }

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

  /* --- CTA --- */
  .cta-section {
    padding: 70px 0;
  }

  .cta-box {
    padding: 50px 30px;
    border-radius: 16px;
  }

  .cta-box h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .cta-box p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* --- About Page Hero --- */
  .page-hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .page-hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  /* --- Our Story --- */
  .our-story {
    padding: 70px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-image {
    order: -1;
  }

  .story-image::after {
    display: none;
  }

  /* --- Values --- */
  .values-section {
    padding: 70px 0;
  }

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

  /* --- Services Page --- */
  .services-hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .all-services {
    padding: 70px 0;
  }

  .service-detailed-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-detailed-card:nth-child(even) {
    direction: ltr;
  }

  .service-detailed-image {
    min-height: 250px;
  }

  .service-detailed-content {
    padding: 30px 24px;
  }

  .service-detailed-content .service-number {
    font-size: 3rem;
  }

  .service-detailed-content h3 {
    font-size: 1.5rem;
  }

  /* --- Process --- */
  .process-section {
    padding: 70px 0;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }

  /* --- Contact Page --- */
  .contact-hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .contact-section {
    padding: 70px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* --- FAQ --- */
  .faq-section {
    padding: 70px 0;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 0.98rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 24px 20px;
  }

  /* --- Footer --- */
  .footer {
    padding: 60px 0 0;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 24px 0;
  }

  .footer-bottom-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- Scroll to Top --- */
  .scroll-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ==========================================
   480px — LARGE PHONES
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* --- Hero --- */
  .hero {
    padding: 130px 0 50px;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    font-weight: 800;
  }

  .hero-highlight {
    font-size: inherit;
    font-weight: 800;
  }

  .hero-description {
    font-size: 0.95rem;
    font-weight: 400;
  }

  .btn {
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-service-icons {
    gap: 10px;
  }

  .icon-indicator {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .right-stat-number {
    font-size: 1.8rem;
  }

  /* --- Section Headers --- */
  .section-title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

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

  /* --- Practice Areas --- */
  .area-card {
    padding: 24px 20px;
  }

  .area-icon {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .area-card h3 {
    font-size: 1.2rem;
  }

  /* --- Why Choose Us --- */
  .why-feature {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .why-feature-icon {
    min-width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 28px 18px;
  }

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

  .testimonial-author {
    flex-direction: column;
    gap: 12px;
  }

  /* --- CTA --- */
  .cta-box {
    padding: 40px 20px;
  }

  /* --- Values --- */
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 30px 20px;
  }

  /* --- Services Detail --- */
  .service-detailed-image {
    min-height: 220px;
  }

  .service-detailed-content {
    padding: 24px 18px;
  }

  /* --- Process --- */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 360px;
    margin: 0 auto;
  }

  /* --- Contact Info Cards --- */
  .contact-info-card {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .contact-info-icon {
    min-width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .contact-form-wrapper h3 {
    font-size: 1.4rem;
  }

  /* --- FAQ --- */
  .faq-question {
    font-size: 0.92rem;
    padding: 18px 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-brand h3 {
    font-size: 1.5rem;
  }

  .footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  /* --- Page Heroes --- */
  .page-hero,
  .services-hero,
  .contact-hero {
    padding: 110px 16px 50px;
  }

  .page-hero-content h1,
  .services-hero-content h1,
  .contact-hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .page-hero-content p,
  .services-hero-content p,
  .contact-hero-content p {
    font-size: 1rem;
  }

  .breadcrumb {
    gap: 8px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- Our Story --- */
  .story-content h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .story-content p {
    font-size: 0.98rem;
  }
}

/* ==========================================
   360px — SMALL PHONES
   ========================================== */
@media (max-width: 360px) {
  .nav-logo {
    font-size: 1.4rem;
  }

  .nav-logo i {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.95rem;
    font-weight: 800;
  }

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

  .hero-right-stats {
    padding: 18px 12px;
  }

  .right-stat-number {
    font-size: 1.6rem;
  }

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

  .testimonial-card {
    padding: 24px 14px;
  }

  .cta-box {
    padding: 32px 14px;
  }

  .contact-form-wrapper {
    padding: 20px 14px;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 16px 16px;
  }

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

/* ==========================================
   UTILITIES — APPLIES TO ALL BREAKPOINTS
   ========================================== */

/* Prevent hero image from showing on mobile — explicit */
@media (max-width: 768px) {
  .hero-center {
    display: none !important;
  }
}

/* Smooth mobile menu transition overlay */
body.menu-open {
  overflow: hidden;
}

/* Ensure images never overflow on any device */
@media (max-width: 768px) {
  img {
    max-width: 100%;
  }

  /* Remove hover transforms that feel wrong on touch */
  .contact-info-card:hover {
    transform: none;
  }

  .area-card:hover {
    transform: translateY(-4px);
  }

  .why-feature:hover {
    transform: none;
  }

  .service-detailed-card:hover {
    transform: none;
  }

  /* Sections tighter padding */
  .practice-areas,
  .why-choose,
  .testimonials,
  .cta-section,
  .our-story,
  .values-section,
  .all-services,
  .process-section,
  .contact-section,
  .faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}
