/* Sotheby's-inspired Modern Elegant Style */

:root {
  --primary-color: #1a2236;
  --secondary-color: #ffffff;
  --accent-color: #bfa980;
  --text-color: #222;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Lato', 'Open Sans', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  background: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  height: 48px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent-color);
}

.hero {
  background: linear-gradient(rgba(26,34,54,0.7), rgba(26,34,54,0.7)), url('images/hikari/roller-blinds.jpg') center/cover no-repeat;
  color: var(--secondary-color);
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.btn {
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 2px;
  font-family: var(--body-font);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

section {
  margin-bottom: 3rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(26,34,54,0.07);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(26,34,54,0.13);
}

footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Mobile-First Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 900px) {
  .header-container, main {
    padding: 1rem;
  }
  
  .hero {
    padding: 4rem 1rem 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  /* Improve touch targets */
  nav a, .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  
  nav {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* iOS Safari smooth scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.5rem 0;
    width: 100%;
    /* Force hardware acceleration for iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  nav a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent text selection on iOS */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure touch targets work properly */
    -webkit-tap-highlight-color: transparent;
  }
  
  .logo {
    height: 40px;
  }
  
  .hero {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  main {
    padding: 0 0.5rem;
    margin: 1rem auto;
  }
  
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header-container {
    padding: 0.8rem 0.3rem;
  }
  
  nav {
    gap: 0.3rem;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* iOS Safari smooth scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.3rem 0;
    /* Force hardware acceleration for iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    min-width: 70px;
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent text selection on iOS */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure touch targets work properly */
    -webkit-tap-highlight-color: transparent;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 0.8rem;
  }
  
  main {
    padding: 0 0.3rem;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  /* Prevent zoom on input focus in iOS */
  input, select, textarea {
    font-size: 16px;
  }
  
  /* Fix for iOS Safari viewport height */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* iOS Safari horizontal scrolling fixes */
  nav {
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    /* Prevent momentum scrolling issues */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  nav a {
    /* Prevent iOS Safari from treating links as draggable */
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    /* Ensure proper touch handling */
    touch-action: pan-x;
  }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Smooth scrolling for Android */
  html {
    scroll-behavior: smooth;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Product Gallery Styles */
.product-gallery {
  max-width: 1200px;
  margin: 3rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-gallery h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.category-selection {
  margin-bottom: 2rem;
  text-align: center;
}

.category-selection h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.category-btn {
  border: 2px solid;
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  border: none;
}

.category-btn:hover {
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.category-blinds {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.category-blinds:hover {
  background: #e0e7ff;
}

.category-curtains {
  background: #f9fafb;
  border-color: #d1d5db;
}

.category-curtains:hover {
  background: #f3f4f6;
}

.category-title {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.category-blinds .category-title {
  color: #4338ca;
}

.category-curtains .category-title {
  color: #374151;
}

/* Responsive adjustments for product gallery */
@media (max-width: 600px) {
  .product-gallery {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
  
  .category-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .category-btn {
    padding: 1rem 1.5rem;
  }
}

/* Add more custom styles as needed for gallery, products, etc. */ 