/* ==========================================================================
   Y Agency — main stylesheet
   Dark / premium theme. No framework — plain CSS, mobile-first.
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --bg-elevated: #131317;
  --bg-elevated-2: #1a1a20;
  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.4);
  --text: #f3f1ea;
  --text-muted: #9a97a3;
  --accent: #c9a24b;
  --accent-light: #f1d89b;
  --accent-dim: rgba(201, 162, 75, 0.12);
  --gradient-gold: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, #9c7a2e);
  --container: 1180px;
  --section-pad: clamp(64px, 10vw, 128px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent-text { color: var(--accent); }

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn svg { width: 14px; height: 14px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
#header_sec {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
#header_sec.scrolled {
  padding: 16px 0;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
#header_sec .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site_logo { width: 44px; height: 44px; }
.logo_section { display: flex; align-items: center; gap: 12px; }
.logo_wordmark { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.08em; }

.main_nav ul { display: flex; align-items: center; gap: 40px; }
.main_nav .nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.main_nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main_nav .nav-link:hover,
.main_nav .nav-link.active { color: var(--text); }
.main_nav .nav-link.active::after { width: 100%; }

.nav_actions { display: flex; align-items: center; gap: 24px; }

.nav_toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav_toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav_toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav_toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav_toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav_toggle { display: none; }
}

/* Mobile nav panel */
@media (max-width: 899px) {
  .main_nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--line);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }
  .main_nav.open { transform: translateX(0); }
  .main_nav ul { flex-direction: column; align-items: flex-start; gap: 28px; }
  .nav_backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 98;
  }
  .nav_backdrop.open { opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
#hero_section_slider {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #171510 0%, var(--bg) 55%);
}

.hero_bg_art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero_bg_art.is-active { opacity: 0.55; }

.hero_slides { position: relative; z-index: 2; width: 100%; }
.hero_slide {
  display: none;
  padding: 160px 0 120px;
}
.hero_slide.is-active { display: block; }

.hero_slide h1 {
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.01em;
  max-width: 820px;
}
.hero_slide .hero_kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero_slide p.hero_lede {
  margin-top: 24px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 17px;
}
.hero_slide .business_button { margin-top: 40px; }

.hero_controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero_dots { display: flex; gap: 10px; }
.hero_dot {
  width: 34px; height: 3px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease);
}
.hero_dot.is-active { background: var(--accent); }
.hero_arrows { display: flex; gap: 12px; }
.hero_arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero_arrow:hover { border-color: var(--accent); background: var(--accent-dim); }
.hero_arrow svg { width: 16px; height: 16px; fill: var(--text); }

/* ==========================================================================
   About
   ========================================================================== */
#about_sec { padding: var(--section-pad) 0; position: relative; }
.about_grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.about_copy p { color: var(--text-muted); font-size: 17px; margin-top: 20px; max-width: 520px; }
.about_mission {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  max-width: 480px;
}
.about_art { display: flex; justify-content: center; }
.about_art svg { width: 100%; max-width: 380px; height: auto; }

@media (min-width: 900px) {
  .about_grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */
#services_sec { padding: var(--section-pad) 0; }
.services_grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px) {
  .services_grid { grid-template-columns: repeat(3, 1fr); }
}

.service_card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  width: 100%;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.service_card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elevated-2);
  transform: translateY(-6px);
}
.service_icon { width: 56px; height: 56px; margin-bottom: 28px; }
.service_card h3 { font-size: 20px; margin-bottom: 12px; }
.service_card p { color: var(--text-muted); font-size: 14.5px; }
.service_more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.service_more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.service_card:hover .service_more svg { transform: translateX(4px); }

/* ---------- Service modal ---------- */
.modal_overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  overflow-y: auto;
}
.modal_overlay.is-open { opacity: 1; pointer-events: auto; }

.modal_panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  padding: 48px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s var(--ease);
}
.modal_overlay.is-open .modal_panel { transform: translateY(0); }

.modal_close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease);
}
.modal_close:hover { border-color: var(--accent); }
.modal_close svg { width: 12px; height: 12px; fill: var(--text); }

.modal_panel h3 { color: var(--accent); font-size: 24px; margin-bottom: 20px; padding-right: 32px; }
.modal_panel .modal_intro { color: var(--text-muted); margin-bottom: 24px; }
.modal_panel dl { display: grid; gap: 18px; }
.modal_panel dt { color: var(--accent-light); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.modal_panel dd { color: var(--text-muted); margin: 0; font-size: 14.5px; }

/* ==========================================================================
   Contact
   ========================================================================== */
#contact_sec { padding: var(--section-pad) 0; }
.contact_grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .contact_grid { grid-template-columns: repeat(3, 1fr); }
}
.detail_box {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail_icon { width: 40px; height: 40px; margin-bottom: 22px; }
.detail_box h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.detail_box p, .detail_box a { color: var(--text-muted); font-size: 15px; }
.detail_box a:hover { color: var(--accent-light); }
.detail_box p + p { margin-top: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer_section { padding: 40px 0; border-top: 1px solid var(--line); }
.footer_social { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.footer_social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease);
}
.footer_social a:hover { border-color: var(--accent); }
.footer_social svg { width: 16px; height: 16px; fill: var(--text-muted); }
.footer_copyright { text-align: center; color: var(--text-muted); font-size: 13px; letter-spacing: 0.02em; }

/* ==========================================================================
   Scroll to top
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { border-color: var(--accent); }
.scroll-top svg { width: 16px; height: 16px; fill: var(--text); }
