/* Responsive Styles — Sapthagiri Villa */

@media (min-width: 768px) {
  .navbar-brand img {
    height: 58px;
    max-width: 230px;
  }
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

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

@media (max-width: 991px) {
  .section-padding {
    padding: 56px 0;
  }

  .intro-grid,
  .experience-grid,
  .nature-grid,
  .why-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-header {
    margin-bottom: 40px;
  }

  .why-gallery-main {
    grid-row: auto;
    aspect-ratio: 16/10;
  }

  .feature-stats {
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 48px;
    padding-top: 36px;
  }

  .trust-stats-section {
    padding: 36px 0;
  }

  .trust-stats {
    gap: 32px;
  }

  .features-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .hero-floating-badge {
    right: 20px;
    bottom: 120px;
    max-width: 240px;
    padding: 16px 20px;
  }

  .parallax-bg {
    background-attachment: scroll;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 24px;
    gap: 2px;
    transition: right var(--transition);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 13, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Tablet & mobile compact */
@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 44px 0;
  }

  .section-label {
    font-size: 0.68rem;
    margin-bottom: 10px;
    letter-spacing: 0.15em;
  }

  .section-title {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Navbar */
  .navbar-brand img {
    height: 40px;
    max-width: 150px;
  }

  /* Hero compact */
  .hero {
    min-height: 100svh;
    min-height: 600px;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 0.72rem;
    margin-bottom: 20px;
  }

  .hero-title {
    margin-bottom: 10px;
  }

  .hero-welcome {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero-brand {
    font-size: clamp(1.85rem, 8vw, 2.8rem);
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .hero-floating-badge {
    display: none;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .scroll-indicator span {
    font-size: 0.62rem;
    margin-bottom: 8px;
  }

  .wave-scroll {
    width: 24px;
    height: 40px;
  }

  /* Intro compact */
  .intro-grid {
    gap: 28px;
  }

  .intro-image-wrap {
    aspect-ratio: 16/11;
    border-radius: var(--radius-lg);
  }

  .intro-image-badge {
    bottom: 12px;
    left: 12px;
    padding: 10px 14px;
  }

  .intro-image-badge .number {
    font-size: 1.75rem;
  }

  .intro-image-badge .label {
    font-size: 0.72rem;
  }

  .intro-content p {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .intro-features {
    gap: 12px;
    margin-top: 20px;
  }

  .intro-feature {
    gap: 8px;
    font-size: 0.82rem;
  }

  .intro-feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Why Choose Us — mobile compact */
  .why-section {
    overflow: hidden;
  }

  .why-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .why-header .section-subtitle {
    margin: 0;
  }

  .why-grid-layout {
    gap: 24px;
  }

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

  .why-gallery-main {
    grid-column: span 2;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
  }

  .why-gallery-sub {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
  }

  .why-points {
    gap: 8px;
  }

  .why-point {
    padding: 12px 14px;
    gap: 12px;
    border-radius: var(--radius-sm);
  }

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

  .why-point-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .why-point h4 {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .why-shape--circle {
    width: 180px;
    height: 180px;
    top: 5%;
    right: -60px;
  }

  .why-shape--ring {
    width: 100px;
    height: 100px;
  }

  .why-shape--blob {
    width: 140px;
    height: 140px;
  }

  .why-shape--dot-grid,
  .why-shape--triangle {
    display: none;
  }

  /* Features scroll — compact cards */
  .features-section {
    overflow: hidden;
  }

  .features-header {
    margin-bottom: 24px;
    gap: 16px;
  }

  .features-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .feature-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .feature-card-image {
    height: 160px;
  }

  .feature-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 12px;
    right: 12px;
  }

  .feature-card-body {
    padding: 16px;
  }

  .feature-card-body h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .feature-card-body p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .features-swiper {
    padding-bottom: 8px;
  }

  .feature-stats {
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
    justify-content: space-around;
  }

  .trust-stats-section {
    padding: 28px 0;
  }

  .trust-stats {
    gap: 20px 24px;
    justify-content: space-around;
  }

  .trust-stat-item {
    min-width: 90px;
  }

  .trust-stat-item .stat-number {
    font-size: 1.85rem;
  }

  .trust-stat-item .stat-label {
    font-size: 0.72rem;
    margin-top: 6px;
  }

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

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

  /* Testimonials compact */
  .testimonials-header {
    margin-bottom: 32px;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .testimonial-stars {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .testimonial-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-info h5 {
    font-size: 0.9rem;
  }

  .testimonial-info span {
    font-size: 0.78rem;
  }

  .testimonial-btn {
    width: 42px;
    height: 42px;
  }

  /* Nature section compact */
  .nature-grid {
    gap: 28px;
  }

  .nature-video-wrap {
    max-height: 480px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
  }

  .hero-welcome {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero-brand {
    font-size: clamp(2rem, 8vw, 3.2rem);
    letter-spacing: 0.04em;
  }

  .nature-images {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nature-img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/10;
  }

  .nature-img {
    border-radius: var(--radius-md);
  }

  .nature-content .tag-list {
    gap: 8px;
    margin-top: 16px;
  }

  .nature-content .tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Gallery compact */
  .gallery-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .gallery-header .section-subtitle {
    margin: 0;
  }

  .gallery-filters {
    gap: 6px;
    margin-bottom: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter {
    padding: 7px 14px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 10px;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
  }

  .gallery-item--wide {
    grid-column: span 2;
    grid-auto-rows: 150px;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item-overlay {
    padding: 10px;
    opacity: 1;
  }

  .gallery-item-overlay span {
    font-size: 0.72rem;
  }

  .gallery-item-overlay i {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .gallery-cta {
    margin-top: 28px;
  }

  .gallery-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .lightbox-nav {
    display: none;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

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

  .cta-banner {
    padding: 40px 20px;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta-banner p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    gap: 10px;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer compact */
  .footer {
    padding: 48px 0 0;
  }

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

  .footer-brand img {
    max-width: 180px;
    margin-bottom: 14px;
  }

  .footer-brand p {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .footer h4 {
    margin-bottom: 14px;
    font-size: 0.78rem;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-contact li {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }

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

  .footer-bottom-links {
    gap: 16px;
  }

  .floating-whatsapp {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .btn-sm {
    padding: 9px 18px;
    font-size: 0.8rem;
  }
}

/* Small phones — extra compact */
@media (max-width: 480px) {
  .section-padding {
    padding: 36px 0;
  }

  .container {
    padding: 0 14px;
  }

  .hero-brand {
    font-size: 1.75rem;
  }

  .nature-video-wrap {
    max-height: 420px;
  }

  .why-gallery {
    grid-template-columns: 1fr;
  }

  .why-gallery-main {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .why-gallery-sub:last-child {
    display: none;
  }

  .why-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .why-point {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
    gap: 8px;
    text-align: left;
  }

  .why-point-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .why-point h4 {
    font-size: 0.78rem;
  }

  .why-point:nth-child(5) {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
  }

  .feature-card-image {
    height: 140px;
  }

  .trust-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

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

  .trust-stat-item .stat-label {
    font-size: 0.68rem;
  }

  .gallery-grid {
    grid-auto-rows: 115px;
  }

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

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

  .why-shape--circle,
  .why-shape--blob,
  .why-shape--ring {
    opacity: 0.05;
  }

  .floating-orb {
    opacity: 0.08;
  }
}

@media (max-width: 360px) {
  .why-points {
    grid-template-columns: 1fr;
  }

  .why-point:nth-child(5) {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }
}
