:root {
  --bg: #f7f3ef;
  --surface: #ffffff;
  --surface-soft: #f1ebe4;
  --text: #2d241d;
  --muted: #7c6d61;
  --line: #e6ddd4;
  --primary: #b38b68;
  --primary-dark: #8f6c4f;
  --accent: #e7d7c6;
  --shadow: 0 18px 40px rgba(80, 52, 29, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,243,239,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; color: var(--muted); font-size: 13px; }
.main-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.main-nav a { padding: 12px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.main-nav a:hover { background: var(--surface); color: var(--text); }
.hero { padding: 42px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; margin: 12px 0 18px; }
.hero p, .lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(179,139,104,.14); color: var(--primary-dark); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(135deg, var(--primary) 0%, #c29d7b 100%); color: #fff; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.btn:hover { filter: brightness(1.03); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
.full { width: 100%; }
.hero-meta { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.hero-visual { background: radial-gradient(circle at top left, #f8efe6 0, #efe4d8 50%, #eadfce 100%); border-radius: 34px; padding: 30px; box-shadow: var(--shadow); }
.hero-visual img { border-radius: 24px; width: 100%; object-fit: cover; }
.section { padding: 30px 0 44px; }
.section-top { padding-top: 54px; }
.muted-section { background: #f4eee8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head, .card-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h1, .section-head h2, .card-head h1, .card-head h2 { margin: 10px 0 8px; font-size: clamp(28px, 3.2vw, 42px); }
.section-head p, .card-head p { color: var(--muted); max-width: 760px; }
.text-link { color: var(--primary-dark); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.product-card, .feature-card, .card, .contact-card, .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.product-card { overflow: hidden; }
.product-image { aspect-ratio: 1 / .82; background: #f2ece6; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; }
.product-body h3 { margin: 8px 0; font-size: 22px; }
.product-body p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.product-category { color: var(--primary-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature-card { padding: 26px; }
.feature-card h3 { margin-top: 0; }
.two-column, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.rounded-image img { border-radius: 34px; box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.feature-list strong { display: block; margin-bottom: 6px; }
.feature-list span { color: var(--muted); }
.contact-card { padding: 28px; }
.contact-card h3 { margin-top: 0; }
.contact-card label { display: grid; gap: 8px; font-weight: 600; }
input, textarea, select { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font: inherit; color: inherit; }
textarea { min-height: 130px; resize: vertical; }
.success-inline, .text-danger { color: #b04a34; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: var(--muted); font-weight: 700; }
.filter-chip.active { background: linear-gradient(135deg, var(--primary) 0%, #c29d7b 100%); color: #fff; border-color: transparent; }
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 24px; }
.footer-brand { display: inline-flex; gap: 14px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; border-radius: 14px; }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer ul { margin: 0; padding-left: 18px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(180deg, #f7f3ef 0%, #f0e7dc 100%); }
.auth-card { width: min(520px, 100%); background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 32px; padding: 36px; box-shadow: var(--shadow); }
.auth-logo { width: 90px; height: 90px; border-radius: 24px; margin-bottom: 20px; }
.auth-note { margin-top: 24px; padding: 18px; background: var(--surface-soft); border-radius: 20px; color: var(--muted); }
.checkbox { display: flex !important; align-items: center; gap: 10px; }
.checkbox input { width: auto; min-height: auto; }
.current-image-preview { margin: 22px 0; max-width: 360px; }
.current-image-preview img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 1024px) {
  .hero-grid, .two-column, .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .features-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 100%); }
  .header-row, .section-head, .card-head { flex-direction: column; align-items: start; }
  .main-nav { width: 100%; }
  .product-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}

.gallery-grid { display:grid; grid-template-columns:1.3fr .85fr .85fr; gap:20px; }
.gallery-item img { width:100%; height:100%; object-fit:cover; border-radius:28px; box-shadow: var(--shadow); }
.gallery-item.large { grid-row: span 2; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns:1fr 1fr; } .gallery-item.large { grid-row: span 1; grid-column: 1 / -1; } }
@media (max-width: 720px) { .gallery-grid { grid-template-columns:1fr; } }


/* Final visual polish: strict, soft, aligned */
body { line-height: 1.6; }
.site-header { box-shadow: 0 10px 30px rgba(80,52,29,.05); }
.brand img, .footer-brand img { object-fit: contain; background: rgba(255,255,255,.82); padding: 4px; }
.brand strong, .brand span, .main-nav a, .btn, .filter-chip, input, textarea, select { line-height: 1.2; }
.main-nav a, .btn, .filter-chip, .text-link { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.main-nav a:hover, .btn:hover, .filter-chip:hover, .text-link:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.hero { padding: 56px 0 36px; }
.hero-grid, .product-grid, .features-grid, .gallery-grid, .footer-grid { align-items: stretch; }
.hero p { max-width: 720px; }
.hero-actions .btn { min-width: 190px; text-align: center; }
.hero-meta li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.48); }
.section { padding: 42px 0 56px; }
.section-head { align-items: center; }
.product-card, .feature-card, .card, .contact-card, .gallery-item img, .hero-visual { transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover, .feature-card:hover, .card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(80,52,29,.11); }
.product-footer { margin-top: auto; }
.product-body { display: flex; flex-direction: column; min-height: 230px; }
input, textarea, select { transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(179,139,104,.15); outline: none; }
.site-footer { background: linear-gradient(180deg, #f7f3ef, #efe6dc); }
@media (max-width: 720px) { .hero-actions .btn, .button-row .btn { width: 100%; } .section-head { align-items: start; } }


/* Update: cleaner logo placement and contact page alignment */
.brand { min-width: 0; }
.brand img { width: 58px; height: 58px; padding: 6px; object-fit: contain; }
.footer-brand img { width: 50px; height: 50px; padding: 5px; object-fit: contain; background: rgba(255,255,255,.86); }
.brand strong { line-height: 1.05; }
.brand span { margin-top: 4px; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--muted); font-weight: 700; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: 28px; align-items: stretch; }
.contact-intro { display: grid; align-content: start; gap: 14px; }
.contact-intro h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.contact-info-grid { display: grid; gap: 16px; margin-top: 10px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 8px; transition: transform .22s ease, box-shadow .22s ease; }
.info-card strong { font-size: 15px; }
.info-card span { color: var(--muted); line-height: 1.6; }
.info-card:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(80,52,29,.10); }
.contact-card { display: grid; gap: 16px; align-content: start; }
.contact-card-head { display: grid; gap: 8px; margin-bottom: 4px; }
.contact-card-head h3 { margin: 0; font-size: 28px; }
.contact-card-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.contact-card .btn { width: 100%; }
.contact-card label span { color: var(--text); }
.site-footer ul { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.site-footer li { line-height: 1.6; }
@media (max-width: 1024px) { .contact-page { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .brand img { width: 52px; height: 52px; } .hero-note span { width: 100%; } }


/* Performance update: sharper hero photo and full tile coverage */
.hero-visual { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: stretch; justify-content: stretch; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; }
