/* ==========================================================================
   style-mobile.css — Responsive overrides only
   Desktop base styles live in style.css.
   DO NOT put non-media-query rules here.
   ========================================================================== */

/* ==========================================================================
   Right-group: language + contact — stack vertically on narrow screens
   ========================================================================== */
@media (max-width: 768px) {
  .right-group {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }
  .right-group .lang-switch {
    margin: 0;
  }
  .right-group .btn-minimal {
    align-self: flex-end;
  }
}

/* ==========================================================================
   Responsive — Tablet (max 840px)
   ========================================================================== */
@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-desc {
    max-width: 600px;
    margin-inline: auto;
  }

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

  .quote-card {
    max-width: 620px;
  }

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

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-box {
    padding: 1.8rem;
  }

  .owners-card {
    padding: 2.5rem 2rem;
  }

  .long-term-block {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .long-term-title {
    font-size: 1.7rem;
  }

  .modal-gallery-main {
    height: 320px;
  }
}

/* ==========================================================================
   Responsive — Mobile (max 540px)
   ========================================================================== */
@media (max-width: 540px) {

  /* --- Layout --- */
  .section {
    padding-block: 3rem;
  }

  .container {
    padding-inline: 1rem;
  }

  /* --- Header & Nav --- */
  .site-header {
    padding-block: 0.8rem;
  }

  .logo-main {
    font-size: 1.15rem;
  }

  .logo-sub {
    display: none;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .lang-switch {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  /* --- Hero --- */
  .hero-section {
    padding-block: 2.8rem 2.2rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    text-align: center;
  }

  /* --- Philosophy Quote --- */
  .quote-card {
    padding: 1.6rem 1.2rem;
  }

  .quote-title {
    font-size: 1.3rem;
  }

  .quote-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .trulli-illustration {
    max-width: 150px;
  }

  /* --- Section Headers --- */
  .section-title {
    font-size: 1.9rem;
  }

  .section-intro {
    font-size: 0.92rem;
  }

  /* --- House Cards Grid --- */
  .grid-houses {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .house-card-title {
    font-size: 1.25rem;
  }

  /* --- Owners Section --- */
  .owners-card {
    padding: 2rem 1.25rem;
  }

  .owners-title {
    font-size: 1.7rem;
  }

  .owners-lead {
    font-size: 0.95rem;
  }

  .owners-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .owners-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .owners-cta-row .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* --- Contact Section --- */
  .contact-form-box {
    padding: 1.4rem 1.1rem;
  }

  .contact-direct-list {
    gap: 0.8rem;
  }

  /* --- Modal --- */
  .house-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    align-self: flex-end;
    border-left: none;
    border-right: none;
    border-bottom: none;
    animation: modalSlideUp 0.3s ease-out;
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .modal-dialog-inner {
    padding: 1.5rem 1rem 2rem;
  }

  .modal-title {
    font-size: 1.7rem;
  }

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

  .modal-gallery-main {
    height: 240px;
  }

  .modal-thumb {
    width: 68px;
    height: 46px;
  }

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

  .modal-sec-heading {
    font-size: 1.05rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking-card {
    padding: 1.2rem 1rem;
  }

  .booking-actions {
    gap: 0.6rem;
  }

  /* --- Footer --- */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-right {
    font-size: 0.78rem;
  }
}
