/*
 * Artes Events — main theme stylesheet
 * Dark-luxury event production design. Converted 1:1 from the React/Vite source
 * and the four full-page design mockups (Home, About, Services, Portfolio).
 */

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  --accent: #ff6a1a;
  --accent-dark: #cc4400;
  --bg: #090909;
  --navy: #101425;      /* dark navy sections / cards (sampled from mockups) */
  --card: #12152a;
  --border: #2d2d2d;
  --muted: #9ca3af;
  --text: #ffffff;
  --font-h: 'Bebas Neue', 'Oswald', 'Arial Black', sans-serif;
  --font-b: 'Inter', 'Manrope', system-ui, sans-serif;
  --maxw: 1280px;
  --gutter: 48px;
}

/* ─── Reset / base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }
.bg-navy { background-color: var(--navy); }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; color: var(--accent);
  font-weight: 600; text-transform: uppercase; margin-bottom: 16px;
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Headings */
.h-display {
  font-family: var(--font-h); line-height: .92; letter-spacing: .02em;
  font-weight: 400; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 6px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,106,26,.4); color:#fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* ─── Header / Nav ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background-color: transparent; transition: all .4s ease;
}
/* Inner wrapper uses .container so the header aligns with every section. */
.header-inner { display: flex; align-items: center; height: 80px; }
.site-header.scrolled {
  background-color: rgba(9,9,9,.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .brand { flex-shrink: 0; display: flex; align-items: center; }
.site-header .brand img { height: 44px; width: auto; object-fit: contain; }
.brand-text { font-family: var(--font-h); font-size: 26px; letter-spacing: .12em; color: #fff; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; gap: 36px; align-items: center; }
.primary-nav a {
  position: relative; color: #fff; font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; padding-bottom: 4px;
}
.primary-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background-color: var(--accent); transition: width .3s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { width: 100%; }
.primary-nav .current-menu-item > a { color: var(--accent); }

/* Dropdown submenus + caret toggle (the toggle element is injected by JS so it
   can double as the tappable expander on mobile). */
.primary-nav li { position: relative; }
.primary-nav .submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--accent); margin-left: 6px; padding: 0;
  cursor: pointer; pointer-events: none; line-height: 1; vertical-align: middle;
}
.primary-nav .submenu-toggle svg { width: 11px; height: 11px; transition: transform .3s ease; }

.primary-nav .sub-menu {
  display: block; /* override the global .primary-nav ul flex so columns work */
  position: absolute; top: 100%; left: 0; transform: translateY(12px);
  min-width: 230px; background: rgba(11,11,16,.98); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 1200;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu li { break-inside: avoid; }
.primary-nav .sub-menu a { display: block; padding: 11px 16px; border-radius: 7px; letter-spacing: .05em; font-size: 12.5px; white-space: nowrap; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: rgba(255,106,26,.12); color: var(--accent); }

/* Mega menu — two columns when a submenu has many items (e.g. Services). */
.primary-nav .sub-menu:has(> li:nth-child(7)) {
  columns: 2; column-gap: 28px; min-width: 520px; padding: 18px 22px;
}
/* Keep a right-hand menu's dropdown from overflowing the viewport edge. */
.primary-nav #primary-menu > li:last-child > .sub-menu { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.lang-switch { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .05em; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active, .lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: rgba(255,255,255,.08); padding: 3px 7px; border-radius: 4px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--border);
  border-radius: 6px; position: relative; margin-left: 14px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: #fff; transform: translate(-50%,-50%); transition: .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: translate(-50%,-50%) rotate(45deg); }
body.menu-open .nav-toggle span::after  { top: 0; transform: translate(-50%,-50%) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; background-color: #000; }
.hero-media .poster {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
}
.hero-media iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; border: 0; pointer-events: none;
}
.hero-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,.62); }
.hero-accent {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,106,26,.10) 0%, transparent 55%);
}
/* width:100% so the container fills the same 1280px max-width as other
   sections even though .hero is a flex container (flex items otherwise
   shrink-to-fit, which made the hero look narrower / off to one side). */
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-family: var(--font-h); font-size: clamp(60px, 10vw, 92px); line-height: .9; margin: 0 0 28px; letter-spacing: .02em; text-transform: uppercase; }
/* Hero text alignment (default left, matching the "What We Do" heading) */
.hero.align-center .container { text-align: center; }
.hero.align-center .hero-services,
.hero.align-center .hero-cta { justify-content: center; }
.hero.align-right .container { text-align: right; }
.hero.align-right .hero-services,
.hero.align-right .hero-cta { justify-content: flex-end; }
.hero-services { display: flex; flex-wrap: wrap; margin-bottom: 44px; gap: 6px 0; }
.hero-services span { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; }
.hero-services .dot { color: var(--accent); margin: 0 14px; font-size: 8px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Inner-page hero (About / Services / Portfolio) */
.page-hero { position: relative; padding: 180px 0 90px; overflow: hidden; }
.page-hero.has-media { min-height: 78vh; display: flex; align-items: center; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(9,9,9,.55) 0%, rgba(9,9,9,.82) 100%); }
/* Background video for inner-page heroes */
.page-hero-media { position: absolute; inset: 0; overflow: hidden; background-color: #000; }
.page-hero-media .poster { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-media iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; border: 0; pointer-events: none; }
.page-hero-media::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(9,9,9,.5) 0%, rgba(9,9,9,.82) 100%); }
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { font-family: var(--font-h); font-size: clamp(52px, 8vw, 104px); line-height: .9; text-transform: uppercase; margin: 0 0 26px; }
.page-hero .lead { font-size: 17px; color: var(--muted); line-height: 1.8; max-width: 620px; }
/* Alignment (default left) */
.page-hero.align-center, .page-hero.center { text-align: center; }
.page-hero.align-center .lead, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero.align-right { text-align: right; }
.page-hero.align-right .lead { margin-left: auto; }
/* Optional hero button */
.page-hero .hero-cta { margin-top: 34px; }
.page-hero.align-center .hero-cta { justify-content: center; }
.page-hero.align-right .hero-cta { justify-content: flex-end; }

.scroll-ind { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.scroll-ind span { font-size: 10px; letter-spacing: .25em; color: var(--muted); }
.scroll-ind .bar { width: 1px; height: 50px; background: var(--accent); animation: scrollPulse 1.8s ease-in-out infinite; }

/* ─── Stats ─────────────────────────────────────────────────────── */
.stats { background: var(--navy); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--border); }
.stats-grid .cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 52px 24px; }
.stat-num { font-family: var(--font-h); font-size: clamp(48px, 6vw, 80px); line-height: 1; margin-bottom: 12px; }
.stat-num .suffix { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

/* ─── Marquee ───────────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 35s linear infinite; }
.marquee.reverse .marquee-track { animation-name: marqueeReverse; }
.marquee-item { display: inline-flex; align-items: center; flex-shrink: 0; }
.marquee-item .label { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: #fff; text-transform: uppercase; padding: 0 20px; }
.marquee-item .dot { color: var(--accent); font-size: 9px; flex-shrink: 0; }

/* Heading style variants (editor: Font style) */
.h-style-normal { font-family: var(--font-b) !important; text-transform: none; letter-spacing: 0; font-weight: 700; }
.h-style-italic { font-family: Georgia, 'Times New Roman', serif !important; font-style: italic; text-transform: none; letter-spacing: 0; }

/* ─── Section heading ───────────────────────────────────────────── */
.section-head { margin-bottom: 60px; }
.section-head h2 { font-family: var(--font-h); font-size: clamp(40px, 5.5vw, 76px); line-height: .95; text-transform: uppercase; }
.section-head.center { text-align: center; }

/* ─── Services grid ─────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; min-height: 280px; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service-card .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.service-card .shade { position: absolute; inset: 0; background: rgba(0,0,0,.62); transition: background .35s ease; }
.service-card .body { position: relative; z-index: 2; padding: 28px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.service-card .icon { font-size: 22px; margin-bottom: 10px; color: var(--accent); line-height: 1; }
.service-card h3 { font-family: var(--font-h); font-size: 22px; letter-spacing: .04em; margin: 0 0 8px; text-transform: uppercase; }
.service-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(255,106,26,.22); }
.service-card:hover .img { transform: scale(1.1); }
.service-card:hover .shade { background: rgba(0,0,0,.82); }

/* ─── Projects ──────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3); transition: transform .35s ease, box-shadow .35s ease; cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 28px 64px rgba(0,0,0,.65); }
.project-card .thumb { height: 300px; position: relative; overflow: hidden; }
.project-card .thumb .img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .6s ease; }
.project-card:hover .thumb .img { transform: scale(1.08); }
.project-card .thumb .shade { position: absolute; inset: 0; background: rgba(0,0,0,.28); transition: background .35s ease; }
.project-card:hover .thumb .shade { background: rgba(0,0,0,.5); }
.project-card .cat { position: absolute; top: 20px; left: 20px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .18em; padding: 5px 14px; border-radius: 3px; text-transform: uppercase; }
.project-card .content { background: var(--navy); padding: 28px 32px 32px; }
.project-card .meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.project-card h3 { font-family: var(--font-h); font-size: 26px; letter-spacing: .03em; margin: 0 0 12px; line-height: 1.1; text-transform: uppercase; }
.project-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 22px; }
.project-card .card-inner { display: block; color: inherit; text-decoration: none; }
.project-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* When "View Project" is a real button, strip native button chrome. */
button.project-link { background: none; border: 0; padding: 0; margin: 0; font-family: inherit; cursor: pointer; }
.project-link .arrow { transition: transform .3s ease; }
.project-card:hover .project-link .arrow, .portfolio-card:hover .project-link .arrow { transform: translateX(6px); }

/* Portfolio page — large 2-col cards, full-bleed image */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.portfolio-card { position: relative; min-height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: flex-end; }
.portfolio-card .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.portfolio-card::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(9,9,9,.15) 0%, rgba(9,9,9,.9) 82%); }
.portfolio-card:hover .img { transform: scale(1.06); }
.portfolio-card .cat { position: absolute; top: 22px; left: 22px; z-index: 2; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .18em; padding: 6px 14px; border-radius: 3px; text-transform: uppercase; }
.portfolio-card .content { position: relative; z-index: 2; padding: 40px 40px 38px; }
.portfolio-card h3 { font-family: var(--font-h); font-size: clamp(26px,2.4vw,34px); letter-spacing: .02em; line-height: 1.05; margin: 0 0 10px; text-transform: uppercase; }
.portfolio-card .place { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.portfolio-card p { font-size: 14px; color: #cfcfd6; line-height: 1.6; margin: 0 0 18px; max-width: 46ch; }

/* ─── Brands ────────────────────────────────────────────────────── */
.brands { background: var(--navy); border-top: 1px solid var(--border); text-align: center; }
.brands h2 { font-family: var(--font-h); font-size: clamp(30px, 4vw, 52px); line-height: 1.15; margin: 0 0 56px; text-transform: uppercase; }
/* Continuous scrolling brand marquee (full-bleed within the section) */
.brands-marquee { overflow: hidden; }
.brands-marquee .marquee-track { display: flex; width: max-content; white-space: nowrap; align-items: center; animation: marquee 38s linear infinite; }
.brands-marquee:hover .marquee-track { animation-play-state: paused; }
.brand-item { flex-shrink: 0; display: inline-flex; align-items: center; font-family: var(--font-h); font-size: clamp(24px, 3vw, 34px); letter-spacing: .1em; color: rgba(255,255,255,.28); padding: 0 clamp(28px, 4vw, 52px); white-space: nowrap; transition: color .3s ease; }
.brand-item:hover { color: var(--accent); }
/* Logo images inside the marquee */
.brand-item.has-logo { padding: 0 clamp(24px, 3.5vw, 46px); }
.brand-item img { height: clamp(28px, 3.4vw, 46px); width: auto; max-width: 180px; object-fit: contain; opacity: .6; filter: grayscale(1) brightness(0) invert(1); transition: opacity .3s ease, filter .3s ease; }
.brand-item.has-logo:hover img { opacity: 1; filter: none; }
/* legacy static row (kept for backward compatibility) */
.brands-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px 52px; }
.brands-row .brand { font-family: var(--font-h); font-size: 30px; letter-spacing: .1em; color: rgba(255,255,255,.28); transition: color .3s ease; }
.brands-row .brand:hover { color: var(--accent); }

/* ─── Testimonials ──────────────────────────────────────────────── */
.testimonials { border-top: 1px solid var(--border); text-align: center; }
.testimonials .head h2 { font-family: var(--font-h); font-size: clamp(34px, 4vw, 54px); margin: 0 0 60px; text-transform: uppercase; }
.tst-viewport { max-width: 1100px; margin: 0 auto; }
.tst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tst-card {
  background: rgba(255,255,255,.03); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 46px 44px 38px; text-align: left;
}
.tst-card .quote-mark { font-size: 60px; color: var(--accent); line-height: .5; font-family: Georgia, serif; opacity: .9; }
.tst-card blockquote { margin: 24px 0 30px; font-size: 17px; line-height: 1.75; color: #e6e6ea; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.tst-author { display: flex; align-items: center; gap: 16px; }
.tst-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; font-family: var(--font-h); flex-shrink: 0; }
.tst-author .name { font-weight: 600; font-size: 15px; color: #fff; }
.tst-author .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tst-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.tst-dots button { width: 8px; height: 8px; border-radius: 4px; padding: 0; background: var(--border); border: none; transition: all .35s ease; }
.tst-dots button.active { width: 28px; background: var(--accent); }
.tst-slide { display: none; }
.tst-slide.active { display: block; animation: fadeUp .5s ease; }

/* ─── CTA ───────────────────────────────────────────────────────── */
.cta { position: relative; padding: 130px 0; overflow: hidden; text-align: center; }
.cta .bg {
  position: absolute; inset: 0; background-color: #080808;
  background-image:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(255,106,26,.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 50%, rgba(255,106,26,.10) 0%, transparent 60%);
}
.cta .ring { position: absolute; border-radius: 50%; pointer-events: none; }
.cta .ring.a { top: 10%; left: 8%; width: 320px; height: 320px; border: 1px solid rgba(255,106,26,.12); }
.cta .ring.b { bottom: 10%; right: 8%; width: 200px; height: 200px; border: 1px solid rgba(255,106,26,.10); }
.cta .container { position: relative; z-index: 2; max-width: 900px; }
.cta h2 { font-family: var(--font-h); font-size: clamp(52px, 9vw, 110px); line-height: .92; margin: 0 0 28px; text-transform: uppercase; }
.cta p { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 560px; margin: 0 auto 52px; }
.cta-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.75; max-width: 280px; margin-bottom: 26px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-family: var(--font-h); font-size: 18px; letter-spacing: .1em; margin-bottom: 24px; color: #fff; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-contact .row { margin-bottom: 18px; }
.footer-contact .k { font-size: 10px; letter-spacing: .18em; color: var(--accent); margin-bottom: 5px; text-transform: uppercase; }
.footer-contact .v { font-size: 14px; color: var(--muted); }
.footer-contact a.v:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom .copy { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: #fff; }

/* Floating contact button (Telegram-style, from mockups) */
.float-contact { position: fixed; right: 22px; bottom: 26px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s ease; }
.float-contact a:hover { transform: translateY(-3px); }
.float-contact .tg { background: #29a3eb; }
.float-contact .wa { background: #25d366; }
.float-contact svg { width: 26px; height: 26px; }

/* ─── About page ────────────────────────────────────────────────── */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 40px 0; }
.about-row .step { font-size: 12px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.about-row .step::before { content:''; width: 34px; height: 1px; background: var(--accent); }
.about-row h2 { font-family: var(--font-h); font-size: clamp(36px, 4.4vw, 62px); line-height: .95; text-transform: uppercase; }
.about-row .txt p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.about-row .txt .em { font-family: Georgia, serif; font-style: italic; color: #e6e6ea; font-size: 18px; }
.about-mission { text-align: left; }
.about-mission .big { font-family: Georgia, serif; font-style: italic; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; max-width: 900px; }
.about-mission .sub { font-family: var(--font-h); letter-spacing: .06em; font-size: 15px; color: #fff; margin-top: 20px; text-transform: uppercase; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 30px 26px; }
.value-card .n { font-family: var(--font-h); font-size: 46px; color: rgba(255,255,255,.18); line-height: 1; }
.value-card h4 { font-family: var(--font-h); font-size: 22px; letter-spacing: .06em; margin: 14px 0 12px; text-transform: uppercase; }
.value-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.people-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.people-row .big-num { font-family: var(--font-h); font-size: clamp(90px, 12vw, 180px); line-height: .85; }
.people-row .big-num .suffix { color: var(--accent); }
.people-row .cap { font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 10px; }
.people-row .em { font-family: Georgia, serif; font-style: italic; color: #e6e6ea; font-size: 18px; margin-top: 26px; }
.people-row h3 { font-family: var(--font-h); font-size: clamp(28px,3vw,40px); text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
.role-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; max-width: 760px; margin: 30px auto 0; }
.role-tags span { font-family: var(--font-h); font-size: 16px; letter-spacing: .06em; color: #fff; text-transform: uppercase; }
.role-tags span:nth-child(2n) { color: var(--accent); }

/* ─── Service detail page ───────────────────────────────────────── */
/* Flex so an incomplete last row (2, 3, 5… images) is centred, not left-aligned. */
.svc-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.svc-gallery .tile { flex: 0 1 calc(25% - 12px); aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; position: relative; }
.svc-gallery .tile .img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.svc-gallery .tile:hover .img { transform: scale(1.08); }
/* subtle "expand" hint on hover */
.svc-gallery .tile::after { content: '\2922'; position: absolute; top: 12px; right: 14px; font-size: 18px; color: #fff; opacity: 0; transition: opacity .3s ease; text-shadow: 0 2px 6px rgba(0,0,0,.6); pointer-events: none; }
.svc-gallery .tile:hover::after { opacity: .9; }

/* Lightbox */
.artes-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6,6,10,.94); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.artes-lightbox.open { opacity: 1; visibility: visible; }
.artes-lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.65); }
.artes-lb-close, .artes-lb-prev, .artes-lb-next { position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.artes-lb-close:hover, .artes-lb-prev:hover, .artes-lb-next:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.artes-lb-close { top: 22px; right: 26px; width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.artes-lb-prev, .artes-lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 30px; line-height: 1; }
.artes-lb-prev { left: 20px; } .artes-lb-next { right: 20px; }
.artes-lb-title { position: absolute; bottom: 52px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-h); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; padding: 0 20px; }
.artes-lb-counter { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .1em; }
@media (max-width: 600px) { .artes-lb-prev, .artes-lb-next { width: 44px; height: 44px; font-size: 24px; } .artes-lb-prev { left: 8px; } .artes-lb-next { right: 8px; } .artes-lightbox img { max-width: 94vw; } }
.svc-body { max-width: 780px; margin: 0 auto; }
.svc-body h2 { font-family: var(--font-h); font-size: clamp(30px,4vw,48px); text-transform: uppercase; margin-bottom: 26px; }
.svc-body p { font-size: 15.5px; color: var(--muted); line-height: 1.85; }
.svc-body a { color: var(--accent); text-decoration: underline; }
.svc-feature-img { max-width: 900px; margin: 40px auto 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

/* FAQ accordion */
.faq { max-width: 900px; margin: 0 auto; }
.faq .head { text-align: center; margin-bottom: 44px; }
.faq .head h2 { font-family: var(--font-h); font-size: clamp(34px,4.5vw,58px); text-transform: uppercase; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; color: #fff; font-size: 15px; font-weight: 600; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .ic { color: var(--accent); font-size: 20px; flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a .inner { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ─── Contact page ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.contact-info .item { margin-bottom: 30px; }
.contact-info .k { font-size: 11px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.contact-info .v { font-size: 18px; color: #fff; }
.contact-info .v a:hover { color: var(--accent); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 40px; }
.contact-form label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.contact-form .field { margin-bottom: 22px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: #0b0b12; border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; color: #fff; font-family: inherit; font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-top: 40px; }
.contact-map iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(1) invert(.9) contrast(.85); }

/* ─── Blog / archive / single ───────────────────────────────────── */
.content-wrap { padding: 150px 0 100px; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 56px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.post-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: #0b0b12; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .pc-body { padding: 26px 26px 30px; }
.post-card .cats { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.post-card h2, .post-card h3 { font-family: var(--font-h); font-size: 26px; line-height: 1.08; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 12px; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.post-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; margin-bottom: 14px; }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.read-more { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 16px; }

.single-hero { padding: 150px 0 40px; }
.single-hero .container { max-width: 900px; }
.single-hero h1 { font-family: var(--font-h); font-size: clamp(38px,5vw,68px); line-height: 1; text-transform: uppercase; margin: 18px 0 20px; }
.single-featured { max-width: 1000px; margin: 0 auto 50px; border-radius: 14px; overflow: hidden; }
.entry-content { max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.85; color: #d8d8de; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2 { font-family: var(--font-h); font-size: 34px; margin: 1.6em 0 .6em; text-transform: uppercase; color: #fff; }
.entry-content h3 { font-family: var(--font-h); font-size: 26px; margin: 1.4em 0 .5em; text-transform: uppercase; color: #fff; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { border-radius: 10px; margin: 1.5em 0; }
.entry-content blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 6px 0 6px 24px; font-family: Georgia, serif; font-style: italic; font-size: 20px; color: #fff; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-left: 1.3em; color: #d8d8de; }
.entry-content li { margin-bottom: .5em; }
.entry-content code { background: #14141f; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: #0b0b12; border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow: auto; }
.entry-footer { max-width: 780px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tag-links a { display: inline-block; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; margin: 0 8px 8px 0; font-size: 12px; }
.tag-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; color: #fff; font-size: 14px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Sidebar ───────────────────────────────────────────────────── */
.sidebar .widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 26px; }
.sidebar .widget-title { font-family: var(--font-h); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.sidebar ul li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; color: var(--muted); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar a { color: var(--muted); }
.sidebar a:hover { color: var(--accent); }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; background: #0b0b12; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: #fff; font-family: inherit; }
.search-form input[type=search]:focus { outline: none; border-color: var(--accent); }
.search-form button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-weight: 700; }

/* Comments */
.comments-area { max-width: 780px; margin: 60px auto 0; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; background: var(--card); }
.comments-area .children { list-style: none; padding-left: 30px; }
.comment-form input, .comment-form textarea { width: 100%; background: #0b0b12; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: #fff; font-family: inherit; margin-bottom: 14px; }
.comment-form textarea { min-height: 120px; }

/* Page (generic) */
.page-body { max-width: 820px; margin: 0 auto; }

/* WP core alignment / caption */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.sticky, .bypostauthor { display: block; }
.post-password-form input[type=password] { background:#0b0b12; border:1px solid var(--border); border-radius:8px; padding:10px 12px; color:#fff; }

/* ─── WPBakery Page Builder compatibility ──────────────────────── */
.builder-content { width: 100%; }
/* ARTES sections already include their own vertical rhythm; keep WPBakery rows
   from adding a competing container width around them. */
.builder-content > .vc_row,
.builder-content > .wpb_row { margin-left: 0; margin-right: 0; }
/* Ensure the builder canvas inherits the dark theme background. */
body.artesme-vc, body.page-template-page-builder { background-color: var(--bg); }
/* Keep the WPBakery back-end editor readable (admin side). */
.vc_element-container .artes-vc-note { font-size: 12px; color: #666; }
/* When a plain WPBakery Text block sits on the dark theme, keep it legible. */
.builder-content .wpb_text_column { color: var(--muted); }
.builder-content .wpb_text_column h1,
.builder-content .wpb_text_column h2,
.builder-content .wpb_text_column h3,
.builder-content .wpb_text_column h4 { color: #fff; }

/* ─── Keyframes ─────────────────────────────────────────────────── */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marqueeReverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes scrollPulse { 0%,100% { opacity: 1; height: 50px; } 50% { opacity: .3; height: 24px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Fade-up on scroll (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery .tile { flex-basis: calc(50% - 8px); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 20px; }
}
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .projects-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-row, .people-row, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .primary-nav, .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  /* Mobile nav panel */
  .site-header.nav-open { background: rgba(9,9,9,.98); }
  .primary-nav.mobile-open {
    display: flex; position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    background: rgba(9,9,9,.99); flex-direction: column; justify-content: flex-start;
    padding: 30px var(--gutter); overflow-y: auto; z-index: 999;
  }
  .primary-nav.mobile-open ul { flex-direction: column; gap: 4px; width: 100%; align-items: stretch; }
  .primary-nav.mobile-open a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .primary-nav.mobile-open .menu-item-has-children { position: relative; }
  /* Tappable expand/collapse arrow on the right of each parent item */
  .primary-nav.mobile-open .submenu-toggle {
    pointer-events: auto; position: absolute; top: 6px; right: 0;
    width: 46px; height: 46px; margin: 0; color: #fff;
  }
  .primary-nav.mobile-open .submenu-toggle svg { width: 15px; height: 15px; }
  .primary-nav.mobile-open .menu-item-has-children.submenu-open > .submenu-toggle svg { transform: rotate(180deg); }
  /* Submenus collapsed by default; expand only when the item is open */
  .primary-nav.mobile-open .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 0 6px 14px; min-width: 0; columns: 1 !important; display: none;
  }
  .primary-nav.mobile-open .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .primary-nav.mobile-open .sub-menu a { font-size: 15px; padding: 12px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .services-grid, .values-grid, .tst-grid { grid-template-columns: 1fr; }
  .svc-gallery .tile { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
