/* ============================================
   STAYVISION STUDIOS - Apple-Like Premium Design
   Clean, Minimal, Modern, Prestige
   ============================================ */

:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-elevated: #111111;
  --color-text: #f5f5f7;
  --color-text-secondary: #86868b;
  --color-text-tertiary: #6e6e73;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #c5a47e;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', 'Inter', -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 56px;
  --container-max: 1120px;
  --section-gap: clamp(100px, 12vw, 180px);
}

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

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Typography */
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.text-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.text-body {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  line-height: 1.7;
}

.label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: 980px;
  border: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-word {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: color 0.25s;
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.35s var(--ease-out);
  position: absolute;
  left: 0;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--color-text);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}

.hero-title .line-inner.visible {
  transform: translateY(0);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s;
}

.hero .btn-primary {
  opacity: 0;
  transform: translateY(20px);
}

.hero .btn-primary.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */
.featured-image {
  padding: 0 clamp(20px, 5vw, 48px);
  margin-bottom: var(--section-gap);
}

.featured-image-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-gap) 0;
}

.section-intro {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-intro .heading-lg {
  max-width: 600px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.about-body p:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.stat {
  background: var(--color-surface);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 32px);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  letter-spacing: 0.01em;
}

/* About Image */
.section-image {
  margin-bottom: var(--section-gap);
}

.image-full {
  border-radius: 20px;
  overflow: hidden;
}

.image-full img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============================================
   SERVICES
   ============================================ */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 48px 1fr 2fr 32px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  transition: opacity 0.3s;
  cursor: pointer;
}

.service-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-item:hover {
  opacity: 0.6;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  line-height: 1.6;
  max-width: 420px;
}

.service-arrow {
  color: var(--color-text-tertiary);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.service-item:hover .service-arrow {
  transform: translate(3px, -3px);
  color: var(--color-text);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card-wide {
  grid-column: 1 / -1;
}

.portfolio-card-image {
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.portfolio-card-wide .portfolio-card-image img {
  aspect-ratio: 21/9;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.04);
}

.portfolio-card-info {
  padding: 20px 0 8px;
}

.portfolio-card-info .label {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.portfolio-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================
   PROCESS
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.process-step {
  background: var(--color-surface);
  padding: clamp(28px, 3vw, 40px);
  transition: background 0.3s;
}

.process-step:hover {
  background: var(--color-surface-elevated);
}

.process-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  display: block;
  margin-bottom: 24px;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  text-align: center;
}

.testimonial-content {
  max-width: 780px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
}

.contact-text {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.contact-detail a,
.contact-detail span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  transition: color 0.25s;
}

.contact-detail a:hover {
  color: var(--color-accent);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-text-tertiary);
  background: var(--color-surface-elevated);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
  min-width: 200px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--section-gap);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  transition: color 0.25s;
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  width: auto;
  max-width: 560px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s var(--ease-out);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner.hidden {
  transform: translateX(-50%) translateY(calc(100% + 40px));
}

.cookie-text {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 980px;
  transition: all 0.25s;
}

.cookie-btn-accept {
  background: var(--color-text);
  color: var(--color-bg);
}

.cookie-btn-accept:hover {
  opacity: 0.85;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.cookie-btn-decline:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: var(--section-gap);
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-left: 8px;
  position: relative;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: -16px;
  color: var(--color-text-tertiary);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.legal-content a:hover {
  opacity: 0.7;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  transition: color 0.25s;
}

.legal-back:hover {
  color: var(--color-text);
}

.legal-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.legal-back:hover svg {
  transform: translateX(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-item {
    grid-template-columns: 36px 1fr 32px;
  }

  .service-desc {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 140px 20px 80px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-wide {
    grid-column: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    transform: translateX(0) translateY(calc(100% + 40px));
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner.visible {
    transform: translateX(0) translateY(0);
  }

  .cookie-banner.hidden {
    transform: translateX(0) translateY(calc(100% + 40px));
  }

  .service-item {
    grid-template-columns: 1fr 32px;
    gap: 12px;
    padding: 24px 0;
  }

  .service-index {
    display: none;
  }

  .form-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .heading-lg {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}
