/*
 * SUGAHO - Luxury Sake Brand
 * High-end minimalist design inspired by Hermès, Dom Pérignon, Aman
 */

/* === Base Reset & Typography === */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a961;
    --gold-light: #dfc590;
    --gold-dark: #a08545;
    --sumi: #0a0a0a;
    --sumi-light: #2a2a2a;
    --washi: #fafafa;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Serif JP', serif;
    background: var(--washi);
    color: var(--sumi);
    line-height: 1.8;
    overflow-x: hidden;
}

.font-garamond {
    font-family: 'Cormorant Garamond', serif;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--washi);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* === Selection === */
::selection {
    background: rgba(201, 169, 97, 0.15);
    color: var(--sumi);
}

/* === Fade In Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 1.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Noise Texture === */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* === Navigation === */
nav {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

/* === Mobile Menu === */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* === Luxury Button === */
.luxury-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold);
    background: transparent;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: left 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luxury-btn:hover::before {
    left: 100%;
}

.luxury-btn:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* === Image Hover Effect === */
.img-hover {
    overflow: hidden;
}

.img-hover img {
    transition: transform 3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-hover:hover img {
    transform: scale(1.08);
}

/* === Vertical Text === */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* === Section Spacing === */
.section-padding {
    padding: 15vh 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 20vh 0;
    }
}

/* === Divider Lines === */
.divider-gold {
    width: 24px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

.divider-vertical {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

/* === Footer === */
footer a {
    color: var(--sumi-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold);
}

/* === Page Header (for sub pages) === */
.page-header {
    padding: 20vh 0 10vh;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--sumi);
    margin-bottom: 1.5rem;
}

.page-header .subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #999;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3.5rem;
    }
}

/* === Content Container === */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Typography === */
.text-lead {
    font-size: 1.125rem;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: var(--sumi-light);
}

.text-body {
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.03em;
    color: #555;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #666;
}

/* === Responsive === */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
}
