/* ============================================================
   ReviewGudian - Responsive Styles
   Breakpoints: 1200px, 1024px, 768px, 480px, 360px
   Touch/hover queries, reduced motion, print
   ============================================================ */

/* ------------------------------------------------------------
   0. Critical Global Responsive Fixes
   ------------------------------------------------------------ */

/* iOS input zoom prevention - must be 16px minimum */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="password"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Pricing tables scroll horizontally on mobile */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ------------------------------------------------------------
   1. Large Screens (max-width: 1200px)
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  :root {
    --max-width: 1080px;
  }

  h1 {
    font-size: 3rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }

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


/* ------------------------------------------------------------
   2. Tablet Landscape (max-width: 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

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

  /* Grid adjustments */
  .review-grid,
  .grid-3,
  .testimonial-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .grid-4,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Steps connector line */
  .steps-grid::before {
    display: none;
  }

  /* Sidebar becomes below content */
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Pros/cons side by side still but tighter */
  .pros-cons {
    gap: 1.5rem;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Author card */
  .author-card {
    flex-direction: column;
  }

  .author-card-image {
    width: 100%;
    height: 250px;
  }

  /* Section padding */
  .featured,
  .categories,
  .how-it-works,
  .testimonials,
  .contact-section {
    padding: 4rem 0;
  }

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

  /* Category highlight cards */
  .category-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ------------------------------------------------------------
   3. Tablet Portrait (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* ---- Typography scaling ---- */
  h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  h4 {
    font-size: 1.15rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* ---- Navigation ---- */
  .navbar .nav-links {
    display: none !important;
  }

  .navbar .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .navbar-inner {
    padding: 0 1rem;
  }

  /* Mobile menu - ensure it covers full screen */
  .mobile-menu {
    padding-top: var(--nav-height);
  }

  /* ---- Hero Section ---- */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 2rem) 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.9rem 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

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

  /* Hide floating decorative elements on mobile - they cause overflow */
  .hero-float,
  .hero-float-1,
  .hero-float-2,
  .hero-float-3 {
    display: none;
  }

  /* ---- Grid adjustments - single column ---- */
  .review-grid,
  .grid-2,
  .grid-3,
  .testimonial-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Categories - single column on mobile (NOT 2 - too cramped) */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Category highlights - single column */
  .category-highlights-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Newsletter ---- */
  .newsletter-inner {
    padding: 2.5rem 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: var(--radius-sm);
    border-right: 1px solid rgba(108, 92, 231, 0.25);
    margin-bottom: 0.75rem;
  }

  .newsletter-form button {
    border-radius: var(--radius-sm);
    border-left: 1px solid rgba(108, 92, 231, 0.25);
    width: 100%;
    min-height: 44px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  /* ---- Container ---- */
  .container {
    padding: 0 1rem;
  }

  /* ---- Section padding reduction ---- */
  .featured,
  .categories,
  .how-it-works,
  .testimonials,
  .contact-section,
  .mission-section,
  .newsletter {
    padding: 3rem 0;
  }

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

  /* ---- Review post pages ---- */
  .review-hero {
    min-height: 35vh;
    padding: calc(var(--nav-height) + 2rem) 1rem 2rem;
  }

  .review-post .review-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .review-content {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .review-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .review-content h3 {
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
  }

  .review-content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .review-content blockquote {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .review-meta {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Pros and cons stack vertically */
  .pros-cons {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Pricing table - horizontally scrollable */
  .pricing-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem;
    white-space: nowrap;
  }

  /* Rating box */
  .rating-box {
    padding: 1.5rem;
  }

  .rating-box-score {
    font-size: 3rem;
  }

  .rating-bar-label {
    width: 80px;
    font-size: 0.8rem;
  }

  /* Review content layout sidebar */
  .review-content-layout {
    grid-template-columns: 1fr;
  }

  .review-content-layout .sidebar {
    grid-template-columns: 1fr;
  }

  /* Sidebar stacks into single column */
  .sidebar {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  /* ---- Comments ---- */
  .comments {
    padding: 2rem 1rem;
  }

  .comment-form {
    padding: 1.5rem;
  }

  .comment-form-grid {
    grid-template-columns: 1fr;
  }

  /* Comment form row (name + email) - stack on mobile */
  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .comment.reply {
    margin-left: 1rem;
  }

  .comment-form button {
    width: 100%;
    min-height: 44px;
  }

  /* ---- Contact page ---- */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form button,
  .contact-form .btn-primary {
    width: 100%;
    min-height: 44px;
  }

  .contact-hero {
    padding: calc(var(--nav-height) + 1.5rem) 1rem 2rem;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  /* ---- About page ---- */
  .about-hero {
    padding: calc(var(--nav-height) + 1.5rem) 1rem 2.5rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-hero-subtitle {
    font-size: 1rem;
  }

  .author-card {
    flex-direction: column;
  }

  .author-card-image {
    width: 100%;
    height: 200px;
  }

  .author-card-body {
    padding: 1.5rem;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Mission grid */
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mission-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Author section */
  .author-section .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-avatar-circle {
    margin: 0 auto;
  }

  .author-info {
    text-align: left;
  }

  .author-tags {
    justify-content: flex-start;
  }

  /* Methodology timeline */
  .methodology-timeline {
    padding-left: 1rem;
  }

  /* Section padding for about page */
  .values-section,
  .methodology-section,
  .author-section {
    padding: 3rem 0;
  }

  .about-cta-inner {
    padding: 2.5rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .team-member-avatar {
    width: 90px;
    height: 90px;
  }

  /* ---- Categories page ---- */
  .categories-hero {
    padding: calc(var(--nav-height) + 2rem) 1rem 1.5rem;
  }

  .categories-hero-subtitle {
    font-size: 1rem;
  }

  /* Filter tabs - horizontally scrollable */
  .filter-tabs {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.5rem;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* ---- Search overlay ---- */
  .search-overlay {
    padding-top: 10vh;
  }

  .search-input {
    font-size: 16px;
    padding: 1rem 1.25rem 1rem 3rem;
  }

  .search-overlay-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ---- Cookie consent ---- */
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }

  .cookie-consent p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-accept,
  .cookie-decline {
    min-height: 44px;
    padding: 0.7rem 1.5rem;
  }

  /* ---- Breadcrumbs ---- */
  .breadcrumbs {
    font-size: 0.8rem;
    flex-wrap: wrap;
    padding-top: calc(var(--nav-height) + 0.75rem);
  }

  /* ---- Pagination ---- */
  .pagination {
    gap: 0.35rem;
    padding: 2rem 0;
    flex-wrap: wrap;
  }

  .pagination-btn {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }

  .pagination-btn.prev,
  .pagination-btn.next {
    padding: 0 0.75rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* ---- Back to top ---- */
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1.1rem;
  }

  /* ---- Step cards ---- */
  .step-card {
    padding: 2rem;
  }

  .step-number {
    font-size: 4rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

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

  /* ---- Forms (all) - ensure full width inputs ---- */
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
  }

  /* ---- Images and embeds never overflow ---- */
  .review-content img,
  .review-content iframe,
  .review-content video,
  .review-content embed {
    max-width: 100%;
    height: auto;
  }

  /* ---- Legal pages ---- */
  .legal-content {
    padding: 0 1rem 3rem;
  }

  /* ---- Touch targets - minimum 44x44px on all clickable elements ---- */
  .nav-links a,
  .footer-links ul a,
  .breadcrumbs a,
  .sidebar-category-item a,
  .comment-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


/* ------------------------------------------------------------
   4. Mobile (max-width: 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

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

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

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

  /* Full width grids */
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .team-member-avatar {
    width: 72px;
    height: 72px;
  }

  .team-member h4 {
    font-size: 0.95rem;
  }

  /* Review card footer stacks */
  .review-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .review-card-body {
    padding: 1.25rem;
  }

  .review-card-title {
    font-size: 1.1rem;
  }

  .review-card-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  /* Buttons full width */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Mobile menu font smaller */
  .mobile-menu a {
    font-size: 1.5rem;
  }

  /* Newsletter */
  .newsletter-inner {
    padding: 2rem 1rem;
  }

  .newsletter-inner h2 {
    font-size: 1.4rem;
  }

  /* Container tighter padding */
  .container {
    padding: 0 0.75rem;
  }

  /* Comment form */
  .comment-form {
    padding: 1.25rem;
  }

  .comment {
    padding: 1.25rem;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .comment-actions {
    gap: 1rem;
  }

  /* Contact info cards */
  .contact-info-card {
    padding: 1.25rem;
  }

  /* Rating box */
  .rating-box-score {
    font-size: 2.5rem;
  }

  .rating-breakdown {
    max-width: 100%;
  }

  .rating-bar-label {
    width: 70px;
    font-size: 0.75rem;
  }

  .rating-big .rating-score {
    font-size: 2.5rem;
  }

  .rating-row > span:first-child {
    width: 70px;
    font-size: 0.78rem;
  }

  /* Section header */
  .section-desc {
    font-size: 0.95rem;
  }

  /* Pagination - hide some buttons */
  .pagination-ellipsis {
    display: none;
  }

  /* Search */
  .search-input-wrapper {
    padding: 0 0.75rem;
  }

  .search-input {
    font-size: 16px;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
  }

  /* Verdict box */
  .verdict-box {
    padding: 1.25rem;
  }

  /* Sidebar widgets */
  .sidebar-widget {
    padding: 1.25rem;
  }

  .sidebar-popular-post-image {
    width: 60px;
    height: 45px;
  }

  .sidebar-popular-post-title {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 0;
  }

  .footer-brand p {
    font-size: 0.9rem;
  }

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

  .footer-copyright {
    font-size: 0.8rem;
  }

  /* Review post hero */
  .review-post .review-hero h1 {
    font-size: 1.6rem;
  }

  /* About page */
  .about-cta-inner {
    padding: 2rem 1rem;
  }

  /* Categories page */
  .categories-hero {
    padding: calc(var(--nav-height) + 1.5rem) 0.75rem 1rem;
  }

  .categories-hero h1 {
    font-size: 1.8rem;
  }

  .category-highlight-card {
    flex-direction: column;
    text-align: center;
  }

  .category-highlight-icon {
    margin: 0 auto;
  }

  /* Contact hero */
  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
  }
}


/* ------------------------------------------------------------
   5. Very Small Screens (max-width: 360px)
   ------------------------------------------------------------ */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .navbar-inner {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .category-card {
    padding: 1.25rem;
  }

  .review-card-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Even smaller typography */
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .newsletter-inner h2 {
    font-size: 1.25rem;
  }
}


/* ------------------------------------------------------------
   6. Hover Media Query - only apply hover effects on non-touch
   ------------------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(108, 92, 231, 0.2);
  }

  .review-card:hover .review-card-image img {
    transform: scale(1.05);
  }

  .review-card:hover .review-card-title {
    color: var(--primary-light);
  }

  .category-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
  }

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

  .step-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: var(--shadow-glow);
  }

  .value-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
  }

  .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }

  .hover-glow:hover {
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.25);
  }

  .hover-scale:hover {
    transform: scale(1.03);
  }

  .nav-links a:hover {
    color: var(--text-bright);
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5);
  }

  .btn-secondary:hover {
    border-color: rgba(108, 92, 231, 0.6);
    background: rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
  }

  .footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--text-bright);
    transform: translateY(-2px);
  }

  .back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
  }
}

/* Touch-only: remove hover transforms that feel janky on touch */
@media (hover: none) and (pointer: coarse) {
  .review-card:hover,
  .category-card:hover,
  .testimonial-card:hover,
  .step-card:hover,
  .value-card:hover,
  .category-highlight-card:hover {
    transform: none;
  }

  .hover-lift:hover,
  .hover-scale:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  /* Active states for touch devices */
  .review-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .category-card:active,
  .step-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .btn-primary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .btn-secondary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  /* Ensure touch targets are big enough */
  .filter-tab,
  .pagination-btn,
  .cookie-accept,
  .cookie-decline,
  .back-to-top,
  .search-overlay-close {
    min-width: 44px;
    min-height: 44px;
  }
}


/* ------------------------------------------------------------
   7. Prefers Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-up-lg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-float,
  .hero-float-1,
  .hero-float-2,
  .hero-float-3 {
    animation: none;
  }

  .loading-spinner {
    animation: rotate 1.5s linear infinite;
  }

  .animated-gradient,
  .animated-gradient-text {
    animation: none;
  }

  .typewriter {
    animation: none;
    width: auto;
    border-right: none;
  }

  .word-reveal > span {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .text-reveal,
  .text-reveal-left {
    animation: none;
    clip-path: none;
  }

  .image-reveal {
    clip-path: none;
  }

  .hover-shine::before {
    display: none;
  }

  .parallax {
    will-change: auto;
  }
}


/* ------------------------------------------------------------
   8. Prefers Color Scheme (Light Mode Hints)
   ------------------------------------------------------------ */
@media (prefers-color-scheme: light) {
  /* This site is dark-by-design, but we add a hint for
     users who might expect light mode. The site stays dark
     but we slightly adjust contrast for better readability
     in bright environments. */
}


/* ------------------------------------------------------------
   9. High Contrast Mode
   ------------------------------------------------------------ */
@media (forced-colors: active) {
  .btn-primary,
  .btn-secondary,
  .nav-cta,
  .cookie-accept {
    border: 2px solid ButtonText;
  }

  .review-card,
  .category-card,
  .step-card,
  .testimonial-card,
  .sidebar-widget,
  .contact-form,
  .comment,
  .comment-form {
    border: 1px solid CanvasText;
  }

  .gradient-text,
  .text-gradient,
  .animated-gradient-text {
    -webkit-text-fill-color: unset;
    background: none;
  }
}


/* ------------------------------------------------------------
   10. Print Styles
   ------------------------------------------------------------ */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .hamburger,
  .mobile-menu,
  .footer,
  .back-to-top,
  .cookie-consent,
  .search-overlay,
  .newsletter,
  .sidebar,
  .comment-form,
  .comment-actions,
  .hero-buttons,
  .hero-stats,
  .hero-float,
  .hero-badge,
  .pagination,
  .breadcrumbs,
  .nav-cta,
  .footer-social,
  .loading-spinner,
  .page-loader,
  .filter-tabs {
    display: none !important;
  }

  /* Reset colors for readability */
  body {
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000000 !important;
    page-break-after: avoid;
  }

  p, li {
    color: #333333 !important;
  }

  a {
    color: #333333 !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666666;
  }

  /* Remove all backgrounds and shadows */
  .review-card,
  .category-card,
  .step-card,
  .testimonial-card,
  .sidebar-widget,
  .contact-form,
  .contact-info-card,
  .comment,
  .comment-form,
  .rating-box,
  .verdict-box,
  .pros,
  .cons,
  .author-card,
  .category-highlight-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
  }

  /* Gradient text becomes solid */
  .gradient-text,
  .text-gradient,
  .section-label,
  .stat-number,
  .rating-box-score {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }

  /* Layout adjustments */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .hero {
    min-height: auto !important;
    padding: 2rem 0 !important;
    background: none !important;
  }

  .review-grid,
  .category-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .testimonial-grid,
  .steps-grid,
  .values-grid,
  .team-grid,
  .category-highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .review-content {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .review-card-image {
    background: #f0f0f0 !important;
  }

  /* Page breaks */
  .review-card,
  .testimonial-card,
  .step-card {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  /* Pros/cons in print */
  .pros, .cons {
    page-break-inside: avoid;
  }

  .pros h4 {
    color: #008000 !important;
  }

  .cons h4 {
    color: #cc0000 !important;
  }

  /* Rating bars in print */
  .rating-bar-track {
    background: #e0e0e0 !important;
  }

  .rating-bar-fill {
    background: #333333 !important;
  }

  /* Footer copyright only */
  .footer-copyright {
    display: block !important;
    text-align: center;
    color: #666666 !important;
    padding: 1rem 0;
    border-top: 1px solid #cccccc;
    margin-top: 2rem;
  }
}


/* ------------------------------------------------------------
   11. Landscape Orientation Fixes
   ------------------------------------------------------------ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 1rem) 2rem 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .mobile-menu a {
    font-size: 1.25rem;
    padding: 0.35rem 1rem;
  }

  .mobile-menu {
    gap: 0.75rem;
  }
}


/* ------------------------------------------------------------
   12. Container Query Fallback (wide content areas)
   ------------------------------------------------------------ */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

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

  .footer-grid {
    gap: 4rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1440px;
  }

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

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