/* ========================
   RESET & GLOBAL STYLES
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  /* Prevents double-tap zoom on all elements */
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f9fc;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ========================
   HEADER & NAVIGATION
   ======================== */
.header {
  position: sticky;
  top: 0;
  background: #0aa2dd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.logo img {
  height: 40px;
  max-width: 100%; /* Ensure logo doesn't overflow */
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
  /* Better tap target */
  display: inline-block;
  padding: 5px 0;
}

.nav a:hover {
  color: #ffdd57;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url("hero.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 15px;
  word-wrap: break-word;
}

.hero p {
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 25px;
}

.hero button {
  background: #0aa2dd;
  border: none;
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Ensure buttons don't zoom on double-tap */
  touch-action: manipulation;
  /* Better tap target */
  min-width: 200px;
  max-width: 100%;
}

.hero button:hover {
  background: #0088bb;
  transform: translateY(-3px);
}

/* ========================
   ABOUT SECTION
   ======================== */
.about {
  background: url('Media (20).jfif') center/cover no-repeat;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content {
  max-width: 800px;
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  color: #040b29;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
  position: relative;
  width: 100%; /* Take full width on mobile */
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0aa2dd;
  word-wrap: break-word;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

.about .highlight {
  font-weight: 600;
  color: #0aa2dd;
  font-size: 1.2rem;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   SECTION STYLES
   ======================== */
.section {
  padding: 60px 40px;
  text-align: center;
  width: 100%;
  overflow-x: hidden;
}

.section h2 {
  margin-bottom: 30px;
  font-size: 32px;
  color: #0aa2dd;
  word-wrap: break-word;
}

.light {
  background: #fff;
}

/* ========================
   CARD COMPONENTS
   ======================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px;
  border: 1px solid #e3e7ee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
              0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, #d0e3ff, #0aa2dd, #4facfe);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  background-size: 600% 600%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08),
              0 8px 24px rgba(10, 162, 221, 0.12);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  word-wrap: break-word;
}

.card p {
  font-size: 16px;
  color: #555;
  word-wrap: break-word;
  flex: 1;
}

.card span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #0aa2dd;
  font-size: 18px;
}

/* ========================
   PRICE LIST
   ======================== */
.price-list {
  max-width: 400px;
  margin: auto;
  list-style: none;
  text-align: left;
  font-size: 16px;
  width: 100%;
  padding: 0 10px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap; /* Allow wrapping on very small screens */
  gap: 5px;
}

.price-list li strong {
  color: #0aa2dd;
  font-weight: 700;
}

/* ========================
   UPHOLSTERY SECTION - PRETTY BLUES ONLY
   ======================== */
.upholstery {
  background: linear-gradient(135deg, #f4f9fc 0%, #e8f0f7 100%);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Decorative blue circles in background */
.upholstery::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(10,162,221,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.upholstery::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(10,162,221,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.upholstery h2 {
  color: #0aa2dd;
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(10,162,221,0.1);
  width: 100%;
  word-wrap: break-word;
  padding: 0 10px;
}

.upholstery h2::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0aa2dd, #4facfe, #0aa2dd, transparent);
  border-radius: 3px;
}

.section-subtitle {
  color: #4a5568;
  margin-bottom: 40px;
  font-size: 17px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0 20px;
  word-wrap: break-word;
}

/* Loader Container - prettier with blue */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
  background: white;
  border-radius: 60px;
  max-width: 320px;
  margin: 0 auto 40px auto;
  box-shadow: 0 10px 25px rgba(10,162,221,0.1);
  border: 1px solid rgba(10,162,221,0.1);
  position: relative;
  z-index: 2;
  width: 90%; /* Responsive width */
}

.couch-wrapper {
  position: relative;
  width: var(--couch-width);
  height: 80px;
  margin-bottom: 15px;
  max-width: 100%;
}

.couch {
  position: absolute;
  width: 100%;
  height: 50px;
  bottom: 0;
  border-radius: 12px 12px 0 0;
  border-bottom: 8px solid #5a6b7a;
}

.couch::before, .couch::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 25px;
  height: 40px;
  background: inherit;
  border-radius: 10px 10px 0 0;
}
.couch::before { left: -15px; }
.couch::after { right: -15px; }

.dirty {
  background: #cbd5e0;
  z-index: 1;
}

.clean {
  background: #0aa2dd;
  z-index: 2;
  width: 0%;
  overflow: hidden;
  animation: clean-reveal 2.5s infinite ease-in-out;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.5);
}

.vacuum-nozzle {
  position: absolute;
  bottom: 45px;
  left: -20px;
  width: 35px;
  height: 12px;
  background: #2d3748;
  border-radius: 4px;
  z-index: 3;
  animation: vacuum-move 2.5s infinite ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hose {
  position: absolute;
  top: -20px;
  right: 5px;
  width: 6px;
  height: 20px;
  background: #4a5568;
  transform: rotate(15deg);
  border-radius: 3px;
}

@keyframes clean-reveal {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes vacuum-move {
  0% { left: -15px; }
  100% { left: calc(100% - 20px); }
}

.loading-text {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #0aa2dd;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 5px;
  text-transform: uppercase;
}

/* Grid Layout */
.upholstery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Cards - pretty blue theme */
.up-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(10,162,221,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03), 0 5px 15px rgba(10,162,221,0.05);
  transition: all 0.4s ease;
  text-align: left;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  overflow: hidden;
  width: 100%;
}

/* Blue gradient overlay on hover */
.up-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(10,162,221,0.03) 0%, transparent 100%);
  transition: height 0.4s ease;
  pointer-events: none;
}

.up-card:hover::before {
  height: 100%;
}

.up-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10,162,221,0.15), 0 5px 15px rgba(10,162,221,0.1);
  border-color: rgba(10,162,221,0.2);
}

/* Card Titles */
.up-card h3 {
  margin-bottom: 25px;
  color: #0aa2dd;
  font-size: 24px;
  border-bottom: 2px solid rgba(10,162,221,0.2);
  padding-bottom: 12px;
  text-align: center;
  font-weight: 600;
  position: relative;
  word-wrap: break-word;
}

.up-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #0aa2dd;
  border-radius: 2px;
}

/* Price Items Container */
.price-item {
  margin-bottom: 20px;
  flex: 1;
  background: rgba(10,162,221,0.02);
  border-radius: 16px;
  padding: 15px;
  transition: all 0.3s ease;
  width: 100%;
}

.price-item:hover {
  background: rgba(10,162,221,0.04);
}

/* Item Titles */
.item-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid #0aa2dd;
  letter-spacing: 0.3px;
  word-wrap: break-word;
}

/* Price Rows */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(10,162,221,0.1);
  font-size: 15px;
  transition: all 0.2s ease;
  border-radius: 8px;
  flex-wrap: wrap; /* Allow wrapping */
  gap: 5px;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: white;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(10,162,221,0.05);
}

.price-row strong {
  color: #334155;
  font-weight: 500;
  word-wrap: break-word;
}

.price-row span {
  color: #0aa2dd;
  font-weight: 600;
  margin-left: 10px;
  background: rgba(10,162,221,0.08);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(10,162,221,0.1);
  transition: all 0.3s ease;
  white-space: nowrap; /* Keep price on one line */
}

.price-row:hover span {
  background: #0aa2dd;
  color: white;
  transform: scale(1.05);
}

/* ========================
   GALLERY
   ======================== */
#gallery.section {
  background: #ffffff;
  padding: 60px 40px;
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
  width: 100%;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
  /* Better tap target */
  min-height: 150px;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery img.color {
  filter: grayscale(0%);
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact {
  background: #f4f9fc;
  padding: 80px 20px 40px 20px;
  color: #040b29;
  text-align: center;
  width: 100%;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  word-wrap: break-word;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.contact-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #0aa2dd;
}

.contact-card a {
  color: #040b29;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  word-wrap: break-word;
  display: inline-block;
  padding: 5px 0;
}

.contact-card a:hover {
  color: #0aa2dd;
}

.contact-card p {
  word-wrap: break-word;
}

.directions-btn-container {
  margin-top: 15px;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.directions-btn {
  display: inline-block;
  background: #0aa2dd;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  /* Prevent zoom on double-tap */
  touch-action: manipulation;
  /* Better tap target */
  min-width: 200px;
  max-width: 90%;
}

.directions-btn:hover {
  background: #0088bb;
  transform: scale(1.05);
}

.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 20px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: #0aa2dd;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  width: 100%;
}

/* ========================
   WHATSAPP FLOAT BUTTON
   ======================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0aa2dd;
  color: white;
  font-size: 26px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Prevent zoom on double-tap */
  touch-action: manipulation;
  /* Better tap target */
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
  background: #0088bb;
}

/* ========================
   POPUP MODAL
   ======================== */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.heart {
  position: absolute;
  top: -20px;
  font-size: 20px;
  animation: fall linear forwards;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2000;
  padding: 15px; /* Add padding for mobile */
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 350px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.4s ease;
  max-height: 90vh;
  overflow-y: auto; /* Allow scrolling if content is long */
}

.popup-overlay.show .popup {
  transform: scale(1);
}

.popup h2 {
  color: #0aa2dd;
  margin-bottom: 10px;
  word-wrap: break-word;
  padding-right: 20px; /* Make room for close button */
}

.popup p {
  margin-bottom: 20px;
  color: #555;
  word-wrap: break-word;
}

.popup-btn {
  background: #0aa2dd;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  /* Prevent zoom on double-tap */
  touch-action: manipulation;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.popup-btn:hover {
  background: #0088bb;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  /* Prevent zoom on double-tap */
  touch-action: manipulation;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ========================
   ENHANCED MOBILE RESPONSIVENESS
   ======================== */

/* Large Tablets */
@media (max-width: 1024px) {
  .section {
    padding: 50px 30px;
  }
  
  .upholstery-grid {
    gap: 20px;
  }
  
  .up-card {
    padding: 25px 20px;
  }
  
  .up-card h3 {
    font-size: 22px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .upholstery {
    padding: 60px 30px;
  }
  
  .upholstery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .up-card {
    padding: 25px 20px;
  }
  
  .up-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .item-title {
    font-size: 15px;
  }
  
  .price-row {
    font-size: 14px;
  }
  
  .price-row span {
    padding: 3px 12px;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Tablets / Large Phones */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
  }

  .logo {
    margin-bottom: 10px;
    font-size: 18px;
  }
  
  .logo img {
    height: 35px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .nav a {
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
  }

  .section {
    padding: 40px 20px;
  }
  
  .section h2 {
    font-size: 28px;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero button {
    padding: 15px 30px;
    min-width: 220px;
  }
  
  .about-content {
    padding: 30px 20px;
  }
  
  .about h2 {
    font-size: 28px;
  }
  
  .about p {
    font-size: 16px;
  }
  
  .cards {
    gap: 15px;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery img {
    height: 180px;
  }
  
  .contact h2 {
    font-size: 32px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .map-container iframe {
    height: 350px;
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  .upholstery {
    padding: 40px 15px;
  }
  
  .upholstery h2 {
    font-size: 28px;
  }
  
  .upholstery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .up-card {
    padding: 20px 15px;
    width: 100%;
  }
  
  .up-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .item-title {
    font-size: 16px;
  }
  
  .price-row {
    font-size: 15px;
    padding: 10px 8px;
  }
  
  .price-row span {
    padding: 4px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .loader-container {
    padding: 20px 25px;
    max-width: 280px;
  }
  
  .couch-wrapper {
    transform: scale(0.9);
  }
  
  .price-list {
    font-size: 15px;
  }
  
  .price-list li {
    padding: 10px 0;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 450px;
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .hero button {
    padding: 14px 25px;
    min-width: 200px;
    font-size: 15px;
  }
  
  .section {
    padding: 30px 15px;
  }
  
  .section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .about {
    padding: 50px 15px;
  }
  
  .about-content {
    padding: 25px 15px;
  }
  
  .about h2 {
    font-size: 24px;
  }
  
  .about p {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 20px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery img {
    height: 200px;
  }
  
  .contact {
    padding: 50px 15px 30px;
  }
  
  .contact h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .directions-btn {
    padding: 14px 20px;
    font-size: 15px;
    width: 90%;
    max-width: 280px;
  }
  
  .popup {
    padding: 25px 20px;
  }
  
  .popup h2 {
    font-size: 22px;
  }
  
  .popup p {
    font-size: 14px;
  }
  
  .popup-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  footer {
    padding: 15px;
    font-size: 12px;
  }
}

/* Very Small Mobile Phones */
@media (max-width: 380px) {
  .upholstery {
    padding: 30px 12px;
  }
  
  .upholstery h2 {
    font-size: 24px;
  }
  
  .up-card {
    padding: 20px 12px;
  }
  
  .up-card h3 {
    font-size: 20px;
  }
  
  .price-row {
    font-size: 14px;
    padding: 8px 5px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .price-row span {
    margin-left: 0;
    padding: 3px 10px;
    font-size: 13px;
    align-self: flex-end;
  }
  
  .upholstery h2 {
    font-size: 28px;
  }
  
  .nav a {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero button {
    min-width: 180px;
    padding: 12px 20px;
  }
  
  .gallery img {
    height: 160px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 12px;
    right: 12px;
  }
}

/* Fix for very small devices in landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 350px;
    height: auto;
    padding: 40px 15px;
  }
  
  .popup {
    max-height: 85vh;
  }
}

/* Keep the original :root variables */
:root {
  --couch-width: 180px;
  --clean-color: #0aa2dd;
  --dirty-color: #bdc3c7;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Improve touch targets for all interactive elements */
button, 
a, 
.nav a, 
.card, 
.gallery img, 
.popup-btn, 
.close-btn, 
.whatsapp-float, 
.directions-btn {
  min-height: 44px; /* Apple's recommended minimum tap target size */
  min-width: 44px;
}

/* Fix for iOS tap highlight */
* {
  -webkit-tap-highlight-color: rgba(10, 162, 221, 0.2);
}

/* Prevent text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
}
