/* ============================================
   YUKON HANDYMAN 2.0 — Complete Responsive System
   Mobile-First Design (320px–1024px)
   Desktop (1024px+) completely untouched
   ============================================ */

/* ==========================================
   GLOBAL MOBILE BASE STYLES
   Applied to all screens below 1024px
   ========================================== */
@media (max-width: 1023px) {

  /* Prevent horizontal scroll globally */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Ensure all elements respect viewport */
  * {
    max-width: 100%;
  }

  /* Ensure all images scale properly */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Word wrapping for long text */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a,
  span,
  .btn {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ==========================================
   DESKTOP - Hide mobile elements
   ========================================== */
@media (min-width: 1024px) {

  .nav-links-mobile,
  .mobile-overlay,
  .hamburger,
  .mobile-only-financeit {
    display: none !important;
  }
}

/* ==========================================
   TABLET & MOBILE NAVIGATION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  .navbar-glass {
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  /* Hide desktop nav */
  .navbar-glass .nav-links {
    display: none;
  }

  .navbar-glass .nav-cta {
    display: none;
  }

  /* Logo sizing (default mobile baseline) */
  .navbar-logo img {
    height: 45px;
    width: auto;
  }

  /* Hamburger menu */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--frost-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

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

  /* Mobile menu panel (single off-canvas method) */
  .nav-links-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(260px, 82vw, 340px);
    height: 100vh;
    background: rgba(10, 15, 31, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(4.5rem, 5vh, 5rem) clamp(1.25rem, 2.2vw, 2rem) clamp(1.25rem, 2vw, 2rem);
    gap: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    transform: translateX(105%);
    will-change: transform;
    box-sizing: border-box;
  }

  .nav-links-mobile.active {
    transform: translateX(0);
  }

  .nav-links-mobile a {
    display: block;
    font-size: 1.1rem;
    padding: 1rem 0;
    color: var(--frost-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-links-mobile a:hover,
  .nav-links-mobile a.active {
    color: var(--gold);
  }

  /* Mobile CTA buttons */
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.0rem;
    font-size: 0.95rem;
    min-height: 48px;
    white-space: normal;
    border-radius: 12px;
  }

  /* Contact info in menu */
  .nav-mobile-contact {
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
  }

  .nav-mobile-contact div {
    margin-bottom: 0.25rem;
  }
}

/* ==========================================
   BASE CONTAINER & SPACING (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .section,
  .section-full {
    padding: 3rem 1rem;
  }

  /* Adjust spacing variables for mobile */
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
  }
}

/* ==========================================
   HERO SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #hero {
    padding-top: 20px;
    /* reduced to remove extra gap */
    min-height: 100vh;
  }

  .hero-content {
    padding: 0 1rem;
    padding-top: 4rem;
  }

  /* Center and stack content */
  #hero .hero-content>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  #hero .hero-content>div:first-child>div:first-child {
    width: 100%;
  }

  /* Hero heading */
  #hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
  }

  /* Hero branding (scoped) */
  #hero .hero-branding-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Hide ONLY the hero logo inside the hero branding block on mobile */
  #hero .hero-branding .hero-logo {
    display: none !important;
  }

  #hero .hero-tagline {
    font-size: 0.88rem;
    max-width: 100%;
  }

  /* Hero paragraph */
  #hero .hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 100%;
    opacity: 0.8;
  }

  /* Section tag */
  .section-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.75rem;
  }

  /* Button groups - full width, stacked */
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-height: 48px;
  }

  .btn-group+.btn-group {
    margin-top: 0.5rem;
  }

  /* Reduce 3D container opacity */
  #hero-3d-container {
    opacity: 0.3;
    pointer-events: none;
  }

  /* Hide quote calculator on mobile */
  .hero-quote-calculator {
    display: none;
  }

  /* Scroll indicator */
  #hero>div:last-child {
    bottom: 1rem;
  }
}

/* ==========================================
   SERVICES SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #services .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  #services .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  #services .section-header p {
    font-size: 0.85rem;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .services-grid .service-card {
    width: 100%;
    padding: 1.5rem;
  }

  .services-grid .service-card .service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .services-grid .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .services-grid .service-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .services-grid .service-card .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
    margin-top: 0.75rem;
  }
}

/* ==========================================
   OUR WORK SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #our-work .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  #our-work .our-work-cards {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    justify-content: flex-start;
  }

  #our-work .our-work-card {
    width: 100% !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  #our-work .our-work-card-image {
    height: 200px !important;
    width: 100% !important;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  #our-work .our-work-card-content {
    padding: 1.25rem 1.25rem 1.35rem !important;
    gap: 0.85rem !important;
  }

  #our-work .our-work-card-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }

  #our-work .our-work-card-desc {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
  }

  #our-work .our-work-card-cta {
    width: 100% !important;
    justify-content: center;
    padding: 0.85rem 1.15rem;
  }

  #our-work .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .our-work-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .our-work-grid .glass-card {
    padding: 2rem 1.5rem;
  }

  .our-work-grid .glass-card>div {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .our-work-grid .glass-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .our-work-grid .glass-card p {
    font-size: 0.85rem;
  }
}

/* ==========================================
   REVIEWS SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #reviews .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  #reviews .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .reviews-container .glass-card {
    padding: 1.5rem;
  }

  .reviews-container .glass-card>div:first-child {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .reviews-container .glass-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  #reviews>div:last-child {
    text-align: center;
    margin-top: 1.5rem;
  }

  #reviews>div:last-child .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    min-height: 48px;
  }
}

/* ==========================================
   JOIN US SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #join-us .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  #join-us .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  #join-us .glass-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  #join-form .grid-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #join-form .glass-input-group {
    width: 100%;
  }

  #join-form .glass-input,
  #join-form .glass-textarea,
  #join-form .glass-select {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  #join-form .glass-textarea {
    min-height: 100px;
  }

  #join-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ==========================================
   CONTACT SECTION (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  #contact .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  /* Get in Touch (mobile): force ONE COLUMN stack */
  #contact .container>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #contact .container>div>div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #contact .container>div>div:first-child {
    order: 1;
  }

  #contact .container>div>div:last-child {
    order: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 24px;
  }

  #contact .container>div>div:last-child .glass-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    box-sizing: border-box;
  }

  #contact .container>div>div:last-child .glass-card:last-child {
    margin-bottom: 0;
  }


  #contact .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  #contact .container>div {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  #contact .container>div>div:last-child {
    order: -1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  #contact>div>div>div:last-child .glass-card {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  #contact>div>div>div:last-child .glass-card span {
    font-size: 1.2rem;
  }

  #contact>div>div>div:last-child .glass-card h4 {
    font-size: 0.95rem;
    margin: 0;
  }

  #contact>div>div>div:last-child .glass-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
  }

  #contact-form {
    width: 100%;
    overflow-x: hidden;
  }

  #contact-form .glass-card {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  #contact-form .glass-input-group {
    width: 100%;
  }

  #contact-form .glass-input,
  #contact-form .glass-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    font-size: 1rem;
  }

  #contact-form .glass-textarea {
    min-height: 120px;
  }

  #contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ==========================================
   CONTACT SECTION (STRICT MOBILE < 768px)
   Force ONE vertical column layout
   ========================================== */
@media (max-width: 768px) {

  /* Remove any possible horizontal overflow from this section only */
  #contact {
    overflow-x: hidden;
  }

  #contact,
  #contact * {
    max-width: 100vw;
  }

  /* Stack the entire Get In Touch grid into a single column */
  #contact .container>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: 1fr !important;
  }

  /* Ensure both children stack vertically */
  #contact .container>div>div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 24px;
  }

  #contact .container>div>div:last-child {
    margin-bottom: 0;
  }

  /* Contact info cards column */
  #contact .container>div>div:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 24px !important;
  }

  #contact .container>div>div:last-child .glass-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px;
    box-sizing: border-box !important;
  }

  #contact .container>div>div:last-child .glass-card:last-child {
    margin-bottom: 0;
  }

  /* Center heading/description */
  #contact .section-header {
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  /* Ensure contact form is full width and no inner desktop widths break layout */
  #contact-form {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  #contact-form .glass-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #contact-form .glass-input-group,
  #contact-form .glass-input,
  #contact-form .glass-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #contact-form .glass-textarea {
    min-height: 120px;
  }

  /* Full-width submit button */
  #contact-form .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================
   FOOTER (< 1024px)
   ========================================== */
@media (max-width: 1023px) {
  footer {
    padding: 3rem 1rem 2rem;
  }

  /* Footer (mobile): ONE COLUMN stack */
  footer .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  footer .footer-grid>div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 0;
  }

  footer .footer-grid a {
    padding: 0.45rem 0.25rem;
  }


  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
  }

  .footer-grid>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid>div:first-child img {
    height: 45px;
    margin-bottom: 0.5rem;
  }

  .footer-grid>div:first-child p {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 1rem;
  }

  .footer-grid>div:first-child>div:nth-child(2) {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .footer-grid>div:first-child>div:nth-child(2) a,
  .footer-grid>div:first-child>div:nth-child(2) span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer-grid>div:not(:first-child) {
    text-align: center;
    width: 100%;
  }

  .footer-grid>div:not(:first-child) h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--gold);
  }

  .footer-grid>div:not(:first-child) div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .footer-grid>div:not(:first-child) a {
    font-size: 0.85rem;
    opacity: 0.6;
    text-decoration: none;
    color: inherit;
  }

  .footer-grid>div:first-child>div:last-child {
    margin-top: 1rem;
  }

  .footer-grid+div {
    text-align: center;
    font-size: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* ==========================================
   NAVIGATION - ENHANCED MOBILE REFINEMENTS
   (mobile-only changes: logo + buttons)
   ========================================== */
@media (max-width: 1023px) {
  .navbar-glass>div:first-child {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .navbar-glass .navbar-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 90px);
    overflow: hidden;
  }

  .navbar-glass .hamburger {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 44px;
    max-width: 44px;
  }

  /* Mobile: bigger nav logo */
  .navbar-glass .navbar-logo img {
    height: 60px !important;
    width: auto !important;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
  }

  /* Mobile: smaller buttons (Get a Quote / Contact Now) */
  @media (max-width: 768px) {
    .navbar-glass .btn {
      font-size: 13px !important;
      padding: 8px 14px !important;
      min-height: 40px !important;
      width: auto !important;
    }
  }

  @media (min-width: 376px) and (max-width: 430px) {

    /* iPhone 12/13/14/15 range: keep nav compact but readable */
    .navbar-glass {
      padding-left: 0.9rem !important;
      padding-right: 0.9rem !important;
      gap: 0.6rem !important;
    }

    .navbar-glass .navbar-logo {
      flex: 0 0 auto !important;
    }

    .navbar-glass .navbar-logo img {
      height: 60px !important;
      width: auto !important;
      max-height: 60px !important;
      flex-shrink: 0 !important;
      object-fit: contain !important;
      display: block !important;
    }

    /* Keep everything on one row if possible */
    .navbar-glass>div:first-child {
      flex-wrap: nowrap;
      align-items: center;
      overflow: hidden;
    }

    /* Mobile CTA buttons (Get a Quote / Contact Now) */
    .navbar-glass .btn {
      font-size: 13px !important;
      padding: 9px 14px !important;
      min-height: 40px !important;
      width: auto !important;
      white-space: nowrap;
    }

    /* Prevent logo from shrinking due to flex constraints */
    .navbar-glass .navbar-logo {
      min-width: 0;
    }

    .nav-mobile-cta .btn,
    .nav-mobile-cta .btn.btn-primary,
    .nav-mobile-cta .btn.btn-secondary {
      font-size: 13px !important;
      padding: 9px 14px !important;
      min-height: 40px !important;
      white-space: nowrap;
      flex: 0 0 auto !important;
      flex-shrink: 0 !important;
    }
  }

  @media (max-width: 375px) {
    .navbar-glass {
      padding-left: 12px !important;
      padding-right: 12px !important;
      gap: 0.5rem !important;
    }


    .navbar-glass>div:first-child {
      gap: 0.5rem !important;
    }

    .navbar-glass .navbar-logo {
      flex: 0 0 auto !important;
    }

    .navbar-glass .navbar-logo img {
      height: 56px !important;
      width: auto !important;
      max-height: 56px !important;
      flex-shrink: 0 !important;
      object-fit: contain !important;
      display: block !important;
    }

    /* Reduce spacing between mobile nav items/CTAs */
    .nav-links-mobile {
      gap: 0 !important;
    }

    .nav-mobile-cta {
      gap: 0.55rem !important;
    }

    .nav-mobile-cta .btn {
      font-size: 12px !important;
      padding: 7px 12px !important;
      min-height: 34px !important;
      width: auto !important;
      max-width: 100% !important;
      flex: 0 0 auto !important;
    }

    /* Allow buttons to wrap neatly under logo if needed */
    .nav-links-mobile {
      max-width: calc(100vw - 0px);
    }

    .nav-mobile-cta {
      flex-wrap: wrap !important;
    }
  }
}


/* ==========================================
   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;
  }

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

  .gradient-sphere {
    animation: none;
  }

  .preloader-bar-fill {
    animation: none;
    width: 100%;
  }
}

/* ==========================================
   OVERFLOW PROTECTION
   ========================================== */
@media (max-width: 1023px) {
  * {
    max-width: 100vw;
  }

  .section-header {
    padding: 0 0.5rem;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .nav-links-mobile a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ==========================================
   TOUCH DEVICE ADJUSTMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {

  .custom-cursor,
  .custom-cursor-ring {
    display: none !important;
  }

  .glass-card:hover {
    transform: none !important;
  }

  .tilt-card:hover .tilt-card-inner {
    transform: none !important;
  }

  .btn:hover {
    transform: none !important;
  }

  a,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ==========================================
   iOS SAFE AREA (notch support)
   ========================================== */
@supports (padding: max(0px)) {
  @media (max-width: 1023px) {
    .navbar-glass {
      padding-top: max(0.75rem, env(safe-area-inset-top));
      padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .preloader {
      padding-top: env(safe-area-inset-top);
      padding-bottom: env(safe-area-inset-bottom);
    }

    footer {
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .nav-links-mobile {
      padding-top: max(5rem, calc(2rem + env(safe-area-inset-top)));
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
  }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */
@media (max-width: 1023px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 2rem;
  }

  #hero h1 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin-bottom: 0.5rem;
  }

  #hero p {
    margin-bottom: 1rem;
  }

  .section-tag {
    margin-bottom: 0.5rem;
  }

  .btn-group {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    min-height: 40px;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {

  .navbar-glass,
  .concierge-panel,
  .emergency-widget,
  .custom-cursor,
  .custom-cursor-ring,
  .preloader,
  .mobile-overlay,
  .nav-links-mobile {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}