/* ===========================
   YARVOLGAR LLC – SPA Styles
   =========================== */

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #444;
  background: #fff;
  overflow-x: hidden;
}

a { color: #425CBB; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2d429a; }

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  font-family: 'Libre Baskerville', serif;
}
.section-title p {
  font-size: 16px;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}
.section-title .title-divider {
  width: 60px;
  height: 3px;
  background: #425CBB;
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 48px; height: 48px;
  border: 4px solid #ddd;
  border-top-color: #425CBB;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 0;
}
#header.transparent { background: transparent; }
#header.scrolled {
  background: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.35s;
}
#header.scrolled .header-inner { height: 65px; }

.logo img { height: 60px; width: auto; }
#header.scrolled .logo-default { display: none; }
#header.transparent .logo-white { display: none; }
#header.scrolled .logo-white { display: block; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active { border-bottom-color: #425CBB; color: #9db3ff; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #222;
  z-index: 999;
  padding: 20px;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.5px;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero Slider ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 800px;
}
.slide-content .slide-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9db3ff;
  margin-bottom: 16px;
}
.slide-content h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.slide-content p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}
.btn-hero {
  display: inline-block;
  background: #425CBB;
  color: #fff;
  padding: 14px 36px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}
.btn-hero:hover { background: #2d429a; color: #fff; transform: translateY(-2px); }

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(66,92,187,0.7); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.slider-dot.active {
  background: #425CBB;
  transform: scale(1.3);
}

/* ---------- Why Choose Us ---------- */
#why-us {
  padding: 90px 0;
  background: #f9f9f9;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(66,92,187,0.15);
}
.service-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #eef0fc;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
  color: #425CBB;
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon { background: #425CBB; color: #fff; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  font-family: 'Libre Baskerville', serif;
}
.service-card p { font-size: 14px; color: #777; line-height: 1.7; }
.service-card .service-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.service-tags span {
  background: #eef0fc;
  color: #425CBB;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- Experience Banner ---------- */
#experience {
  padding: 80px 0;
  background: url('../images/bg-2.jpg') center/cover no-repeat fixed;
  position: relative;
  text-align: center;
  color: #fff;
}
#experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,40,80,0.75);
}
#experience .container { position: relative; z-index: 2; }
.experience-number {
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 900;
  font-family: 'Libre Baskerville', serif;
  line-height: 1;
  color: #9db3ff;
  display: block;
}
.experience-label {
  font-size: 22px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 1px;
}
.experience-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Extended Services ---------- */
#services-list {
  padding: 90px 0;
  background: #fff;
}
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.service-list-item:hover {
  border-color: #425CBB;
  box-shadow: 0 4px 20px rgba(66,92,187,0.1);
}
.service-list-icon {
  width: 52px; height: 52px;
  min-width: 52px;
  background: #eef0fc;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #425CBB;
  transition: background 0.3s, color 0.3s;
}
.service-list-item:hover .service-list-icon { background: #425CBB; color: #fff; }
.service-list-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}
.service-list-item p { font-size: 13px; color: #777; line-height: 1.6; }

/* ---------- Contact ---------- */
#contact {
  padding: 90px 0;
  background: url('../images/bg-3.jpg') center/cover no-repeat;
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,28,66,0.82);
}
#contact .container { position: relative; z-index: 2; }
#contact .section-title h2 { color: #fff; }
#contact .section-title p { color: rgba(255,255,255,0.75); }
#contact .section-title .title-divider { background: #9db3ff; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
  max-width: 600px;
  margin: 0 auto;
}
.contact-info h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 24px;
  font-family: 'Libre Baskerville', serif;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-info-item .ci-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #9db3ff;
}
.contact-info-item .ci-text { color: rgba(255,255,255,0.85); font-size: 15px; }
.contact-info-item .ci-text strong { display: block; color: #fff; font-weight: 700; }


/* ---------- Footer ---------- */
#footer {
  background: #111;
  color: rgba(255,255,255,0.65);
}
.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo { height: 50px; width: auto; margin-bottom: 16px; filter: brightness(1.1); }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: #9db3ff; }
.footer-col .contact-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; margin-bottom: 12px;
}
.footer-col .contact-line i { color: #9db3ff; font-size: 15px; }

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---------- Back to top ---------- */
#back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: #425CBB;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 800;
}
#back-top.visible { opacity: 1; visibility: visible; }
#back-top:hover { background: #2d429a; }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }

.footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .section-title h2 { font-size: 26px; }
}
