/* ============================================================
   BRANDLING.AU — DESIGN SYSTEM
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:      #252137;
  --burgundy:  #920220;
  --coral:     #ffb09a;
  --cream:     #f1e0a4;
  --yellow:    #fdec55;
  --white:     #ffffff;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  --max-width: 1200px;
  --nav-height: 72px;

  --transition: 200ms ease;
  --shadow-card: 0 2px 16px rgba(37, 33, 55, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(37, 33, 55, 0.14);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--burgundy);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.label--navy { color: var(--navy); opacity: 0.6; }
.label--white { color: rgba(255,255,255,0.7); }

.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--navy);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--sm {
  padding: var(--space-lg) 0;
}

.section--navy   { background: var(--navy); }
.section--cream  { background: var(--cream); }
.section--burgundy { background: var(--burgundy); }
.section--white  { background: var(--white); }

.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section--burgundy h1,
.section--burgundy h2,
.section--burgundy h3 { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--coral);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.link-arrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.link-arrow:hover { color: var(--white); }

.link-arrow--navy {
  color: var(--navy);
}

.link-arrow--navy:hover { color: var(--burgundy); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(37, 33, 55, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--burgundy); }
.nav__links a:hover::after { width: 100%; }

.nav__links a.active { color: var(--burgundy); }
.nav__links a.active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 300ms ease, opacity 200ms ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 300ms ease;
}

.nav__overlay.open {
  display: flex;
  opacity: 1;
}

.nav__overlay a {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__overlay a:hover { color: var(--coral); }

/* Page offset for fixed nav */
main { padding-top: var(--nav-height); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 33, 55, 0.55);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90vh;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  max-width: 720px;
}

.hero--interior {
  min-height: 52vh;
  padding: var(--space-xl) 0;
  background: var(--navy);
  display: flex;
  align-items: center;
}

.hero--interior h1,
.hero--interior p {
  color: var(--white);
}

.hero__content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero__content p  { color: rgba(255,255,255,0.85); font-size: 19px; margin-bottom: 2rem; }

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.card {
  background: var(--white);
  border: 1px solid var(--coral);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--burgundy);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.2rem;
  color: var(--coral);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--coral);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(37, 33, 55, 0.75);
  margin: 0;
}

/* ============================================================
   WORK TILES
   ============================================================ */

.work-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: var(--space-lg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.work-tile:hover {
  box-shadow: var(--shadow-card-hover);
}

.work-tile:nth-child(even) .work-tile__image { order: 2; }
.work-tile:nth-child(even) .work-tile__content { order: 1; }

.work-tile__image {
  position: relative;
  min-height: 380px;
  background: var(--navy);
  overflow: hidden;
}

.work-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.work-tile:hover .work-tile__image img {
  transform: scale(1.03);
}

.work-tile__placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(37,33,55,0.35);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.work-tile__content {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.work-tile__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  text-decoration: none;
}

.work-tile__content h3 {
  font-size: 26px;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.work-tile__content p {
  font-size: 15px;
  color: rgba(37,33,55,0.75);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--navy);
}

/* Work preview cards (homepage) */
.work-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.work-preview-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
  background: var(--white);
}

.work-preview-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.work-preview-card__image {
  height: 240px;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

.work-preview-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.work-preview-card:hover .work-preview-card__image img {
  transform: scale(1.04);
}

.work-preview-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(37,33,55,0.35);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-preview-card__body {
  padding: 1.75rem;
}

.work-preview-card__body h3 {
  font-size: 20px;
  margin-bottom: 0.5rem;
  color: var(--navy);
  line-height: 1.3;
}

.work-preview-card__body p {
  font-size: 14px;
  color: rgba(37,33,55,0.7);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   AI SECTION TILES
   ============================================================ */

.ai-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: var(--space-md) 0;
}

.ai-tile {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.ai-tile h4 {
  font-size: 19px;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.ai-tile p {
  font-size: 15px;
  color: rgba(37,33,55,0.75);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CREDENTIAL STRIP
   ============================================================ */

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(37,33,55,0.15);
}

.credential-strip span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(37,33,55,0.5);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(37,33,55,0.6);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(37,33,55,0.2);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
}

.form-group textarea {
  min-height: 140px;
}

.form-success {
  display: none;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  margin-top: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  margin-bottom: 0;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.2rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--coral); }

.footer__contact p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}

.footer__contact a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__contact a:hover { color: var(--coral); }

.footer__bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   DIVIDER / FULL-BLEED IMAGE
   ============================================================ */

.image-divider {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ============================================================
   SECTION HEADER (centred intro)
   ============================================================ */

.section-header {
  max-width: 660px;
  margin-bottom: var(--space-md);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 18px; color: rgba(37,33,55,0.75); margin: 0; }

/* ============================================================
   SERVICES — LIST LAYOUT (about page)
   ============================================================ */

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 3rem;
  margin: 1.5rem 0 2.5rem;
  list-style: none;
}

.services-list li {
  font-size: 16px;
  padding-left: 1.2rem;
  position: relative;
  color: var(--navy);
  line-height: 1.55;
}

.services-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* ============================================================
   COMING SOON TILE
   ============================================================ */

.coming-soon-tile {
  background: rgba(37,33,55,0.04);
  border: 2px dashed rgba(37,33,55,0.15);
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
  color: rgba(37,33,55,0.4);
  margin-bottom: var(--space-lg);
}

.coming-soon-tile p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  margin: 0;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* Hero load animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate-1 { animation: fadeUp 700ms ease both; animation-delay: 100ms; }
.hero-animate-2 { animation: fadeUp 700ms ease both; animation-delay: 250ms; }
.hero-animate-3 { animation: fadeUp 700ms ease both; animation-delay: 400ms; }
.hero-animate-4 { animation: fadeUp 700ms ease both; animation-delay: 550ms; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-tiles   { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > *:first-child { grid-column: 1 / -1; }
  .hero__image img { margin-right: 0; }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .work-tile { grid-template-columns: 1fr; }
  .work-tile:nth-child(even) .work-tile__image { order: unset; }
  .work-tile:nth-child(even) .work-tile__content { order: unset; }
  .work-tile__image { min-height: 260px; }
  .work-preview-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 640px) {
  :root { --space-xl: 4.5rem; --space-lg: 2.5rem; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero { min-height: 100svh; }
  .hero__content { min-height: 100svh; }

  .hero--interior { min-height: 40vh; }

  .cards-grid { grid-template-columns: 1fr; }
  .ai-tiles   { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-md); }
  .work-tile__content { padding: 2rem 1.75rem; }
  .image-divider { height: 240px; }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
