/* ===================================
   YS-Music Static Site - Main CSS
   Replaces Divi theme styles
   =================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&family=Anton&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --bg-dark: #121212;
  --bg-body: #5b5b5b;
  --accent: #d3eb42;
  --accent-green: #9aff9a;
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --text-link: #666666;
  --header-bg: rgba(51,51,51,0.85);
  --card-bg: rgba(121,142,0,0.08);
  --card-radius: 30px;
  --max-width: 1080px; /* Confined content width */
  --row-pad: 60px 50px;
  --row-pad-md: 30px;
  --row-pad-sm: 20px;
  --font-main: 'Noto Sans SC', sans-serif;
  --font-title: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-white);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--text-link); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); }

/* --- Header --- */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  box-shadow: none;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap a { display: flex; align-items: center; }
.logo-wrap img { height: 36px; width: auto; }

/* Nav */
#top-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
#top-menu li a {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-main);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
#top-menu li a:hover, #top-menu li.active a { color: #fff; }

/* Language switcher */
.lang-switcher {
  position: relative;
}
.lang-switcher > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.lang-switcher > a img { display: inline; vertical-align: middle; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(30,30,30,0.98);
  border-radius: 8px;
  min-width: 140px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 0;
}
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}
.lang-switcher:hover .lang-dropdown { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
  background: #555555; /* Grey background to reset default browser button styles */
  border: none;
  border-radius: 4px;
  outline: none;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff; /* White lines */
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  background: rgba(30,30,30,0.98);
  padding: 16px 0 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0 24px; }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.mobile-nav .lang-links {
  display: flex; gap: 12px;
  padding: 12px 24px 0;
}
.mobile-nav .lang-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* --- Page body offset for fixed header --- */
main { padding-top: 66px; }

/* --- Section Base --- */
.section {
  background-color: var(--bg-dark);
  width: 100%;
  position: relative;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--row-pad);
  border-radius: var(--card-radius);
  overflow: visible; /* Let absolute decorations hang outside beautifully */
  position: relative;
  z-index: 2;
}

/* --- Hero Section (Stretched edge-to-edge) --- */
#hero {
  background-image: url('../images/1731831676-pexels-zhuhehuai-544917-scaled.webp');
  background-size: cover;
  background-position: center;
  padding: 19vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -66px;
  padding-top: calc(19vw + 66px);
  width: 100%;
}
.hero-box {
  background-color: rgba(10,10,10,0.32);
  border-radius: 0;
  padding: 30px 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.hero-title {
  font-family: var(--font-main);
  font-size: 50px;
  color: #999 !important;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 24px;
  color: #999 !important;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 300;
  background-color: rgba(10,10,10,0.32); /* Rounded grey background */
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}
.hero-btn:hover {
  background-color: rgba(10,10,10,0.6);
  color: #fff !important;
}

/* --- Section Label --- */
.section-label {
  text-align: center;
  color: var(--text-white) !important;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

/* Service Title Section with Background Striped Element */
.services-label-section {
  background-image: url('../images/financial-planning-26.png') !important;
  background-size: initial;
  background-position: center bottom 0px;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}
.services-label-section .section-inner {
  background-image: none !important;
  padding: 80px 0 60px !important;
}

/* --- Services Section --- */
#services { background-color: var(--bg-dark) !important; }
#services .section-inner {
  padding: 40px 0 80px !important;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 60px 30px 30px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  background-color: rgba(121,142,0,0.14);
}
.service-icon {
  font-size: 80px;
  margin-bottom: 24px;
  line-height: 1;
  display: block;
  text-align: center;
}
.service-icon i {
  font-size: 80px;
  line-height: 1;
}
.service-card h4 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text-white) !important;
  letter-spacing: 1.5px;
  line-height: 1.4;
  margin-bottom: 0;
}
.service-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 15px;
  letter-spacing: 0.5px;
}

/* --- About Section (No background image, matches original index_cn.html) --- */
#aboutus {
  background-color: var(--bg-dark) !important;
  position: relative;
}
#aboutus .section-inner {
  background-image: none !important;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-img img {
  width: 100%;
  border-radius: 12px;
}
.about-label {
  font-size: 50px;
  color: var(--text-white) !important;
  font-family: var(--font-title);
  text-transform: uppercase;
  line-height: 2;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
/* Absolute decoration bottom right (aligned to original .et_pb_image_1) */
.decor-about-bottom-right {
  width: 15% !important;
  position: absolute !important;
  bottom: 0px !important;
  top: auto !important;
  right: 0px !important;
  left: auto !important;
  transform: translate(50%, 50%) !important;
  z-index: 10;
  pointer-events: none;
}

/* --- Sample Preview (Homepage - Concentric Vinyl Grooves) --- */
#sample_images {
  background-image: url('../images/financial-planning-33.png') !important;
  background-size: initial;
  background-position: center bottom 0px;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}
#sample_images .section-inner {
  background-image: none !important;
  padding: 80px 0 80px !important;
}
/* Absolute decoration top right (aligned to original .et_pb_image_2) */
.decor-sample-top-right {
  width: 10% !important;
  position: absolute !important;
  top: 0px !important;
  bottom: auto !important;
  right: 0px !important;
  left: auto !important;
  transform: translate(100%, -50%) !important;
  z-index: 10;
  pointer-events: none;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 400/284;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background-color: #000;
}
.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-grid a:hover .gallery-overlay {
  background: rgba(0,0,0,0.4);
}
/* Divi Plus overlay icon */
.gallery-overlay::after {
  content: '+';
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
}
.gallery-grid a:hover .gallery-overlay::after {
  opacity: 1;
  transform: scale(1);
}

.more-btn-wrap { text-align: center; margin-top: 40px; }
.more-btn {
  display: inline-block;
  padding: 16px 40px;
  color: var(--accent) !important;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
}
.more-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }

/* --- Contact / Footer --- */
#contactus {
  position: relative;
  z-index: 2;
}
.contact-inner {
  background-color: #EDF000;
  border-radius: var(--card-radius);
  padding: var(--row-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-title);
  font-size: 60px;
  text-transform: uppercase;
  color: #000 !important;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.contact-desc {
  color: #121212;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label {
  display: block;
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: 2px solid #000;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #000;
  outline: none;
  transition: var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(0,0,0,0.5); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #555; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-submit {
  align-self: flex-start;
  padding: 16px 40px;
  background: #000;
  color: var(--accent) !important;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.contact-submit:hover { background: #222; }

/* Footer Wrapper (Grayish-Black base style) */
footer {
  background-color: #121212; /* Grayish-Black */
  color: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Footer Info Bar (Aligned 100% to original .et_pb_section_5) */
#footer-info-bar {
  background-image: url('../images/financial-planning-15d.png') !important;
  background-size: initial !important; /* Native size, prevents blurriness and stretching */
  background-position: center bottom 0px !important; /* Centered bottom alignment */
  background-repeat: no-repeat !important;
  position: relative;
  z-index: 2;
}
.footer-info-inner {
  background-color: transparent;
  border-radius: var(--card-radius);
  padding: 60px 5vw;
  max-width: var(--max-width);
  margin: 0 auto 30px;
}
.footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.contact-item h4 {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 2px;
}
.contact-item p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}
.footer-studio h5 {
  font-family: var(--font-main);
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-studio p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}
.footer-nav h5 {
  font-family: var(--font-main);
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 6px;
}
.footer-nav a:hover { color: var(--accent); }

/* Copyright */
#copyright {
  background-color: #0c0c0c;
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
#copyright p {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Scroll Top Button --- */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 500;
}
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { background: rgba(255,255,255,0.3); }
#scroll-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; }

/* --- Gallery Pages (Slideshow) --- */
.gallery-page-section {
  background-color: var(--bg-dark);
  padding: 40px 0;
}
.gallery-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 100px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-image: url('../images/financial-planning-33.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.gallery-category-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 36px;
  color: #fff !important;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Slider Layout */
.custom-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  background: #000;
  border: 1px solid rgba(255,255,255,0.05);
}
.slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.slider-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.slider-slide.active {
  opacity: 1;
  visibility: visible;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.2);
  color: var(--accent);
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 100px;
  backdrop-filter: blur(5px);
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* --- Lightbox --- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: default;
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }
#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,0.25); }
#lightbox-prev svg, #lightbox-next svg { width: 22px; height: 22px; stroke: #fff; fill: none; }

/* --- Page Hero (works page) --- */
.page-hero {
  background-image: url('../images/1731831676-pexels-zhuhehuai-544917-scaled.webp');
  background-size: cover;
  background-position: center;
  padding: 120px 20px 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-title);
  font-size: 48px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 980px) {
  .section-inner, .contact-inner, .footer-info-inner, .gallery-page-inner {
    padding: var(--row-pad-md);
    border-radius: 20px;
  }
  .hero-title { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-title { font-size: 32px; }
  .footer-contacts { grid-template-columns: 1fr; }
  .footer-bottom-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-label { font-size: 32px; }
}

@media (max-width: 767px) {
  #hero {
    background-image: url('../images/720x1280.webp');
    padding: 60vw 0;
    padding-top: calc(60vw + 66px);
  }
  .hero-title { font-size: 24px; }
  .hero-box { padding: 16px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card h4 { font-size: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-title { font-size: 24px; }
  #top-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .page-hero h1 { font-size: 28px; }
  .gallery-category-title { font-size: 24px; }
  .about-label { font-size: 24px; }
  .section-label { font-size: 32px; }
}
