/*
Theme Name: Agency Clean
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: A clean, minimal digital design & development agency theme with a full-width hero, a video showcase section, and a "What we do" intro block. Built as a static front-page starter — swap in your own logo, copy, and video.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agency-clean
*/

/* -------------------------------------------------
   Reset / base
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0e0e0e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* -------------------------------------------------
   Header
------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 16px;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover { opacity: 0.55; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0e0e0e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.header-cta:hover { background: #2a2a2a; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0e0e0e;
  margin: 5px 0;
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 920px;
}

.hero .hero-subhead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #3a3a3a;
  max-width: 640px;
  margin: 0 auto;
}

/* -------------------------------------------------
   Feature video (single centered video, matches the
   reference screenshot rather than a multi-cell grid)
------------------------------------------------- */
.feature-video {
  padding: 24px 0 96px;
}

.video-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f1ec;
}

.video-frame video,
.video-frame .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative placeholder pattern shown until a real video is added */
.video-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0px,
      transparent 10px,
      rgba(20,20,20,0.06) 11px,
      transparent 13px,
      transparent 42px
    ),
    #f3f1ec;
}

.video-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  color: #8a8577;
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

/* -------------------------------------------------
   What we do
   Note: the grid rule lives on an inner wrapper
   (.what-we-do), never on the same element as
   .container or the outer <section> — putting the
   grid class on more than one nested element causes
   the grid to apply twice and squashes the content
   into its first column.
------------------------------------------------- */
.what-we-do-section {
  padding: 40px 0 120px;
}

.what-we-do {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.what-we-do .eyebrow {
  font-size: 13px;
  color: #6b6b6b;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.what-we-do p {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: #141414;
  max-width: 700px;
  margin: 0;
}

/* -------------------------------------------------
   Services accordion (scroll-driven)
   Cards advance one after another as the visitor
   scrolls through this section — see
   js/services-accordion.js for the scroll math.
------------------------------------------------- */
.services-scroll,
.services-scroll input,
.services-scroll button {
  font-family: 'Inter', sans-serif;
}

.services-scroll h2,
.services-scroll h3,
.acc-num {
  font-family: 'Space Grotesk', sans-serif;
}

.services-scroll {
  --svc-ink: #0B120D;
  --svc-paper: #F7FAF8;
  --svc-green: #11E44F;
  --svc-slate: #8A9A91;
  position: relative;
  /* Extra scroll distance so each card gets a "turn" while the
     stack stays pinned in view. */
  height: calc(100vh * 4);
  background: var(--svc-paper);
}

.services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services-wrap {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.services-scroll .section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.services-scroll .section-head .kicker {
  font-size: 14px;
  color: #0FBE42;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.services-scroll .section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
}

.services-scroll .section-head p {
  margin-top: 12px;
  color: var(--svc-slate);
  font-size: 16px;
}

.acc-stack {
  display: flex;
  flex-direction: column;
}

.acc-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #EDEFEC;
  color: #8A9A91;
  padding: 28px 36px;
  margin-top: -14px;
  transition: background 0.55s ease, color 0.55s ease, padding 0.55s ease, box-shadow 0.5s ease;
  box-shadow: 0 0 0 1px rgba(11, 18, 13, 0.04);
}

.acc-card:first-child { margin-top: 0; }

.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.acc-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.5s ease;
}

.acc-num {
  font-size: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}

.acc-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin-top 0.5s ease;
}

.acc-body p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
  color: inherit;
  opacity: 0.85;
}

/* Depth tiers by distance from the active card */
.acc-card.d0 {
  background: var(--svc-ink);
  color: var(--svc-paper);
  padding-top: 36px;
  padding-bottom: 36px;
  z-index: 5;
  box-shadow: 0 24px 50px -20px rgba(11, 18, 13, 0.35);
}
.acc-card.d0 .acc-head h3 { color: var(--svc-paper); }
.acc-card.d0 .acc-body { max-height: 220px; opacity: 1; margin-top: 16px; }

.acc-card.d1 { background: #4B564E; color: #B9C4BD; z-index: 4; }
.acc-card.d2 { background: #8C948E; color: #DDE3DF; z-index: 3; }
.acc-card.d3 { background: #C7CDC9; color: #EEF1EF; z-index: 2; }
.acc-card.d4 { background: #E7EAE7; color: #F5F7F5; z-index: 1; }

.services-scroll .progress {
  height: 2px;
  background: rgba(11, 18, 13, 0.08);
  margin-top: 28px;
  border-radius: 2px;
  overflow: hidden;
}

.services-scroll .progress-bar {
  height: 100%;
  width: 0%;
  background: var(--svc-green);
}

@media (max-width: 640px) {
  .services-scroll { height: calc(100vh * 6); }
  .acc-card { padding: 20px 20px; }
  .acc-head h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .services-scroll { height: auto; }
  .services-sticky { position: relative; height: auto; padding: 80px 0; }
  .acc-card.d0, .acc-card.d1, .acc-card.d2, .acc-card.d3, .acc-card.d4 {
    background: #EDEFEC; color: var(--svc-ink);
  }
  .acc-body, .acc-card .acc-body {
    max-height: none !important; opacity: 1 !important; margin-top: 14px !important;
  }
}

/* -------------------------------------------------
   Trusted Brands
------------------------------------------------- */
.trusted-brands {
  padding: 100px 0 120px;
}

.trusted-brands-heading {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0e0e0e;
  margin: 0 0 72px;
}

.trusted-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 32px;
  align-items: center;
  justify-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  height: 48px;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.brand-logo-placeholder {
  width: 100%;
  height: 48px;
  border: 1px dashed #d8d8d8;
  border-radius: 6px;
  position: relative;
}

.brand-logo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #b3b3b3;
  padding: 0 8px;
  text-align: center;
}

@media (max-width: 900px) {
  .trusted-brands-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .trusted-brands { padding: 64px 0 72px; }
  .trusted-brands-heading { margin-bottom: 48px; }
  .trusted-brands-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer {
  border-top: 1px solid #ececec;
  padding: 48px 0;
  font-size: 14px;
  color: #6b6b6b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover { color: #0e0e0e; }

/* -------------------------------------------------
   Responsive
------------------------------------------------- */
@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }

  .what-we-do {
    grid-template-columns: 1fr;
  }

  .video-frame { aspect-ratio: 4 / 3; border-radius: 6px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 40px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
