/* ==========================================================================
   LARONE 燕序 - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Foundations
   -------------------------------------------------------------------------- */
:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Playfair Display", "Noto Serif TC", ui-serif, Georgia, serif;
    --color-brand-bg: #161312;
    --color-brand-gold: #d3b295;
    --color-brand-gold-light: #eaddd1;
    --color-brand-gold-dark: #a68465;
    --color-brand-text: #a89f98;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-brand-bg);
    color: var(--color-brand-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(211, 178, 149, 0.3);
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
}

.text-gradient {
    background: linear-gradient(to right, var(--color-brand-gold-light), var(--color-brand-gold), var(--color-brand-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Tailwind-like Utility Classes (subset used in templates)
   -------------------------------------------------------------------------- */

/* Layout */
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.pointer-events-none { pointer-events: none; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.shrink-0 { flex-shrink: 0; }
.inline-block { display: inline-block; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pl-8 { padding-left: 2rem; }
.pl-16 { padding-left: 4rem; }
.pl-24 { padding-left: 6rem; }
.-ml-4 { margin-left: -1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-4 { margin-top: 1rem; }
.mt-24 { margin-top: 6rem; }

/* Sizing */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-px { width: 1px; }
.h-px { height: 1px; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }
.max-w-7xl { max-width: 80rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-\[400px\] { min-height: 400px; }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.italic { font-style: italic; }

/* Colors */
.bg-brand-bg { background-color: var(--color-brand-bg); }
.bg-brand-gold\/5 { background-color: rgba(211, 178, 149, 0.05); }
.text-brand-gold { color: var(--color-brand-gold); }
.text-brand-gold-light { color: var(--color-brand-gold-light); }
.text-brand-gold-dark { color: var(--color-brand-gold-dark); }
.text-brand-text { color: var(--color-brand-text); }
.text-brand-text\/50 { color: rgba(168, 159, 152, 0.5); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-red-500\/80 { color: rgba(239, 68, 68, 0.8); }
.text-yellow-500\/80 { color: rgba(234, 179, 8, 0.8); }
.border-brand-gold\/10 { border-color: rgba(211, 178, 149, 0.1); }
.border-brand-gold\/20 { border-color: rgba(211, 178, 149, 0.2); }
.border-brand-gold\/30 { border-color: rgba(211, 178, 149, 0.3); }
.border-red-900\/30 { border-color: rgba(127, 29, 29, 0.3); }
.border-yellow-900\/30 { border-color: rgba(113, 63, 18, 0.3); }
.bg-red-950\/10 { background-color: rgba(69, 10, 10, 0.1); }
.bg-yellow-950\/10 { background-color: rgba(66, 32, 6, 0.1); }
.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.20; }
.opacity-60 { opacity: 0.60; }
.opacity-70 { opacity: 0.70; }
.opacity-80 { opacity: 0.80; }
.opacity-90 { opacity: 0.90; }
.opacity-\[0\.03\] { opacity: 0.03; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* Effects */
.blur-\[120px\] { filter: blur(120px); }
.blur-\[150px\] { filter: blur(150px); }
.mix-blend-screen { mix-blend-mode: screen; }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)); }
.selection\:bg-brand-gold\/30 ::selection,
.selection\:bg-\[\#d3b295\]\/30 ::selection { background: rgba(211, 178, 149, 0.3); }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 300ms; }
.transition-all { transition-property: all; transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

/* Transform */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Cursor */
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }

/* Aspect Ratios */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }

/* Background gradients used inline */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-brand-gold\/5 { --tw-gradient-from: rgba(211, 178, 149, 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }

/* --------------------------------------------------------------------------
   Responsive (md: 768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:gap-8 { gap: 2rem; }
    .md\:gap-y-32 { row-gap: 8rem; }
    .md\:text-right { text-align: right; }
    .md\:text-left { text-align: left; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-sm { font-size: 0.875rem; }
    .md\:h-12 { height: 3rem; }
    .md\:h-14 { height: 3.5rem; }
    .md\:h-16 { height: 4rem; }
    .md\:h-20 { height: 5rem; }
    .md\:h-24 { height: 6rem; }
    .md\:h-32 { height: 8rem; }
    .md\:pr-16 { padding-right: 4rem; }
    .md\:pl-16 { padding-left: 4rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:mt-24 { margin-top: 6rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: flex-end; }
    .md\:items-start { align-items: flex-start; }
    .md\:block { display: block; }
    .md\:h-\[600px\] { height: 600px; }
}

@media (min-width: 1024px) {
    .lg\:px-24 { padding-left: 6rem; padding-right: 6rem; }
}

/* Hidden utilities */
.hidden { display: none; }
@media (min-width: 768px) {
    .md\:block { display: block; }
}

/* --------------------------------------------------------------------------
   Gradient Backgrounds (inline from React components)
   -------------------------------------------------------------------------- */
.bg-gradient-to-b-brand {
    background: linear-gradient(to bottom, transparent, rgba(22, 19, 18, 0.8), #161312);
}

.bg-gradient-to-r-brand {
    background: linear-gradient(to right, #161312, transparent, #161312);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* Fade In on Scroll */
.larone-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.larone-fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.larone-fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.larone-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.larone-fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.larone-scale-in {
    opacity: 0;
    transform: scale(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.larone-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Line Grow */
.larone-line-grow {
    transform: scaleY(0);
    transition: transform 1.5s ease-in-out 0.5s;
}

.larone-line-grow.is-visible {
    transform: scaleY(1);
}

.larone-line-grow-h {
    transform: scaleX(0);
    transition: transform 1.5s ease-in-out 0.5s;
}

.larone-line-grow-h.is-visible {
    transform: scaleX(1);
}

/* Floating Orb Animation */
@keyframes larone-float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.2); }
    66% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes larone-float-orb-alt {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-100px, 100px) scale(1.5); }
    66% { transform: translate(50px, -50px) scale(1.3); }
}

.larone-orb {
    animation: larone-float-orb 20s linear infinite;
}

.larone-orb-alt {
    animation: larone-float-orb-alt 25s linear infinite;
}

/* Hero Particles */
@keyframes larone-particle-float {
    0%, 100% { opacity: 0.1; transform: translateY(0) translateX(0); }
    50% { opacity: 0.6; transform: translateY(-100px) translateX(25px); }
}

.larone-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-brand-gold);
}

/* Hover effects */
.larone-hover-right {
    transition: transform 0.3s ease;
}

.larone-hover-right:hover {
    transform: translateX(10px);
}

/* Group hover for value cards */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-brand-gold { color: var(--color-brand-gold); }
.group:hover .group-hover\:border-brand-gold\/50 { border-color: rgba(211, 178, 149, 0.5); }
.group:hover .group-hover\:shadow-\[0_0_30px_rgba\(211\2c 178\2c 149\2c 0\.15\)\] {
    box-shadow: 0 0 30px rgba(211, 178, 149, 0.15);
}

/* Hover states */
.hover\:bg-brand-gold:hover { background-color: var(--color-brand-gold); }
.hover\:text-brand-bg:hover { color: var(--color-brand-bg); }
.hover\:bg-brand-gold\/5:hover { background-color: rgba(211, 178, 149, 0.05); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   WordPress Admin Bar Fix
   -------------------------------------------------------------------------- */
body.admin-bar .fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .fixed {
        top: 46px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-brand-bg);
}

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

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