/* ============================================================
   ARUNACHALESHWARA – Responsive Styles
   ============================================================ */

/* ---------- Extra Large Screens (1440px+) ---------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

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

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

/* ---------- Large Desktops (1200px – 1439px) ---------- */
@media (max-width: 1399px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

/* ---------- Laptops (1024px – 1199px) ---------- */
@media (max-width: 1199px) {
  :root {
    --section-py: 4rem;
  }

  .navbar-brand-wrapper img {
    height: 64px;
  }

  .main-navbar.scrolled .navbar-brand-wrapper img {
    height: 52px;
  }

  .main-navbar .nav-link {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.84rem;
  }

  .btn-enquire-nav {
    padding: 0.4rem 0.95rem !important;
    font-size: 0.82rem !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .masonry-grid {
    column-count: 3;
  }

  .tour-list-item-img {
    width: 240px;
  }
}

/* ---------- Tablets (768px – 1023px) ---------- */
@media (max-width: 1023px) {
  :root {
    --section-py: 3.5rem;
  }

  .hero-section {
    min-height: 80vh;
  }

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

  .hero-subtitle {
    font-size: 0.88rem;
  }

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .page-hero {
    min-height: 250px;
  }

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

  .detail-hero-img {
    height: 320px;
  }

  .masonry-grid {
    column-count: 2;
  }

  .tour-list-item {
    flex-direction: column;
  }

  .tour-list-item-img {
    width: 100%;
    height: 220px;
  }
}

/* ---------- Stacked Hero for Tablets & Mobile (<= 991px) ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 0;
    background: linear-gradient(180deg, #45120E 0%, #3A0E0B 60%, #2c0a07 100%);
  }

  .hero-video-container {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    background-color: #0b0504;
    overflow: hidden;
    z-index: 1;
    border-top: 1px solid rgba(201, 149, 53, 0.25);
    border-bottom: 2px solid var(--clr-gold);
  }

  .hero-video {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #0b0504;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 1.75rem 1.25rem 2.25rem;
    width: 100%;
  }

  .hero-text-box {
    max-width: 100%;
  }

  .hero-buttons .btn-outline-gold {
    color: var(--clr-gold-premium);
    border-color: var(--clr-gold);
    background-color: rgba(201, 149, 53, 0.1);
  }
}

/* ---------- Mobile Landscape & Large Phones (576px – 767px) ---------- */
@media (max-width: 767px) {
  :root {
    --section-py: 3rem;
  }

  body {
    font-size: 14px;
  }

  /* Top Bar */
  .top-bar {
    padding: 6px 0 8px;
    font-size: 0.78rem;
    max-height: 150px;
  }

  .top-bar .row {
    row-gap: 0.35rem;
  }

  header.scrolled .top-bar,
  .site-header.scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }

  .top-bar .top-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    width: 100%;
  }

  .top-bar .top-info .d-none-mobile {
    display: none;
  }

  .top-bar .social-links {
    justify-content: center;
  }

  .top-bar .social-links a {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
  }

  /* Navbar */
  .navbar-brand-wrapper img {
    height: 58px;
    width: auto;
    max-width: 68vw;
    object-fit: contain;
  }

  .main-navbar.scrolled .navbar-brand-wrapper img {
    height: 50px;
  }

  .brand-text .brand-name {
    font-size: 0.95rem;
  }

  .brand-text .brand-subtitle {
    font-size: 0.6rem;
  }

  .brand-text .brand-location {
    display: none;
  }

  .main-navbar .navbar-collapse {
    background: var(--clr-white);
    padding: 1rem;
    border-top: 1px solid var(--clr-gray-200);
    margin-top: 0.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 85px);
    overflow-y: auto;
  }

  .main-navbar .nav-link {
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid var(--clr-gray-200);
  }

  .main-navbar .nav-link::after {
    display: none;
  }

  .btn-enquire-nav {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  /* Hero: Compact full video at top, clean maroon text block below */
  .hero-section {
    min-height: auto;
    padding: 0;
  }

  .hero-video {
    max-height: 260px;
  }

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

  .hero-welcome {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    text-shadow: none;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.24;
    letter-spacing: 0.015em;
    margin-bottom: 0.45rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    letter-spacing: 0.06em;
    text-shadow: none;
  }

  .hero-tagline {
    font-size: 0.96rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
  }

  .hero-description {
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.3rem;
    text-shadow: none;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline-gold {
    width: auto;
    font-size: 0.84rem;
    padding: 0.55rem 1.15rem;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header .subtitle {
    font-size: 0.92rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  /* Page Hero */
  .page-hero {
    min-height: 200px;
  }

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

  /* Trust section: slow seamless left-to-right marquee on mobile only */
  .trust-section {
    overflow: hidden;
    padding: 1.15rem 0;
  }

  .trust-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }

  .trust-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    animation: trustScrollLTR 28s linear infinite;
  }

  .trust-group {
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
    gap: 0;
  }

  .trust-group-clone {
    display: flex;
  }

  .trust-item {
    flex: 0 0 auto;
    padding: 0.65rem 1.25rem;
  }

  .trust-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .trust-section:focus-within .trust-track,
  .trust-section:active .trust-track {
    animation-play-state: paused;
  }

  .trust-icon {
    width: 45px;
    height: 45px;
  }

  .trust-item h6 {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Service Cards */
  .service-card-img {
    height: 185px;
  }

  .service-card-body {
    padding: 1.65rem 1rem 1.15rem;
  }

  .detail-hero-img {
    height: 250px;
  }

  /* Tour Cards */
  .tour-card-img {
    height: 180px;
  }

  /* Gallery */
  .masonry-grid {
    column-count: 2;
    column-gap: 0.75rem;
  }

  .gallery-card-wrapper {
    margin-bottom: 0.75rem;
  }

  .gallery-card-caption {
    padding: 0.75rem 0.85rem;
  }

  .gallery-card-title {
    font-size: 0.88rem;
  }

  .gallery-card-desc {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .gallery-preview-img-wrap {
    height: 240px;
  }

  .gallery-preview-title {
    font-size: 0.88rem;
  }

  .gallery-item img {
    height: 180px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-primary-custom,
  .cta-buttons .btn-whatsapp,
  .cta-buttons .btn-gold,
  .cta-buttons .btn-outline-gold {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    padding-top: 2.5rem;
  }

  .footer-logo-link {
    padding: 0.5rem 0.85rem;
    margin-bottom: 1rem;
  }

  .footer-brand img {
    height: 56px;
  }

  .footer-heading {
    margin-top: 1.5rem;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
  }

  .footer-bottom .row > div {
    margin-bottom: 0.5rem;
  }

  /* Floating buttons */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 18px;
  }

  .whatsapp-float i {
    font-size: 1.5rem;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 78px;
    right: 20px;
  }

  .audio-float {
    bottom: 20px;
    left: 16px;
    padding: 0.5rem 0.85rem;
    font-size: 0.74rem;
    gap: 0.4rem;
  }

  .audio-float-icon {
    font-size: 0.95rem;
  }

  .welcome-popup-dialog {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    border-radius: 14px;
  }

  .welcome-popup-frame {
    border-radius: 14px;
  }

  .welcome-popup-img {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .welcome-popup-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  /* Forms */
  .search-filter-bar {
    padding: 1rem;
  }

  /* Enquiry form */
  .enquiry-summary {
    padding: 1rem;
  }

  /* Tour list view - force grid on mobile */
  .tour-list-item {
    flex-direction: column;
  }

  .tour-list-item-img {
    width: 100%;
    height: 180px;
  }

  /* Error page */
  .error-page h1 {
    font-size: 5rem;
  }

  /* CTA background attachment */
  .cta-bg {
    background-attachment: scroll;
  }
}

/* ---------- Small Phones (320px – 575px) ---------- */
@media (max-width: 575px) {
  .hero-content {
    padding: 1.35rem 1.15rem 1.85rem;
  }

  .hero-title {
    font-size: 1.42rem;
    line-height: 1.25;
  }

  .hero-welcome {
    font-size: 0.72rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    line-height: 1.45;
    letter-spacing: 0.05em;
  }

  .hero-tagline {
    font-size: 0.92rem;
  }

  .hero-description {
    font-size: 0.83rem;
    line-height: 1.6;
  }

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

  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-outline-gold {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

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

  .masonry-grid {
    column-count: 1;
  }

  .gallery-card-wrapper {
    margin-bottom: 1rem;
  }

  .gallery-preview-img-wrap {
    height: 220px;
  }

  .gallery-preview-caption {
    padding: 1rem 0.75rem 0.75rem;
  }

  .gallery-preview-title {
    font-size: 0.84rem;
  }

  .gallery-swiper-prev,
  .gallery-swiper-next {
    display: none;
  }

  .gallery-item img {
    height: 200px;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .info-card {
    padding: 1.5rem 1.15rem;
  }

  .detail-hero-img {
    height: 215px;
  }

  .error-page h1 {
    font-size: 4rem;
  }

  .cta-content h2 {
    font-size: 1.35rem;
  }

  .btn-primary-custom,
  .btn-gold,
  .btn-outline-gold,
  .btn-outline-maroon,
  .btn-whatsapp {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .navbar-brand-wrapper img {
    height: 52px;
    width: auto;
    max-width: 68vw;
    object-fit: contain;
  }

  .main-navbar.scrolled .navbar-brand-wrapper img {
    height: 46px;
  }

  .brand-text .brand-name {
    font-size: 0.85rem;
  }

  .brand-text .brand-subtitle {
    font-size: 0.55rem;
  }

  /* Contact page */
  .contact-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---------- Extra Small (320px) ---------- */
@media (max-width: 359px) {
  .navbar-brand-wrapper img {
    height: 46px;
    max-width: 64vw;
  }

  .main-navbar.scrolled .navbar-brand-wrapper img {
    height: 42px;
  }

  .hero-title {
    font-size: 1.28rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .trust-item {
    padding: 0.55rem 1rem;
  }

  .trust-icon {
    width: 40px;
    height: 40px;
  }

  .trust-icon i {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  body {
    font-size: 13px;
  }
}

/* ---------- Mobile Trust Indicators Marquee Keyframes & Motion Fallbacks ---------- */
@keyframes trustScrollLTR {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 767px) and (hover: hover) {
  .trust-section:hover .trust-track {
    animation-play-state: paused;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .trust-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .trust-track {
    animation: none;
    transform: none;
  }

  .trust-group-clone {
    display: none;
  }
}

/* ---------- Yellow (#FFC908) Mobile Hero Overrides ---------- */
@media (max-width: 991.98px) {
  .hero-section,
  body.page-home .hero-section {
    background: #FFC908;
  }

  .hero-video-container,
  body.page-home .hero-video-container {
    border-bottom: 2px solid #E5B400;
  }

  .hero-welcome,
  body.page-home .hero-welcome {
    color: #681D17;
    font-weight: 700;
    text-shadow: none;
  }

  .hero-welcome i,
  body.page-home .hero-welcome i {
    color: #681D17;
  }

  .hero-title,
  body.page-home .hero-title {
    color: #45120E;
    font-weight: 800;
    text-shadow: none;
  }

  .hero-title .text-gold,
  body.page-home .hero-title .text-gold {
    color: #8B2E26 !important;
  }

  .hero-subtitle,
  body.page-home .hero-subtitle {
    color: #681D17;
    font-weight: 700;
    text-shadow: none;
  }

  .hero-tagline,
  body.page-home .hero-tagline {
    color: #45120E;
    font-weight: 700;
    text-shadow: none;
  }

  .hero-description,
  body.page-home .hero-description {
    color: #3A0E0B;
    text-shadow: none;
  }

  .hero-buttons .btn-outline-gold,
  body.page-home .hero-buttons .btn-outline-gold {
    background-color: #45120E;
    color: #FFFFFF;
    border: 2px solid #45120E;
    font-weight: 600;
  }

  .hero-buttons .btn-outline-gold:hover,
  body.page-home .hero-buttons .btn-outline-gold:hover {
    background-color: #681D17;
    border-color: #681D17;
    color: #FFFFFF;
  }
}

/* ---------- Responsive Animated Bus Scroll Track ---------- */
@media (max-width: 767px) {
  .scroll-bus-track {
    right: 3px;
    width: 26px;
    top: 70px;
    height: calc(100vh - 160px);
  }

  .scroll-bus-road {
    left: 11px;
    width: 4px;
  }

  .scroll-bus-vehicle {
    width: 22px;
    height: 36px;
    left: 2px;
  }

  .scroll-bus-vehicle svg {
    width: 22px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .scroll-bus-track {
    right: 2px;
    width: 22px;
  }

  .scroll-bus-road {
    left: 9px;
    width: 4px;
  }

  .scroll-bus-vehicle {
    width: 18px;
    height: 30px;
    left: 2px;
  }

  .scroll-bus-vehicle svg {
    width: 18px;
    height: 30px;
  }
}

/* Founder's Story Responsive */
@media (max-width: 991.98px) {
  .founder-story-section {
    padding: 3.5rem 0;
  }
  .founder-img-card {
    max-width: 380px;
    margin: 0 auto 2rem;
  }
  .founder-img-frame img {
    max-height: 440px;
  }
  .founder-sig-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .founder-story-section {
    padding: 2.75rem 0;
  }
  .founder-img-card {
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
  .founder-img-frame img {
    max-height: 380px;
  }
  .founder-img-badge {
    padding: 1.2rem 1rem 1rem;
  }
  .founder-story-content p {
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .founder-quote-lead {
    font-size: 1rem !important;
  }
  .founder-mantra-card {
    padding: 1rem;
  }
  .founder-mantra-card .mantra-text {
    font-size: 1.1rem;
  }
  .founder-sig-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .founder-sig-card .d-flex {
    justify-content: center;
  }
  .founder-sig-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .top-bar,
  .main-navbar,
  .whatsapp-float,
  .back-to-top,
  .audio-float,
  .welcome-popup-dialog,
  .page-preloader,
  .trust-group-clone,
  .scroll-bus-track {
    display: none !important;
  }

  .trust-track {
    animation: none !important;
    transform: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

