/* Key Lease Consulting - Responsive Styles */

/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  h1 {
    font-size: var(--text-5xl);
  }
  
  .btn-lg {
    padding: var(--space-5) var(--space-10);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --section-padding: var(--space-20);
  }
  
  .container {
    padding: 0 var(--space-8);
  }
  
  /* Grid system for tablets */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Typography adjustments */
  .text-md-center {
    text-align: center;
  }
  
  .text-md-left {
    text-align: left;
  }
  
  .text-md-right {
    text-align: right;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    padding: 0 var(--space-10);
  }
  
  /* Grid system for desktop */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Desktop-specific layouts */
  .desktop-flex {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
  
  .desktop-flex-reverse {
    flex-direction: row-reverse;
  }
  
  /* Typography adjustments */
  .text-lg-center {
    text-align: center;
  }
  
  .text-lg-left {
    text-align: left;
  }
  
  .text-lg-right {
    text-align: right;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-12);
  }
}

/* ===== MOBILE NAVIGATION ===== */
/* Mobile menu styles */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--black);
}

.mobile-menu-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Hide mobile menu button on desktop */
@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* ===== RESPONSIVE IMAGES ===== */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Image aspect ratios */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
}

/* ===== RESPONSIVE SPACING ===== */
/* Mobile spacing */
.mb-mobile {
  margin-bottom: var(--space-4);
}

.mt-mobile {
  margin-top: var(--space-4);
}

.py-mobile {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Tablet spacing */
@media (min-width: 768px) {
  .mb-tablet {
    margin-bottom: var(--space-8);
  }
  
  .mt-tablet {
    margin-top: var(--space-8);
  }
  
  .py-tablet {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* Desktop spacing */
@media (min-width: 992px) {
  .mb-desktop {
    margin-bottom: var(--space-12);
  }
  
  .mt-desktop {
    margin-top: var(--space-12);
  }
  
  .py-desktop {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ===== RESPONSIVE TEXT SIZES ===== */
/* Hero text responsive sizing */
.hero-title {
  font-size: var(--text-3xl);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

/* Section title responsive sizing */
.section-title {
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* ===== RESPONSIVE DISPLAY UTILITIES ===== */
.hide-mobile {
  display: none;
}

.mobile-image {
  display: block;
  margin: var(--space-12) auto var(--space-12) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 90%;
  height: auto;
  overflow: hidden;
}

.mobile-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.mobile-image img:hover {
  transform: scale(1.02);
}

@media (min-width: 480px) {
  .mobile-image {
    max-width: 400px;
  }
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
  
  .mobile-image {
    display: none;
  }
  
  .hide-tablet {
    display: none;
  }
}

@media (min-width: 992px) {
  .hide-tablet {
    display: block;
  }
  
  .hide-desktop {
    display: none;
  }
}

/* Show only on specific breakpoints */
.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }
}

.show-tablet {
  display: none;
}

@media (min-width: 768px) and (max-width: 991px) {
  .show-tablet {
    display: block;
  }
}

.show-desktop {
  display: none;
}

@media (min-width: 992px) {
  .show-desktop {
    display: block;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}