/*
Theme Name: KA Graphic Design
Theme URI: https://kagd.com.au
Author: KA Graphic Design
Author URI: https://kagd.com.au
Description: Custom WordPress theme for KA Graphic Design — property marketing specialists.
Version: 1.0.0
License: Private
Tags: business, portfolio, design, real-estate
Text Domain: ka-graphicdesign
*/

:root {
  --cream: #f5f1ea;
  --paper: #fffdf8;
  --black: #101010;
  --muted: #6f6a63;
  --line: #ded7cc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--black);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { color: var(--muted); line-height: 1.8; }

.container {
  width: min(1220px, 88%);
  margin: auto;
}

/* ── HEADER ── */
header {
  background: var(--paper);
  padding: 28px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 180px 1fr 190px;
  align-items: center;
  gap: 30px;
}

.logo {
  font-weight: 900;
  font-size: 42px;
  line-height: .78;
  letter-spacing: -.06em;
}

.logo small {
  display: block;
  font-size: 13px;
  line-height: .9;
  letter-spacing: 0;
  margin-top: 8px;
}

.logo .script {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  margin-right: 3px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.container-left {
  padding-left: 6%;
  padding-right: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn.dark { background: var(--black); color: #fff; }
.btn:hover { background: var(--black); color: #fff; }
.btn.dark:hover { background: transparent; color: var(--black); }

/* ── HERO ── */
.hero {
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: stretch;
  gap: 0;
  min-height: 580px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: .95;
  margin: 0 0 30px;
}

.hero-line {
  width: 55px;
  height: 2px;
  background: var(--black);
  margin: 0 0 22px;
}

.hero-copy {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  line-height: 1.8;
  max-width: 360px;
  color: var(--black);
}

.actions {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 580px;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--paper) 0%, rgba(255,253,248,0.5) 15%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.brochure {
  position: absolute;
  left: 9%; top: 8%;
  width: 300px; height: 410px;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transform: rotate(-8deg);
  padding: 36px 28px;
  border: 12px solid #f4f1eb;
  z-index: 2;
}

.brochure h3 {
  font-family: Georgia, serif;
  text-align: center;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0 0 28px;
}

.brochure-img {
  height: 135px;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 28px;
}

.brochure p { font-size: 12px; text-align: center; color: #ddd; }

.card {
  position: absolute;
  right: 11%; bottom: 17%;
  width: 170px; height: 95px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 25px rgba(0,0,0,.2);
  text-align: center;
  z-index: 2;
}

.note {
  position: absolute;
  right: 4%; bottom: 0;
  width: 170px; height: 145px;
  background: #fff;
  box-shadow: 0 14px 25px rgba(0,0,0,.14);
  padding: 26px;
  font-size: 18px;
  font-weight: 900;
  z-index: 2;
}

/* ── CLIENTS — replaced by carousel above ── */
.clients {
  background: #f1ece3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── SECTIONS ── */
.section { padding: 75px 0; }
.center { text-align: center; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.05;
  margin: 0 0 38px;
}

/* ── SERVICES ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-top: 44px;
}

.service {
  padding: 0 36px;
  border-right: 1px solid var(--line);
}

.service:last-child { border-right: none; }

.icon { font-size: 34px; margin-bottom: 24px; }

.service h3 {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service p { color: #222; line-height: 1.8; }

/* ── WORK ── */
.work {
  background: #111;
  color: #fff;
  padding: 78px 0;
}

.work .eyebrow,
.work h2 { text-align: center; color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.work-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05);
}

.work-card h3 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 18px 0 8px;
}

.work-card:after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: #fff;
  opacity: .5;
}

/* ── BOTTOM / ABOUT / CONTACT ── */
.bottom {
  display: grid;
  grid-template-columns: 1fr .75fr 1fr;
  background: var(--paper);
}

.bottom > div { padding: 78px 8%; }
.bottom h2 { font-size: 44px; }

.studio-img {
  background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
  min-height: 420px;
}

.contact-detail {
  color: #222;
  line-height: 2;
  margin: 22px 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: transparent;
  margin-bottom: 12px;
  font: inherit;
}

.contact-form textarea { min-height: 130px; }

/* ── FOOTER ── */
footer {
  background: #111;
  color: #fff;
  padding: 56px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
  color: #aaa;
  font-size: 13px;
  margin-top: 16px;
  max-width: 200px;
}

.footer-nav-group {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #ccc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  color: #ccc;
  border-radius: 50%;
  transition: border-color .2s, color .2s;
}

.social-icon:hover {
  border-color: #fff;
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 12px;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav-group { flex-wrap: wrap; gap: 32px; }
}

/* ── CLIENT CAROUSEL ── */
.client-carousel-wrap {
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.client-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-carousel {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.client-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: ka-scroll 20s linear infinite;
  width: max-content;
}

.client-track:hover { animation-play-state: paused; }

.client-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-slide img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .75;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}

.client-slide img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.client-text {
  font-size: 22px;
  font-weight: 900;
  opacity: .75;
}

@keyframes ka-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── WORDPRESS NAV MENU FIX ── */
nav ul,
nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav ul li,
nav ol li { margin: 0; padding: 0; }

nav ul li a,
nav ol li a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Hide any nested sub-menus for now */
nav ul ul,
nav ol ol { display: none; }

/* ── WORDPRESS EXTRAS ── */
.wp-menu-open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; }
  nav { justify-content: flex-start; }
  .hero-grid, .bottom { grid-template-columns: 1fr; }
  .hero-text { padding: 50px 24px; }
  .container-left { padding-left: 24px; padding-right: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; }
  .service-grid, .work-grid { grid-template-columns: 1fr; }
  .service { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .brochure { width: 240px; height: 340px; }
  .studio-img { min-height: 260px; }
}
