
/* Bonsai Gallery - Professional Design with Mobile-First Navigation */
:root{
  --bg: #fafafa;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --brand: #059669;
  --accent: #0d9488;
  --warning: #d97706;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --maxw: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a{color: var(--accent); text-decoration: none; transition: color 0.2s ease}
a:hover{color: var(--brand); text-decoration: underline}
.container{max-width: var(--maxw); margin: 0 auto; padding: 0 1rem}
main{flex: 1}

/* Desktop Header */
.header{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.brand .logo{
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.brand .logo svg{
  fill: white;
  width: 24px;
  height: 24px;
}
.menu{
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.menu a{
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}
.menu a:hover{
  background: var(--bg);
  text-decoration: none;
}
.menu a.active{
  background: var(--brand);
  color: white;
}
/* Mobile Bottom Navigation */
.mobile-nav{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
  padding: 0.5rem 0;
}
.mobile-nav-content{
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
.mobile-nav-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 60px;
}
.mobile-nav-item:hover{
  color: var(--brand);
  background: var(--bg);
  text-decoration: none;
}
.mobile-nav-item.active{
  color: var(--brand);
  background: rgba(5, 150, 105, 0.1);
}
.mobile-nav-icon{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle{
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.mobile-menu-toggle:hover{
  background: var(--bg);
}

/* Content */
.hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: 3rem 0 2rem;
  align-items: center;
}
.hero h1{
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--text);
}
.lead{
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.article{
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 2rem 0 3rem;
}
.article-header{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.article-header figure{
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.article-meta .badge{
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.toc{
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.toc strong{
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.toc ol{
  padding-left: 1.25rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.toc a{
  color: var(--accent);
  text-decoration: none;
}
.toc a:hover{
  color: var(--brand);
  text-decoration: underline;
}
.callout{
  border-left: 4px solid var(--brand);
  background: rgba(5, 150, 105, 0.08);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.article section{
  margin-bottom: 2.5rem;
}
.article h2{
  margin-top: 0;
  margin-bottom: 1rem;
}
.article h3{
  margin-bottom: 0.75rem;
}
.article table{
  margin: 1.5rem 0;
}
.article ul,
.article ol{
  margin-left: 1.25rem;
}
.article ul{
  list-style: disc;
}
.article ol{
  list-style: decimal;
}
.article blockquote{
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cta{
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover{
  background: #047857;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn-secondary{
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover{
  background: var(--bg);
  text-decoration: none;
}
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.card{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card .pad{
  padding: 1.5rem;
}
.card h3{
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.meta{
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.badge{
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  margin-right: 0.5rem;
  font-weight: 500;
}
.section{
  padding: 3rem 0;
}
.section h2{
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.feature-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.kicker{
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer{
  padding: 3rem 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}
.small{
  font-size: 0.875rem;
}
hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
ul{
  padding-left: 1.5rem;
}
li{
  margin: 0.5rem 0;
}
figure{
  margin: 0;
}
blockquote{
  border-left: 4px solid var(--brand);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(5, 150, 105, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
pre{
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow: auto;
  border: 1px solid var(--border);
}
table{
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
td, th{
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}
th{
  background: var(--bg);
  font-weight: 600;
}
/* Responsive Design */
@media (max-width: 1024px){
  .hero{
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .card{
    grid-column: span 6;
  }
  .feature-list{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px){
  .header{
    display: none;
  }
  .mobile-nav{
    display: block;
  }
  .mobile-menu-toggle{
    display: block;
  }
  .hero{
    padding: 2rem 0 1rem;
  }
  .hero h1{
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .cta{
    justify-content: center;
  }
  .card{
    grid-column: span 12;
  }
  .feature-list{
    grid-template-columns: 1fr;
  }
  .section{
    padding: 2rem 0;
  }
  .container{
    padding: 0 1rem;
  }
  /* Add bottom padding for mobile nav */
  body{
    padding-bottom: 80px;
  }
  .article{
    padding: 1.75rem;
    margin: 1.5rem 0 2.5rem;
  }
  .article-meta{
    gap: 0.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px){
  .hero{
    padding: 1.5rem 0 1rem;
  }
  .cta{
    flex-direction: column;
    align-items: center;
  }
  .btn{
    width: 100%;
    justify-content: center;
  }
  .card .pad{
    padding: 1rem;
  }
  .section{
    padding: 1.5rem 0;
  }
  .article{
    padding: 1.25rem;
  }
}
/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Card Images */
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* Hero Images */
.hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Article Images */
.article img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

/* Product Detail Images */
.product-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Gallery Images */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* Customer Avatar Images */
.customer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* Before/After Images */
.before-after img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Aspect Ratio Classes */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

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

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

.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

/* Image Containers */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .card img {
    height: 200px;
  }
  
  .hero img {
    margin-top: 1rem;
  }
  
  .article img {
    margin: 0.75rem 0;
  }
  
  .customer-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .card img {
    height: 180px;
  }
  
  .hero img {
    margin-top: 0.75rem;
  }
  
  .article img {
    margin: 0.5rem 0;
  }
}

/* SEO helpers */
.visually-hidden{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
figure img{aspect-ratio: 16 / 9}
img[loading=lazy]{content-visibility:auto}
