/*
Theme Name: Divi Child
Template: Divi
*/
/* ══════════════════════════════
   LUOPUA — style.css
   Fontti ladataan HTML:ssä <link>-tagilla
   (Google Fonts ei kuulu CSS-tiedostoon)
══════════════════════════════ */

/* ══════════════════════════════
   CSS VARIABLES
══════════════════════════════ */
:root {
  --licorice: #322E38;
  --plum: #5B164B;
  --parchment: #F7EBE8;
  --amber: #F0803C;
  --slate: #7D84B2;
  --moss: #5B7A5E;
  --deep: #1a1719;
}

/* ══════════════════════════════
   RESET & BASE
══════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--licorice);
  color: var(--parchment);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--plum);
  color: var(--parchment);
}

/* ══════════════════════════════
   SKIP LINK (Accessibility)
══════════════════════════════ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--plum);
  color: var(--parchment);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 200;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.skip-link:focus {
  top: 0;
}

/* ══════════════════════════════
   FOCUS STYLES (Accessibility)
══════════════════════════════ */
a:focus,
button:focus {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(50, 46, 56, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 235, 232, 0.06);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.nav-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(247, 235, 232, 0.12);
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.24em;
  color: var(--parchment);
}

.nav-links {
  display: flex;
  gap: 40px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--parchment);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-ambient-plum {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(91, 22, 75, 0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hero-ambient-slate {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(125, 132, 178, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.ghost-ma {
  position: absolute;
  right: -60px;
  bottom: -100px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 520px;
  line-height: 1;
  color: var(--plum);
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
  animation: ghostFadeIn 2.5s ease forwards;
}

@keyframes ghostFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 0.06;
    transform: translateY(0);
  }
}

.ghost-ma-2 {
  position: absolute;
  right: -20px;
  bottom: -80px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 520px;
  line-height: 1;
  color: var(--slate);
  opacity: 0.025;
  user-select: none;
  pointer-events: none;
  animation: ghostFadeIn 3s ease forwards;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 1.2s ease forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  display: block;
  opacity: 0.75;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 78px;
  line-height: 1.08;
  color: var(--parchment);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--slate);
  display: block;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--parchment);
  opacity: 0.7;
  letter-spacing: 0.08em;
  line-height: 1.7;
  max-width: 480px;
}

.hero-ma-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--amber);
  opacity: 0.65;
  margin-top: 24px;
  display: block;
}

/* ══════════════════════════════
   SERVICES SECTION
══════════════════════════════ */
.services {
  background: var(--deep);
  padding: 140px 48px 120px;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '捨';
  position: absolute;
  left: -80px;
  top: 20%;
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 450px;
  color: var(--plum);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.services-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.services-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.6;
  margin-bottom: 72px;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-card {
  padding: 56px 0;
  border-top: 1px solid rgba(247, 235, 232, 0.06);
  position: relative;
  cursor: default;
  transition: all 0.5s ease;
}

.service-card:last-child {
  border-bottom: 1px solid rgba(247, 235, 232, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: top;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  padding-left: 32px;
}

.service-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 42px;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

.service-meta {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--slate);
  opacity: 0.55;
  text-transform: uppercase;
}

.service-description {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.75;
  color: var(--parchment);
  opacity: 0.75;
  max-width: 720px;
  letter-spacing: 0.015em;
}

.service-card:hover .service-description {
  opacity: 0.9;
}

/* ══════════════════════════════
   PHILOSOPHY PANEL
══════════════════════════════ */
.philosophy {
  background: var(--plum);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '間';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 600px;
  color: var(--parchment);
  opacity: 0.04;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.philosophy-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.philosophy-kanji {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 160px;
  color: var(--parchment);
  opacity: 0.2;
  line-height: 0.9;
  margin-bottom: -10px;
}

.philosophy-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 64px;
  color: var(--parchment);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.philosophy-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--parchment);
  opacity: 0.6;
}

.philosophy-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.philosophy-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--parchment);
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.philosophy-text strong {
  font-weight: 400;
  opacity: 1;
}

.philosophy-connection {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 235, 232, 0.12);
  opacity: 0.6;
}

.phil-conn-kanji {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 24px;
  color: var(--parchment);
}

.phil-conn-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--parchment);
  letter-spacing: 0.05em;
}

.phil-conn-arrow {
  color: var(--amber);
  font-size: 11px;
}

/* ══════════════════════════════
   CONTACT / CTA
══════════════════════════════ */
.contact {
  background: var(--licorice);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 132, 178, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
  margin-bottom: 32px;
  display: block;
}

.contact-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 58px;
  line-height: 1.2;
  color: var(--parchment);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.contact-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--parchment);
  opacity: 0.65;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.contact-email {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--parchment);
  text-decoration: none;
  padding: 18px 48px;
  border: 1px solid rgba(247, 235, 232, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-email::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.contact-email:hover::before {
  transform: scaleX(1);
}

.contact-email:hover {
  border-color: var(--plum);
  color: var(--parchment);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--deep);
  padding: 64px 48px 48px;
  border-top: 1px solid rgba(247, 235, 232, 0.04);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--parchment);
  opacity: 0.4;
}

.footer-sep {
  width: 1px;
  height: 20px;
  background: rgba(247, 235, 232, 0.08);
}

.footer-story {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.25;
}

.footer-s-kanji {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 13px;
  color: var(--parchment);
}

.footer-s-arrow {
  font-size: 9px;
  color: var(--amber);
}

.footer-s-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.1em;
}

.footer-note {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--slate);
  opacity: 0.25;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-h1 {
    font-size: 48px;
  }

  .ghost-ma,
  .ghost-ma-2 {
    font-size: 280px;
    right: -40px;
    bottom: -60px;
  }

  .services {
    padding: 80px 24px;
  }

  .service-card {
    padding: 40px 0;
  }

  .service-name {
    font-size: 32px;
  }

  .service-description {
    font-size: 17px;
  }

  .philosophy {
    padding: 80px 24px;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .philosophy-title {
    font-size: 42px;
  }

  .contact {
    padding: 80px 24px;
  }

  .contact-h2 {
    font-size: 38px;
  }

  .footer {
    padding: 48px 24px 32px;
  }

  .footer-story {
    display: none;
  }
}
