/*
Theme Name: HIKARI Studio
Theme URI: https://hikari-studio.example.com
Author: NextCatalyst LLC
Author URI: https://nextcatalyst.example.com
Description: A high-end photography studio theme with a dark, minimal aesthetic. Built with ACF + custom templates for HIKARI Studio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hikari-studio
Tags: custom-theme, photography, studio, dark-theme, minimal, acf
*/

/* ============================================================
   CSS Custom Properties
============================================================ */
:root {
    --hs-bg-dark:      #0A0A0A;
    --hs-bg-mid:       #141414;
    --hs-bg-card:      #1A1A1A;
    --hs-accent:       #D4A574;
    --hs-accent-hover: #C49464;
    --hs-text-light:   #F0EDE8;
    --hs-text-muted:   rgba(240, 237, 232, 0.5);
    --hs-text-muted-more: rgba(240, 237, 232, 0.35);
    --hs-border:       rgba(240, 237, 232, 0.1);
    --hs-white:        #FFFFFF;
    --hs-radius-sm:    4px;
    --hs-radius-md:    8px;
    --hs-radius-lg:    12px;
    --hs-shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
    --hs-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6);
    --hs-transition:   0.3s ease;
    --hs-transition-slow: 0.6s ease;
    --hs-container:    1100px;
    --hs-container-wide: 1400px;
    --hs-header-height: 72px;
    --hs-font-serif:   'Cormorant Garamond', 'Georgia', serif;
    --hs-font-sans:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hs-header-height) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--hs-font-sans);
    background-color: var(--hs-bg-dark);
    color: var(--hs-text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--hs-transition);
}

ul {
    list-style: none;
}

/* ============================================================
   Typography
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hs-font-serif);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p {
    line-height: 1.8;
}

/* ============================================================
   Layout Utilities
============================================================ */
.hs-container {
    width: 100%;
    max-width: var(--hs-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hs-container--narrow {
    max-width: 760px;
}

.hs-container--wide {
    max-width: var(--hs-container-wide);
}

.hs-section {
    padding: 120px 0;
}

.hs-section--sm {
    padding: 80px 0;
}

.hs-section-header {
    text-align: center;
    margin-bottom: 72px;
}

.hs-section-label {
    display: block;
    font-family: var(--hs-font-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hs-accent);
    margin-bottom: 16px;
}

.hs-section-header h2 {
    color: var(--hs-text-light);
    margin-bottom: 16px;
}

.hs-section-header p {
    color: var(--hs-text-muted);
    font-size: 0.9375rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   Header
============================================================ */
.hs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--hs-header-height);
    display: flex;
    align-items: center;
    transition: background var(--hs-transition), box-shadow var(--hs-transition), backdrop-filter var(--hs-transition);
    background: transparent;
}

.hs-header.is-scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--hs-border);
}

.hs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--hs-container);
    margin: 0 auto;
    padding: 0 24px;
}

.hs-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hs-font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--hs-text-light);
}

.hs-header__logo .hs-logo-icon {
    color: var(--hs-accent);
    font-size: 1.1rem;
}

.hs-header__logo .hs-logo-accent {
    color: var(--hs-accent);
    font-weight: 300;
}

.hs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hs-nav a {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--hs-text-muted);
    transition: color var(--hs-transition);
}

.hs-nav a:hover {
    color: var(--hs-text-light);
}

.hs-nav a.is-current {
    color: var(--hs-accent);
}

.hs-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    color: var(--hs-accent);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    border: 1px solid var(--hs-accent);
    transition: background var(--hs-transition), color var(--hs-transition);
}

.hs-header__cta:hover {
    background: var(--hs-accent);
    color: var(--hs-bg-dark);
}

/* Hamburger */
.hs-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    color: var(--hs-text-light);
}

.hs-hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform var(--hs-transition), opacity var(--hs-transition);
}

.hs-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hs-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hs-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Mobile Nav Overlay
============================================================ */
.hs-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: var(--hs-header-height);
}

.hs-mobile-nav.is-open {
    display: flex;
}

.hs-mobile-nav a {
    font-family: var(--hs-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--hs-text-muted);
    padding: 12px 24px;
    transition: color var(--hs-transition);
}

.hs-mobile-nav a:hover {
    color: var(--hs-accent);
}

.hs-mobile-nav .hs-btn {
    margin-top: 24px;
}

/* ============================================================
   Footer
============================================================ */
.hs-footer {
    background: var(--hs-bg-dark);
    border-top: 1px solid var(--hs-border);
    padding: 80px 0 40px;
}

.hs-footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.hs-footer__brand .hs-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hs-font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--hs-text-light);
    margin-bottom: 20px;
}

.hs-footer__brand .hs-logo-icon {
    color: var(--hs-accent);
}

.hs-footer__brand p {
    font-size: 0.8125rem;
    color: var(--hs-text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.hs-footer__social {
    display: flex;
    gap: 12px;
}

.hs-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hs-border);
    color: var(--hs-text-muted);
    font-size: 0.9rem;
    transition: all var(--hs-transition);
}

.hs-footer__social a:hover {
    border-color: var(--hs-accent);
    color: var(--hs-accent);
    background: rgba(212, 165, 116, 0.08);
}

.hs-footer__col h4 {
    font-family: var(--hs-font-serif);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hs-text-light);
    margin-bottom: 24px;
}

.hs-footer__col ul li {
    margin-bottom: 12px;
}

.hs-footer__col ul li a {
    font-size: 0.8125rem;
    color: var(--hs-text-muted);
    transition: color var(--hs-transition);
}

.hs-footer__col ul li a:hover {
    color: var(--hs-accent);
}

.hs-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--hs-text-muted);
    margin-bottom: 14px;
}

.hs-footer__contact-item i {
    color: var(--hs-accent);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.hs-footer__bottom {
    border-top: 1px solid var(--hs-border);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hs-footer__bottom p {
    font-size: 0.75rem;
    color: var(--hs-text-muted-more);
    letter-spacing: 0.04em;
}

.hs-footer__bottom-links {
    display: flex;
    gap: 24px;
}

.hs-footer__bottom-links a {
    font-size: 0.75rem;
    color: var(--hs-text-muted-more);
    transition: color var(--hs-transition);
}

.hs-footer__bottom-links a:hover {
    color: var(--hs-accent);
}

/* ============================================================
   Buttons
============================================================ */
.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    font-family: var(--hs-font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--hs-transition);
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.hs-btn--primary {
    background: var(--hs-accent);
    color: var(--hs-bg-dark);
    border-color: var(--hs-accent);
}

.hs-btn--primary:hover {
    background: var(--hs-accent-hover);
    border-color: var(--hs-accent-hover);
    color: var(--hs-bg-dark);
}

.hs-btn--outline {
    background: transparent;
    color: var(--hs-text-light);
    border-color: var(--hs-border);
}

.hs-btn--outline:hover {
    border-color: var(--hs-text-light);
    color: var(--hs-text-light);
}

.hs-btn--outline-accent {
    background: transparent;
    color: var(--hs-accent);
    border-color: var(--hs-accent);
}

.hs-btn--outline-accent:hover {
    background: var(--hs-accent);
    color: var(--hs-bg-dark);
}

.hs-btn--lg {
    padding: 18px 56px;
    font-size: 0.875rem;
}

.hs-btn--sm {
    padding: 10px 24px;
    font-size: 0.75rem;
}

.hs-btn--full {
    width: 100%;
}

.hs-btn--white {
    background: var(--hs-white);
    color: var(--hs-bg-dark);
    border-color: var(--hs-white);
}

.hs-btn--white:hover {
    background: transparent;
    color: var(--hs-white);
    border-color: var(--hs-white);
}

/* ============================================================
   Cards
============================================================ */
.hs-card {
    background: var(--hs-bg-card);
    border: 1px solid var(--hs-border);
    padding: 40px 32px;
    transition: all var(--hs-transition);
}

.hs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hs-shadow-hover);
    border-color: rgba(212, 165, 116, 0.25);
}

.hs-card--featured {
    border: 1px solid var(--hs-accent);
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.1);
}

.hs-card--featured:hover {
    box-shadow: 0 0 60px rgba(212, 165, 116, 0.2);
}

/* ============================================================
   Page Header (sub pages)
============================================================ */
.hs-page-header {
    padding-top: calc(var(--hs-header-height) + 80px);
    padding-bottom: 80px;
    background: var(--hs-bg-dark);
    text-align: center;
    position: relative;
}

.hs-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--hs-accent);
}

.hs-page-header__label {
    display: inline-block;
    font-family: var(--hs-font-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hs-accent);
    margin-bottom: 20px;
}

.hs-page-header h1 {
    color: var(--hs-text-light);
    margin-bottom: 16px;
    font-weight: 300;
}

.hs-page-header p {
    color: var(--hs-text-muted);
    font-size: 0.9375rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ============================================================
   Scroll Animation
   Initial hidden state — animated by GSAP ScrollTrigger.
   CSS transitions kept as fallback when GSAP is unavailable.
============================================================ */
.hs-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hs-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hs-animate--left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hs-animate--left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.hs-animate--right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hs-animate--right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.hs-animate-delay-1 { transition-delay: 0.15s; }
.hs-animate-delay-2 { transition-delay: 0.3s; }
.hs-animate-delay-3 { transition-delay: 0.45s; }
.hs-animate-delay-4 { transition-delay: 0.6s; }
.hs-animate-delay-5 { transition-delay: 0.75s; }

/* ============================================================
   Hero Character Split (GSAP)
============================================================ */
.hs-hero__char {
    display: inline-block;
    transform-style: preserve-3d;
}

.hs-hero__heading {
    perspective: 400px;
}

/* ============================================================
   Custom Cursor (GSAP)
============================================================ */
.hs-cursor,
.hs-cursor__dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    mix-blend-mode: difference;
}

.hs-cursor {
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border: 1px solid rgba(240, 237, 232, 0.5);
    transition: width 0.35s ease, height 0.35s ease,
                margin 0.35s ease, background 0.35s ease,
                border-color 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-cursor__text {
    opacity: 0;
    font-family: var(--hs-font-serif);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hs-bg-dark);
    transition: opacity 0.25s ease;
    white-space: nowrap;
}

.hs-cursor.is-active {
    width: 64px;
    height: 64px;
    margin-left: -32px;
    margin-top: -32px;
    background: rgba(240, 237, 232, 0.12);
    border-color: rgba(212, 165, 116, 0.6);
}

.hs-cursor.is-gallery {
    width: 88px;
    height: 88px;
    margin-left: -44px;
    margin-top: -44px;
    background: var(--hs-accent);
    border-color: var(--hs-accent);
    mix-blend-mode: normal;
}

.hs-cursor.is-gallery .hs-cursor__text {
    opacity: 1;
}

.hs-cursor__dot {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    background: var(--hs-accent);
}

/* Hide custom cursor & native cursor adjustments on touch / small screens */
@media (pointer: coarse), (max-width: 768px) {
    .hs-cursor,
    .hs-cursor__dot {
        display: none !important;
    }
}

/* ============================================================
   CTA Section
============================================================ */
.hs-cta-section {
    background: var(--hs-bg-mid);
    border-top: 1px solid var(--hs-border);
    border-bottom: 1px solid var(--hs-border);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hs-cta-section h2 {
    color: var(--hs-text-light);
    margin-bottom: 16px;
    font-weight: 300;
}

.hs-cta-section p {
    color: var(--hs-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 48px;
}

/* ============================================================
   Divider
============================================================ */
.hs-divider {
    border: none;
    border-top: 1px solid var(--hs-border);
    margin: 0;
}

.hs-divider--accent {
    width: 40px;
    border-top-color: var(--hs-accent);
    margin: 0 auto;
}

/* ============================================================
   Accessibility
============================================================ */
:focus-visible {
    outline: 1px solid var(--hs-accent);
    outline-offset: 3px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
    .hs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --hs-header-height: 64px;
    }

    .hs-section {
        padding: 80px 0;
    }

    .hs-nav,
    .hs-header__cta {
        display: none;
    }

    .hs-hamburger {
        display: flex;
    }

    .hs-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hs-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hs-page-header {
        padding-top: calc(var(--hs-header-height) + 60px);
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hs-section {
        padding: 64px 0;
    }

    .hs-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hs-section-header {
        margin-bottom: 48px;
    }
}
