/* ==========================================================================
   Ô Petit Japon - Sushi Restaurant
   Minimalist Japanese-inspired design
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #1a1a1a;
    --dark: #2c2c2c;
    --cream: #f7f3ed;
    --warm-white: #faf8f5;
    --red: #c41e3a;
    --red-dark: #a3172f;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --text-muted: #999;
    --border: #e8e3db;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.3;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 44px;
    width: auto;
    transition: all var(--transition);
}

.header.scrolled .header-logo {
    height: 36px;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-desktop a {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    padding: 4px 0;
}

.header.scrolled .nav-desktop a {
    color: var(--text);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    transition: all var(--transition);
}

.header.scrolled .header-phone {
    color: var(--red);
    background: rgba(196, 30, 58, 0.06);
    border-color: rgba(196, 30, 58, 0.15);
}

.header-phone:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .header-phone:hover {
    background: rgba(196, 30, 58, 0.1);
}

/* ---------- Mobile Navigation ---------- */
.nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 200;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
    border-radius: 2px;
}

.header.scrolled ~ .nav-toggle span {
    background: var(--dark);
}

.nav-toggle.active span {
    background: #fff !important;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 150;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile ul {
    list-style: none;
    text-align: center;
}

.nav-mobile li {
    margin: 24px 0;
}

.nav-mobile a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--gold);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-tagline {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-jp {
    display: block;
    font-family: var(--font-jp);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 12px;
}

.hero-tagline h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero-tagline h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-tagline p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    font-weight: 300;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    animation: bounce 2s ease infinite 2s;
    z-index: 3;
}

.hero-scroll:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Sections General ---------- */
.section-concept,
.section-hours {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--black);
    margin-bottom: 24px;
    font-weight: 400;
}

h2 em {
    font-style: italic;
    color: var(--red);
}

/* ---------- Concept Section ---------- */
.section-concept {
    background: var(--warm-white);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.concept-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.concept-visual {
    display: grid;
    gap: 20px;
}

.concept-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
}

.concept-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.08);
    transform: translateY(-2px);
}

.concept-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--gold);
}

.concept-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--black);
    margin-bottom: 4px;
}

.concept-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Divider ---------- */
.divider {
    text-align: center;
    padding: 20px 0;
    background: var(--cream);
}

.divider-kanji {
    font-family: var(--font-jp);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.4;
    letter-spacing: 0.5em;
}

/* ---------- Hours & Location ---------- */
.section-hours {
    background: var(--cream);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.hours-block h2,
.location-block h2 {
    margin-bottom: 32px;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
}

.hours-time {
    font-size: 0.88rem;
    color: var(--text-light);
    text-align: right;
}

.hours-time.closed {
    color: var(--red);
    font-weight: 500;
    font-size: 0.85rem;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.location-address i {
    color: var(--red);
    font-size: 1.2rem;
    margin-top: 2px;
}

.location-address p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.location-map iframe {
    display: block;
}

/* ---------- CTA Section ---------- */
.section-cta {
    padding: 100px 0;
    background: var(--black);
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.cta-content .hero-jp {
    margin-bottom: 16px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
    background: #111;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-info p,
.footer-hours p,
.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact i {
    font-size: 0.8rem;
    width: 16px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition);
}

.footer-dev a:hover {
    color: var(--gold);
}

/* ---------- Page Header (non-hero pages) ---------- */
.page-header {
    padding: 140px 0 60px;
    background: var(--black);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    font-weight: 400;
    margin-top: 8px;
}

.page-header .hero-jp {
    margin-bottom: 0;
}

/* ---------- About Page ---------- */
.section-about {
    padding: 100px 0;
    background: var(--warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.about-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.about-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.about-photo-caption span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.about-text h2 {
    margin-bottom: 28px;
}

.about-text p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ---------- Philosophy Section ---------- */
.section-philosophy {
    padding: 64px 0 100px;
    background: var(--cream);
}

.philosophy-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content h2 {
    margin-bottom: 36px;
}

.philosophy-content > p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-quote {
    position: relative;
    margin: 40px 0;
    padding: 32px 36px;
    background: #fff;
    border-radius: 16px;
    border-left: 3px solid var(--gold);
    text-align: left;
}

.about-quote p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
}

.about-signature {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-signature p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
}

.signature-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.signature-role {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Contact Page ---------- */
.section-contact {
    padding: 100px 0;
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form-block h2,
.contact-info-block h2 {
    margin-bottom: 32px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.02em;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.btn-success {
    background: #2d8a4e !important;
}

.btn-success:hover {
    background: #2d8a4e !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Info cards */
.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-size: 0.95rem;
}

.contact-info-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--text-light);
    transition: color var(--transition);
}

.contact-info-item a:hover {
    color: var(--red);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-map iframe {
    display: block;
}

/* ---------- Gallery ---------- */
.section-gallery {
    padding: 80px 0 100px;
    background: var(--cream);
}

.gallery-intro {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.gallery-ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition);
}

.gallery-ig-link:hover {
    color: var(--red);
}

.gallery-ig-link i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-embeds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.gallery-embed-item {
    min-width: 0;
    overflow: hidden;
}

.gallery-embed-item .instagram-media {
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.gallery-cta {
    text-align: center;
}

.gallery-cta .btn-primary i {
    margin-right: 8px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-embeds {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .hero-logo {
        width: 150px;
        margin-bottom: 32px;
    }

    .section-concept,
    .section-hours,
    .section-about,
    .section-contact,
    .section-gallery {
        padding: 72px 0;
    }

    .gallery-embeds {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-philosophy {
        padding: 48px 0 72px;
    }

    .section-cta {
        padding: 72px 0;
    }

    .about-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-quote {
        padding: 24px 20px;
    }

    .page-header {
        padding: 120px 0 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-tagline h1 {
        font-size: 1.6rem;
    }

    .hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hours-time {
        text-align: left;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
