
/* ==========================================================================
   AMO NGUYEN - PRODUCTION CORE STYLES (FINAL)
   ========================================================================== */
:root {
  --amo-gold: #C9A96A;
  --amo-gold-deep: #A87922;
  --amo-black: #1A1A1A;
  --amo-charcoal: #444444;
  --amo-off-white: #F9F7F0;
  
  --amo-font-heading: 'Be Vietnam Pro', Arial, sans-serif;
  --amo-font-body: 'Be Vietnam Pro', Arial, sans-serif;
  
  --amo-space-xs: clamp(0.5rem, 1vw, 1rem);
  --amo-space-sm: clamp(1rem, 2vw, 2rem);
  --amo-space-md: clamp(2rem, 4vw, 4rem);
  --amo-space-lg: clamp(4rem, 8vw, 8rem);
  --amo-space-xl: clamp(6rem, 12vw, 12rem);
  
  --amo-container: 1440px;
  --amo-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --amo-transition: all 0.4s var(--amo-ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background-color: var(--amo-off-white);
  color: var(--amo-black); font-family: var(--amo-font-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; transition: var(--amo-transition); outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--amo-gold-deep); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
button, input, select, textarea { font-family: var(--amo-font-body); margin: 0; }

/* Typography */
.amo-h1 { font-family: var(--amo-font-heading); font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.amo-h2 { font-family: var(--amo-font-heading); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.2; }
.amo-h3 { font-family: var(--amo-font-heading); font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 400; }
.amo-body { font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem); color: var(--amo-charcoal); }
.amo-caption { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amo-charcoal); }
.amo-text-center { text-align: center; }

/* Layout Grid */
.amo-container { width: 100%; min-width: 0; max-width: var(--amo-container); margin: 0 auto; padding: 0 5%; }
.amo-section { padding: var(--amo-space-xl) 0; }
.amo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--amo-space-md); }
.amo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--amo-space-md); }

/* Components: Buttons & Links */
.amo-btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 1rem 3rem; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--amo-black);
  cursor: pointer; transition: var(--amo-transition); text-align: center;
}
.amo-btn-primary { background: var(--amo-black); color: var(--amo-off-white); }
.amo-btn-primary:hover { background: var(--amo-gold-deep); border-color: var(--amo-gold-deep); color: var(--amo-black); }
.amo-btn-secondary { background: transparent; color: var(--amo-black); }
.amo-btn-secondary:hover { background: var(--amo-black); color: var(--amo-off-white); }
.amo-link-line { border-bottom: 1px solid var(--amo-black); padding-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; display: inline-block; }
.amo-link-line:hover { color: var(--amo-gold-deep); border-color: var(--amo-gold-deep); }

/* Asset Skeleton Loader & Error Fallback */
.amo-asset-box { 
  background: linear-gradient(90deg, #E8E8E8 25%, #F5F5F5 50%, #E8E8E8 75%);
  background-size: 200% 100%; animation: amo-shimmer 2s infinite linear;
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; position: relative; width: 100%; 
}
@keyframes amo-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.amo-asset-label { font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(26,26,26,0.4); text-transform: uppercase; position: absolute; text-align: center; padding: 1rem; z-index: 1; }
.amo-asset-img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.8s ease; z-index: 2; }
.amo-asset-img.is-loaded { opacity: 1; }
.amo-asset-img.is-broken { display: none !important; } /* Ẩn ảnh vỡ để giữ lại khung Shimmer sang trọng */

/* Reveal Animations */
.amo-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s var(--amo-ease); }
.amo-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { 
  .amo-reveal { transition: none; opacity: 1; transform: none; animation: none; } 
  .amo-asset-box { animation: none; background: #E8E8E8; } 
}

/* Header & Nav */
.amo-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(245, 245, 245, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: background-color var(--amo-transition), border-color var(--amo-transition);
}
.amo-header.is-scrolled { border-bottom: 1px solid rgba(26,26,26,0.08); }
.amo-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; height: 80px; max-width: var(--amo-container); margin: 0 auto; }
.amo-logo { font-family: var(--amo-font-heading); font-size: 1.5rem; letter-spacing: 0.15em; text-transform: uppercase; z-index: 102; font-weight: 600; display: block; }
.amo-nav-desktop { display: flex; gap: 2.5rem; }
.amo-nav-desktop a { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; position: relative; padding: 0.5rem 0; }
.amo-nav-desktop a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--amo-gold-deep); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: right; }
.amo-nav-desktop a:hover::after, .amo-nav-desktop a.is-active::after { transform: scaleX(1); transform-origin: left; }
.amo-nav-desktop a.is-active { color: var(--amo-gold-deep); }

.amo-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 102; padding: 0; }
.amo-menu-btn span { position: absolute; width: 100%; height: 1px; background: var(--amo-black); left: 0; transition: var(--amo-transition); }
.amo-menu-btn span:nth-child(1) { top: 0; }
.amo-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.amo-menu-btn span:nth-child(3) { bottom: 0; }
.amo-menu-btn.is-active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.amo-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.amo-menu-btn.is-active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.amo-nav-mobile {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--amo-off-white); z-index: 90;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.amo-nav-mobile.is-open { opacity: 1; visibility: visible; }
.amo-nav-mobile a { font-family: var(--amo-font-heading); font-size: 2rem; color: var(--amo-black); }
.amo-nav-mobile a.is-active { color: var(--amo-gold-deep); }

/* Footer */
.amo-footer { background: var(--amo-black); color: var(--amo-off-white); padding: var(--amo-space-lg) 5% 2rem; margin-top: auto; }
.amo-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; max-width: var(--amo-container); margin: 0 auto var(--amo-space-md); flex-wrap: wrap; gap: 2rem; }
.amo-footer-brand { font-family: var(--amo-font-heading); font-size: 1.5rem; letter-spacing: 0.1em; line-height: 1.2; }
.amo-footer-tag { font-family: var(--amo-font-body); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--amo-gold); display: block; margin-top: 0.5rem; }
.amo-footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.amo-footer-links a { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amo-off-white); }
.amo-footer-links a:hover { color: var(--amo-gold); }
.amo-footer-bottom { text-align: center; font-size: 0.75rem; color: var(--amo-charcoal); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }

/* Global Utilities */
.amo-page-header { padding: calc(80px + var(--amo-space-xl)) 5% var(--amo-space-md); text-align: center; }

/* Shop Components */
.amo-product-card { display: flex; flex-direction: column; gap: 1rem; cursor: pointer; transition: transform 0.4s ease; text-decoration: none; border: 1px solid transparent; }
.amo-product-card:hover, .amo-product-card:focus-visible { transform: translateY(-5px); border-color: rgba(26,26,26,0.05); }
.amo-product-img { aspect-ratio: 3/4; }
.amo-product-info { padding: 0 1rem 1rem; text-align: center; }
.amo-product-name { font-family: var(--amo-font-body); font-size: 1rem; font-weight: 400; margin: 0 0 0.5rem; color: var(--amo-black); }
.amo-product-status { font-size: 0.85rem; color: var(--amo-charcoal); margin: 0; letter-spacing: 0.05em; text-transform: uppercase; }

/* Forms */
.amo-form-group { margin-bottom: 1.5rem; }
.amo-input { width: 100%; padding: 1rem; border: 1px solid rgba(26,26,26,0.2); background: transparent; font-family: var(--amo-font-body); font-size: 1rem; transition: border-color 0.3s ease; color: var(--amo-black); border-radius: 0; }
.amo-input:focus { outline: none; border-color: var(--amo-gold-deep); box-shadow: inset 0 -1px 0 var(--amo-gold-deep); }
.amo-input::placeholder { color: rgba(26,26,26,0.5); }

/* AMO Commerce Demo Polish */
.amo-asset-img { object-fit: cover; }
.amo-product-img .amo-asset-img { object-fit: contain; background: #f2f0eb; padding: 7%; }
.amo-product-card { background: #fff; border: 1px solid rgba(26,26,26,.07); overflow: hidden; }
.amo-product-card:hover, .amo-product-card:focus-visible { box-shadow: 0 18px 45px rgba(26,26,26,.08); border-color: rgba(169,132,67,.28); }
.amo-product-info { padding: 1.15rem 1rem 1.35rem; }
.amo-product-name { letter-spacing: .06em; }
.amo-product-status { color: #8a744e; font-size: .72rem; }
.amo-asset-label { letter-spacing: .12em; font-size: .7rem; }
.amo-header { box-shadow: 0 1px 18px rgba(0,0,0,.025); }
@media (max-width: 767px) {
  .amo-product-card { gap: .4rem; }
  .amo-product-info { padding: .9rem .7rem 1.1rem; }
  .amo-product-name { font-size: .88rem; }
}
/* Production visual visibility */
.amo-asset-img[src] { opacity: 1; }
main > section:first-child .amo-asset-img { object-fit: cover; filter: brightness(.76); }
main > section:first-child > div[style*="z-index:2"] { color:#fff; text-shadow:0 2px 20px rgba(0,0,0,.35); }
main > section:first-child > div[style*="z-index:2"] .amo-btn { text-shadow:none; }

/* ===== AMO HOME — PREMIUM EDITORIAL V3 ===== */
.amo-home .amo-header{background:rgba(247,245,240,.92);border-bottom:1px solid rgba(22,22,20,.08)}
.amo-home-hero{min-height:100svh;position:relative;display:flex;align-items:flex-end;overflow:hidden;background:#171714;color:#f7f4ec}
.amo-home-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 58%;filter:saturate(.72) contrast(1.04)}
.amo-home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,10,8,.82) 0%,rgba(10,10,8,.55) 40%,rgba(10,10,8,.08) 78%),linear-gradient(0deg,rgba(8,8,7,.58),transparent 45%)}
.amo-home-hero-content{position:relative;z-index:3;width:min(760px,90%);margin-left:max(5vw,calc((100vw - var(--amo-container))/2));padding:clamp(9rem,16vh,13rem) 0 clamp(5rem,10vh,8rem)}
.amo-home-eyebrow,.amo-home-kicker{font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;font-weight:600}
.amo-home-eyebrow{color:#d8bd77;margin:0 0 1.5rem}
.amo-home-hero h1{font-family:var(--amo-font-heading);font-size:clamp(3.4rem,7vw,7.2rem);line-height:.93;font-weight:400;letter-spacing:-.035em;margin:0}
.amo-home-hero h1 em,.amo-home-intro h2 em,.amo-home-editorial-copy h2 em{font-weight:400;color:#d8bd77}
.amo-home-lead{max-width:570px;font-size:clamp(.95rem,1.3vw,1.15rem);line-height:1.75;color:rgba(255,255,255,.72);margin:2rem 0 2.5rem}
.amo-home-actions{display:flex;align-items:center;gap:2rem;flex-wrap:wrap}
.amo-home-btn-primary{background:#f5f1e7;color:#171714;border-color:#f5f1e7}
.amo-home-btn-primary:hover{background:#d8bd77;border-color:#d8bd77;color:#171714}
.amo-home-text-link{display:inline-flex;gap:.65rem;align-items:center;text-transform:uppercase;font-size:.72rem;letter-spacing:.16em;border-bottom:1px solid currentColor;padding-bottom:.3rem}
.amo-home-scroll{position:absolute;z-index:3;right:5%;bottom:3rem;font-size:.58rem;letter-spacing:.22em;writing-mode:vertical-rl;color:rgba(255,255,255,.55);display:flex;align-items:center;gap:.7rem}
.amo-home-scroll span{width:1px;height:42px;background:rgba(255,255,255,.45)}
.amo-home-intro{display:grid;grid-template-columns:1fr 3fr;gap:3rem;padding-top:clamp(6rem,11vw,10rem);padding-bottom:clamp(6rem,11vw,10rem)}
.amo-home-kicker{color:#9b7a39;margin:0}
.amo-home-intro h2,.amo-home-section-head h2,.amo-home-editorial-copy h2{font-family:var(--amo-font-heading);font-weight:400;letter-spacing:-.025em}
.amo-home-intro h2{font-size:clamp(2.4rem,5vw,5rem);line-height:1.05;margin:0 0 2rem}
.amo-home-intro>div>p{max-width:620px;color:#66625b;line-height:1.8}
.amo-home-styles{padding-bottom:clamp(7rem,12vw,11rem)}
.amo-home-section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:3rem}
.amo-home-section-head h2{font-size:clamp(2.2rem,4vw,4rem);margin:.5rem 0 0}
.amo-home-style-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.amo-home-style-card>div{aspect-ratio:3/4;background:#ebe8e0;overflow:hidden;margin-bottom:1.25rem}
.amo-home-style-card img{width:100%;height:100%;object-fit:contain;padding:8%;transition:transform .7s var(--amo-ease)}
.amo-home-style-card:hover img{transform:scale(1.035)}
.amo-home-style-card>span{font-size:.62rem;color:#a08754;letter-spacing:.15em}
.amo-home-style-card h3{font-family:var(--amo-font-heading);font-weight:400;font-size:1.45rem;margin:.25rem 0}
.amo-home-style-card p{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#77736b;margin:0}
.amo-home-editorial{display:grid;grid-template-columns:1.25fr .75fr;min-height:720px;background:#181816;color:#f5f1e7}
.amo-home-editorial-image{min-height:620px;overflow:hidden;background:#26241f}
.amo-home-editorial-image img{width:100%;height:100%;object-fit:cover}
.amo-home-editorial-copy{padding:clamp(4rem,8vw,9rem);display:flex;flex-direction:column;justify-content:center}
.amo-home-editorial-copy .amo-home-kicker{color:#d8bd77}
.amo-home-editorial-copy h2{font-size:clamp(2.6rem,4.5vw,5rem);line-height:1.02;margin:1rem 0 2rem}
.amo-home-editorial-copy>p:not(.amo-home-kicker){color:rgba(255,255,255,.62);line-height:1.8;max-width:470px;margin:0 0 2.5rem}
.amo-home-services{display:grid;grid-template-columns:repeat(3,1fr);padding-top:clamp(5rem,9vw,8rem);padding-bottom:clamp(5rem,9vw,8rem)}
.amo-home-services>div{padding:1rem 3rem;border-left:1px solid rgba(26,26,26,.12)}
.amo-home-services>div:first-child{border-left:0;padding-left:0}
.amo-home-services span{font-size:.65rem;color:#a08754;letter-spacing:.16em}
.amo-home-services h3{font-family:var(--amo-font-heading);font-weight:400;font-size:1.5rem;margin:.6rem 0}
.amo-home-services p{color:#716d66;font-size:.9rem;line-height:1.65}

/* ===== AMO ICON + UTILITY SYSTEM ===== */
.amo-header-inner{gap:1.5rem}.amo-header-tools{display:flex;align-items:center;gap:.35rem;margin-left:auto}
.amo-tool{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:var(--amo-black)}
.amo-tool:hover{background:#efe7d6;color:var(--amo-gold-deep)}.amo-tool svg,.amo-mini-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.amo-nav-desktop a{display:inline-flex;align-items:center;gap:.4rem}.amo-mini-icon{display:inline-grid;place-items:center;color:#9a742f}
.amo-usp-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e8e0d0;border:1px solid #e8e0d0;margin:2rem auto;max-width:var(--amo-container)}
.amo-usp{background:#fff;padding:1.2rem;display:flex;align-items:center;gap:.8rem}.amo-usp svg{width:28px;height:28px;stroke:#a87922;fill:none;stroke-width:1.7}.amo-usp b{font-size:.78rem}.amo-usp span{display:block;color:#777;font-size:.68rem;margin-top:.15rem}
@media(max-width:900px){.amo-header-tools{margin-left:auto}.amo-nav-desktop{display:none}.amo-menu-btn{display:block}.amo-usp-strip{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.amo-tool:nth-child(-n+2){display:none}.amo-usp-strip{grid-template-columns:1fr}.amo-logo{font-size:1.1rem;letter-spacing:.1em}}
