/* ==========================================================================
   BAGALÀ & PARTNERS - Holding Page Stylesheet
   Aesthetic: Warm Editorial Luxury & Institutional Rigor (Light Theme)
   ========================================================================== */

:root {
  /* Warm Ivory / Cotton Archive Paper Base */
  --bg-primary: #fbf9f5;
  --bg-secondary: #f4f0e8;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 1);
  
  /* Noble Bronze & Warm Gold Accents */
  --gold-primary: #947247;
  --gold-light: #b89569;
  --gold-tint: #f6efe4;
  --gold-border: rgba(168, 134, 89, 0.22);
  --gold-border-hover: rgba(168, 134, 89, 0.45);
  --gold-glow: rgba(168, 134, 89, 0.12);

  /* Editorial Typography Colors */
  --text-primary: #181d26;
  --text-muted: #4e5868;
  --text-dim: #798495;

  /* Institutional Emerald */
  --accent-emerald: #059669;
  --accent-emerald-bg: rgba(5, 150, 105, 0.08);
  --accent-emerald-border: rgba(5, 150, 105, 0.28);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-jp: 'Noto Serif JP', serif;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.main-container {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Timezones (Full Width Edge-to-Edge)
   ========================================================================== */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--gold-border);
  padding: 1.5rem 0;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.header-inner {
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  max-width: 310px;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.timezones {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-border);
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(24, 29, 38, 0.04);
}

.tz-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tz-city {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-primary);
}

.tz-time {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-weight: 600;
}

.tz-separator {
  color: rgba(148, 114, 71, 0.45);
  font-size: 0.85rem;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Status Badge */
.status-badge-container {
  margin-bottom: 1.85rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
}

.pulse-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulseAnimation 2s infinite ease-out;
  opacity: 0.45;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

.status-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent-emerald);
  text-transform: uppercase;
}

/* Intro Heading */
.intro-heading {
  margin-bottom: 2.25rem;
}

.tag-overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.headline-primary {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.headline-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 670px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 400;
}

/* ==========================================================================
   Language Selector Tabs
   ========================================================================== */
.lang-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold-border);
  padding: 0.3rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  gap: 0.3rem;
  box-shadow: 0 4px 15px rgba(24, 29, 38, 0.04);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(148, 114, 71, 0.06);
}

.lang-btn.active {
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(24, 29, 38, 0.15);
}

/* ==========================================================================
   Bilingual Grid & Content Panels
   ========================================================================== */
.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  margin-bottom: 3.5rem;
}

.grid-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--gold-primary);
  opacity: 0.8;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--gold-border) 25%, var(--gold-border) 75%, transparent);
}

.divider-emblem {
  font-size: 1.15rem;
  color: var(--gold-primary);
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 2.5rem 2.15rem;
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(24, 29, 38, 0.04), 0 1px 3px rgba(24, 29, 38, 0.02);
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.lang-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 18px 45px rgba(24, 29, 38, 0.08), 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 114, 71, 0.14);
  padding-bottom: 1.15rem;
}

.card-lang-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--gold-tint);
  color: var(--gold-primary);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.card-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.card-text.highlight {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

.card-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-text.notice {
  font-size: 0.9rem;
  color: var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  padding-left: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Tipografia Giapponese Dedicata */
.jp-font {
  font-family: var(--font-jp), sans-serif;
  letter-spacing: 0.04em;
  line-height: 2.0;
}

.card-title.jp-font {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Quick Contact Hub
   ========================================================================== */
.contact-hub {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(24, 29, 38, 0.04);
}

.hub-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 8px rgba(24, 29, 38, 0.02);
  transition: all 0.3s var(--transition-smooth);
}

.contact-box:hover {
  border-color: var(--gold-light);
  box-shadow: 0 8px 22px rgba(24, 29, 38, 0.07);
  transform: translateY(-2px);
}

.contact-box-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-email {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.copy-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.copy-btn.copied {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
}

/* ==========================================================================
   Footer (Full Width Edge-to-Edge)
   ========================================================================== */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--gold-border);
  padding: 2.25rem 0;
  margin-top: auto;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.footer-inner {
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.3rem;
}

.footer-logo {
  max-width: 210px;
  height: auto;
  opacity: 0.88;
}

.footer-brand-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--transition-smooth);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .headline-primary {
    font-size: 2.3rem;
  }
  
  .bilingual-grid {
    gap: 1.5rem;
  }

  .lang-card {
    padding: 2rem 1.75rem;
  }
}

/* Mobile & Tablet Portrait (max 850px) */
@media (max-width: 850px) {
  .main-container {
    padding: 2.25rem 1.25rem 3.5rem 1.25rem;
  }

  .header-inner,
  .footer-inner {
    padding: 0 1.25rem;
  }

  .site-header {
    padding: 1.25rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .brand-logo {
    max-width: 260px;
  }

  .bilingual-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-divider {
    display: none;
  }

  .headline-primary {
    font-size: 1.95rem;
  }

  .headline-lead {
    font-size: 1rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-brand {
    align-items: center;
  }

  .toast {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    text-align: center;
  }
}

/* Small Smartphone (max 480px) */
@media (max-width: 480px) {
  .brand-logo {
    max-width: 220px;
  }

  .timezones {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.8rem;
  }

  .lang-nav {
    width: 100%;
    display: flex;
  }

  .lang-btn {
    flex: 1;
    padding: 0.5rem 0.35rem;
    font-size: 0.72rem;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .copy-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
  }
}
