/* ===========================
   CHAYA — CSS
   =========================== */

/* --- Variables --- */
:root {
  --bg:           #080808;
  --bg-surface:   #111111;
  --bg-card:      #1a1a1a;
  --text:         #f0ede8;
  --text-muted:   #888888;
  --accent:       #c8a96e;
  --accent-hover: #dbbf88;
  --border:       rgba(255,255,255,0.07);
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       4px;
  --max:          1200px;
  --header-h:     72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Layout Helpers --- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.text-center { text-align: center; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==============================
   HEADER / NAV
   ============================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#header.scrolled {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-social a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-social a:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mob-social {
  display: flex; gap: 1.5rem; margin-top: 1rem;
}
.mobile-menu .mob-social a { font-size: 1.2rem; }

/* ==============================
   HERO SLIDER
   ============================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero .swiper { width: 100%; height: 100%; }
.hero-slide {
  position: relative;
  overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s var(--ease);
}
.swiper-slide-active .hero-slide img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.6)  100%
  );
  z-index: 1;
}
.hero-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 90%;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
}
.hero-scroll i { font-size: 1rem; }
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Swiper custom bullets */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.4) !important;
  opacity: 1 !important;
  width: 6px !important; height: 6px !important;
  transition: background 0.3s, transform 0.3s !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  transform: scale(1.4) !important;
}

/* ==============================
   INTRO SECTION
   ============================== */
.intro {
  text-align: center;
  padding: 4rem 0;
}
.intro h2 {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--text);
}
.intro p {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  border-radius: var(--radius);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-solid {
  background: var(--accent);
  color: var(--bg);
}
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ==============================
   TESTIMONIALS
   ============================== */
.testimonials-section {
  background: var(--bg-surface);
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.testi-swiper { padding-bottom: 3rem !important; }
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 1.2rem; left: 1.8rem;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.testi-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--accent); }

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #151515 100%);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ==============================
   PAGE HERO
   ============================== */
.page-hero {
  height: 55vh;
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 4rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.page-hero-bg.loaded { transform: scale(1); }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.3) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.1em; }
.page-hero .breadcrumb span { color: var(--accent); }

/* ==============================
   ABOUT PAGE
   ============================== */
.about-bio { padding: 7rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.about-grid h2 { margin-bottom: 1.5rem; }
.about-grid p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.9; }
.about-contact-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.3s;
}
.about-contact-link:hover { opacity: 0.7; }

.equipment-section { background: var(--bg-surface); padding: 6rem 0; }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.equip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.equip-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.equip-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.equip-card ul li:last-child { border-bottom: none; }
.equip-card ul li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==============================
   GALLERY PAGE
   ============================== */
.gallery-section { padding: 5rem 0 7rem; }
.gallery-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.08);
}
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }
.gallery-item-overlay i {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay i { opacity: 1; }

/* ==============================
   CONTACT PAGE
   ============================== */
.contact-section { padding: 7rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.9; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.contact-detail i {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail a:hover { color: var(--accent); }
.contact-social {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.contact-social a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.08);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-msg {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-msg.success { background: rgba(100,200,100,0.1); border: 1px solid rgba(100,200,100,0.3); color: #6bc87a; }
.form-msg.error   { background: rgba(220, 80, 80,0.1); border: 1px solid rgba(220,80,80,0.3); color: #e06060; }

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo img { height: 36px; }
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-copy a { color: var(--accent); }

/* ==============================
   DIVIDER
   ============================== */
.divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  opacity: 0.5;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .equip-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }

  .section { padding: 4rem 0; }
  .intro { padding: 3.5rem 0; }
  .hero-content h1 { font-size: clamp(2rem, 6vw, 3rem); }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .container { padding: 0 1.25rem; }
}
