/*
Theme Name: Jia Media
Theme URI: https://jiamedia.com.au/
Author: Jia Design
Author URI: https://jiadesign.com.au/
Description: Custom theme for Jia Media Melbourne SEO agency.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: jiamedia
Tags: custom-menu, custom-logo
*/

:root {
  --bg: #e6e2da;
  --bg-warm: #ebe6de;
  --text: #1c1b1b;
  --muted: #6a6a6a;
  --btn: #1c1b1b;
  --btn-text: #f4f1ea;
  --accent: #e63b1a;
  --intro-bg: #9a9a9a;
  --services-bg: #2b2b2b;
  --footer-bg: #111;
  --footer-bar: #ddd6cb;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --max: 1440px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: #111;
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-h);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 118px;
  height: auto;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #4a4a4a;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--text);
}

.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--btn);
  color: var(--btn-text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.btn-talk:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

.btn-talk svg {
  width: 14px;
  height: 14px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero__stage {
  position: relative;
  height: clamp(560px, 78vh, 780px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero__title {
  position: absolute;
  left: 50%;
  bottom: 23%;
  z-index: 2;
  margin: 0;
  width: min(1188px, 94vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.hero__title-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__people-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(980px, 88vw);
  transform: translateX(-50%);
  animation: heroPeopleIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__people {
  width: 100%;
  height: auto;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPeopleIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ——— Intro ——— */
.intro {
  background: var(--intro-bg);
  color: #111;
}

.intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr auto;
  gap: 32px;
  align-items: center;
}

.intro__title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.intro__text {
  margin: 0;
  max-width: 38ch;
  font-family: var(--condensed);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.35;
  font-weight: 400;
  color: #1c1b1b;
}

.intro__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 16px 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.intro__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.intro__btn svg {
  width: 14px;
  height: 14px;
}

/* ——— Services ——— */
.services {
  background: var(--services-bg);
  color: #fff;
  padding: 72px 0 88px;
}

.services__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

.services__title {
  margin: 0 0 36px;
  font-family: var(--condensed);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.services__media {
  aspect-ratio: 3 / 4;
  background: #3a3a3a;
  overflow: hidden;
}

.services__media--placeholder {
  background:
    linear-gradient(145deg, #404040 0%, #2f2f2f 55%, #3d3d3d 100%);
}

.services__name {
  margin: 14px 0 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #cfcfcf;
  letter-spacing: 0.02em;
}

.services__note {
  display: none;
}

/* ——— Footer social ——— */
.footer-social {
  background: var(--footer-bar);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-social__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-social__logo img {
  width: 120px;
}

.footer-social__star {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.footer-social__follow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-social__icons {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.footer-social__icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #cfc6b8;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  transition: transform 0.2s ease;
}

.footer-social__icons a:hover {
  transform: translateY(-2px);
}

/* ——— Footer main ——— */
.site-footer .footer-main {
  background: var(--footer-bg);
  color: #d8d8d8;
  padding: 56px 0 28px;
}

.footer-main__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a,
.footer-col address {
  font-size: 13px;
  color: #bdbdbd;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 48px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--condensed);
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer-brand__name {
  color: #fff;
}

.footer-brand__arrow {
  color: var(--accent);
}

.footer-brand__tag {
  color: #7f8894;
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .intro__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 24px;
  }

  .intro__btn {
    justify-self: start;
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .services__item {
    scroll-snap-align: start;
    min-width: 220px;
  }

  .footer-main__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header__inner,
  .services__inner,
  .footer-social__inner,
  .footer-main__inner,
  .footer-brand {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-logo img {
    width: 100px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header__right {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-header.is-open .site-header__right {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .btn-talk {
    justify-content: center;
    margin-top: 8px;
  }

  .hero__stage {
    height: clamp(480px, 70vh, 640px);
  }

  .hero__title {
    bottom: 16%;
  }

  .hero__people-wrap {
    width: min(920px, 94vw);
  }

  .footer-social__icons {
    margin-left: 0;
    width: 100%;
  }

  .footer-main__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
}

@media (max-width: 560px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__item {
    min-width: 0;
  }

  .footer-main__inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-wrap: wrap;
    gap: 8px;
  }
}
