/* AV Works SD — Duda recreation 1.0
   Rebuilt from the Duda "fullSideBarLayout" site (fcb8f34a). */

:root {
  --text: #000503;
  --muted: #666b6e;
  --btn-text: #463939;
  --yellow: #ffcc02;
  --yellow-soft: #fdd432;
  --blue: rgba(21, 48, 173, 0.9);
  --light: #f4f4f4;
  --lighter: #f0f0f0;
  --line: #e6e6e6;
  --input-line: #d8d8d8;
  --sidebar-w: 285px;
  --font: "Poppins", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 400; margin: 8px 0; line-height: 1.25; }
h1 { font-size: 52px; }
h2 { font-size: 50px; }
h3 { font-size: 42px; }
h1.title { font-size: 50px; } /* page titles, sized like h2 */
h4 { font-size: 28px; }
h5 { font-size: 22px; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 24px;
  overflow-y: auto;
  z-index: 100;
}

.sidebar__brand { text-align: center; }
.sidebar__brand img { width: 225px; margin: 0 auto; }
.tagline { font-size: 14px; font-style: italic; margin-top: 6px; text-align: center; }
.tagline b { font-weight: 700; }

.nav { margin-top: 28px; flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 5px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.sidebar__foot { text-align: center; color: #414345; padding-top: 20px; }
.sidebar__foot hr { border: 0; border-top: 2px solid var(--line); margin: 18px 0; }

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.hamburger span { display: block; width: 26px; height: 3px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  min-width: 222px;
  padding: 16px 24px;
  background: var(--yellow);
  color: var(--btn-text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(.95); }
.btn--sm { min-width: 135px; padding: 10px 16px; }
.btn--white { background: #fff; min-width: 278px; padding: 17px 24px; }

/* ---------- Social icons ---------- */

.social { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.social a {
  width: 39px; height: 39px;
  border: 2.67px solid var(--blue);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--blue);
  transition: background .2s, color .2s;
}
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Main + sections ---------- */

.main { margin-left: var(--sidebar-w); background: #fff; }

.section { position: relative; padding: 100px 40px; text-align: center; }
.section > * { position: relative; z-index: 1; }
.container { max-width: 960px; margin: 0 auto; }
.container--wide { max-width: 1060px; }

.bg { position: relative; background-size: cover; background-position: center; }
.bg > * { position: relative; z-index: 1; }
.bg::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--ov, .4); z-index: 0; }
.bg--fixed { background-attachment: fixed; }
.bg--light::before { background: #fff; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5 { color: #fff; }

.bg-light { background: var(--light); }
.bg-lighter { background: var(--lighter); }

.accent-line { width: 58px; border: 0; border-top: 2px solid var(--yellow-soft); margin: 0 0 20px; }
.accent-line--center { margin: 16px auto; width: 120px; border-top-color: #808080; }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.text-left { text-align: left; }
.lead { font-size: 18px; font-style: italic; line-height: 24px; max-width: 590px; margin: 10px auto 0; }

/* ---------- Home: hero ---------- */

.hero { min-height: 733px; padding: 62px 40px; display: flex; flex-direction: column; }
.hero__top { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__phone { font-size: 16px; }
.hero__phone b { font-weight: 600; }
.hero__top .btn { background: rgba(255, 204, 2, .9); }
.hero__body { max-width: 853px; text-align: left; margin-top: 100px; }
.hero__body h1 { font-weight: 600; margin-bottom: 20px; }
.hero__body h5 { max-width: 646px; }
.hero__arrow { display: block; width: 44px; margin: 40px auto 0; fill: var(--yellow); animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px); } }

/* ---------- Home: intro (text + image) ---------- */

.intro { padding: 100px 40px; }
.intro .grid-2 { max-width: 960px; margin: 0 auto; gap: 60px; }
.intro h3 { line-height: 1.2; }
.intro h3 b { font-weight: 700; }
.intro p { margin-top: 29px; }
.intro__img { background: url(../images/home-gallery-2.jpg) center/cover; min-height: 480px; }

/* ---------- Video ---------- */

.video { padding: 120px 20px; }
.video__frame { max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; }
.video__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Feature columns ---------- */

.features { padding: 120px 20px; }
.features .grid-3 { max-width: 960px; margin: 0 auto; }
.feature svg { width: 49px; height: 49px; fill: var(--text); margin: 0 auto; display: block; }
.feature h4, .feature h5 { margin-top: 18px; }
.feature p { margin-top: 8px; }

/* ---------- Gallery cards ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; list-style: none; padding: 0; }
.card { position: relative; height: 419px; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.05); }
.card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px;
  background: rgba(255, 255, 255, .92);
}
.card__caption h3 { font-size: 16px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }

/* ---------- Clients ---------- */

.clients { padding: 70px 40px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; max-width: 1060px; margin: 30px auto 0; list-style: none; padding: 0; }
.logos img { max-height: 90px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Testimonial ---------- */

.testimonial { padding: 100px 20px; }
.testimonial svg { width: 39px; fill: var(--yellow-soft); margin: 0 auto 10px; display: block; }
.testimonial h5 { font-style: italic; max-width: 930px; margin: 8px auto; line-height: 1.5; }
.testimonial .who { font-weight: 600; color: #232526; margin-top: 14px; }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; text-align: left; margin-top: 30px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--input-line);
  background: transparent;
  font: inherit;
  color: var(--text);
}
.form textarea { height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; }
.form button {
  grid-column: 1 / -1;
  justify-self: center;
  width: 275px;
  height: 43px;
  border: 1px solid var(--text);
  border-radius: 5px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.form button:hover { background: var(--yellow); border-color: var(--yellow); }
.form-msg { display: none; margin-top: 16px; }

/* ---------- Service pages ---------- */

.page-hero { padding: 160px 40px; }
.page-hero h1 { font-weight: 700; }
.page-hero .lead { color: #fff; }

.services { padding: 80px 40px; }
.services .grid-2 { max-width: 960px; margin: 0 auto; gap: 40px; }
.services h3 { font-size: 42px; font-weight: 700; }
.services .subhead { font-size: 18px; margin-top: 13px; }
.services .body { margin-top: 16px; }
.services ul { margin: 0; padding-left: 22px; }
.services .icon-logo { width: 60px; margin-top: 30px; }
.services__img { background-size: cover; background-position: center; min-height: 420px; }

.cta-band { padding: 100px 40px; }
.cta-band h2 { font-weight: 600; }
.cta-band p { max-width: 576px; margin: 8px auto 0; }

/* ---------- FAQs / Contact / Portfolio ---------- */

.banner { padding: 117px 40px; min-height: 330px; display: grid; place-items: center; }

.faq-list { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; text-align: left; }
.faq-list li { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.faq-list li:last-child { border-bottom: 0; }
.faq-list h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }

.contact-info { text-align: left; }
.contact-info .hours { display: flex; gap: 12px; margin-top: 18px; }
.contact-info dt { font-weight: 600; }
.contact-info dd { margin: 0; }
.map { width: 100%; height: 421px; border: 0; }

.legal h2 { font-size: 26px; font-weight: 600; margin: 36px 0 10px; }
.legal p { margin: 0 0 14px; }

.portfolio h1, .portfolio__big { font-size: 52px; font-weight: 400; line-height: 1.25; margin: 8px 0; }
.portfolio .stack { display: grid; gap: 30px; max-width: 960px; margin: 0 auto; }

/* ---------- Footer ---------- */

.footer-cta {
  background: var(--yellow) url(../images/background-pattern.svg) center/cover;
  padding: 15px 40px;
}
.footer-cta .inner { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 20px; max-width: 960px; margin: 0 auto; text-align: left; }
.footer-cta h4 { font-weight: 600; font-size: 28px; }
.footer-cta .btn { justify-self: end; }

.footer-mid { padding: 60px 40px; }
.footer-mid .inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; max-width: 960px; margin: 0 auto; }
.footer-mid img { width: 250px; margin: 0 auto; }

.copyright { padding: 20px 40px; text-align: center; font-size: 16px; }
.copyright a { text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-in-out, transform 1s ease-in-out; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
    overflow: visible;
  }
  .sidebar__brand { text-align: left; }
  .sidebar__brand img { width: 170px; margin: 0; }
  .tagline { display: none; }
  .hamburger { display: block; }
  .nav, .sidebar__foot { display: none; width: 100%; flex: none; }
  .sidebar.is-open .nav, .sidebar.is-open .sidebar__foot { display: block; }
  .sidebar.is-open .nav { margin-top: 12px; }
  .sidebar.is-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .sidebar.is-open .hamburger span:nth-child(2) { opacity: 0; }
  .sidebar.is-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main { margin-left: 0; }
  .bg--fixed { background-attachment: scroll; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  h2, h1.title { font-size: 40px; }
  h3 { font-size: 34px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2, h1.title { font-size: 32px; }
  h3 { font-size: 28px; }
  .legal h2 { font-size: 22px; }
  h4 { font-size: 24px; }
  h5 { font-size: 18px; }

  .section, .intro, .services, .clients, .cta-band, .banner, .page-hero, .footer-mid { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .hero { min-height: 560px; padding: 30px 16px; }
  .hero__top { justify-content: center; }
  .hero__body { margin-top: 50px; text-align: center; }
  .page-hero { padding-top: 90px; padding-bottom: 90px; }
  .banner { padding-top: 70px; padding-bottom: 70px; min-height: 0; }

  .grid-2, .grid-3, .form, .footer-cta .inner, .footer-mid .inner { grid-template-columns: 1fr; }
  .intro .grid-2 { gap: 30px; }
  .intro__img, .services__img { min-height: 260px; }
  .cards { grid-template-columns: 1fr; }
  .card { height: 300px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-cta .inner { text-align: center; }
  .footer-cta .btn { justify-self: center; min-width: 0; width: 100%; }
  .btn { min-width: 0; }
  .form button { width: 100%; }
}
