/* ─────────────────────────────────────────────────────────────
   location.css · shared styles for city / location pages
   Used by: digital-marketing-agency-melbourne, -sydney, -brisbane,
   digital-marketing-adelaide, -gold-coast, -geelong, -canberra.
   Page-specific tweaks live inline in each .html.
   ───────────────────────────────────────────────────────────── */

h1, h2, h3, .hero-h, .local-h, .services-h, .stats-h, .faq-h, .cta-title { text-wrap: balance; }

/* ─── HERO ─────────────────────────────────────────────────── */
.loc-hero {
  /* Lifted to trim dead space under the header (and the authority sub-nav on
     the branded pages). Breathing room kept, not removed. */
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
  border-bottom: 0.5px solid var(--rule);
}
.loc-hero .eyebrow {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}
.loc-hero .eyebrow::before { content: ""; width: 24px; height: 0.5px; background: var(--accent); }

.hero-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.hero-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.loc-hero-row {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 880px) {
  .loc-hero-row { grid-template-columns: 1fr; align-items: start; }
}

.hero-sub {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
@media (min-width: 881px) { .hero-ctas { justify-content: flex-end; } }

/* btn-* base styles ship in base.css — these are page-specific tweaks */
.loc-hero .btn {
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}
.loc-hero .btn .arr { transition: transform 260ms var(--ease); }
.loc-hero .btn:hover { transform: translateY(-1px); }
.loc-hero .btn:hover .arr { transform: translateX(4px); }
.loc-hero .btn-primary { background: var(--ink); color: #fff; }
.loc-hero .btn-primary:hover { background: var(--accent); }
.loc-hero .btn-outline { border: 1px solid var(--rule-2); color: var(--ink); }
.loc-hero .btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.hero-meta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta .dot { display: inline-block; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }

/* ─── PROOF BAR ───────────────────────────────────────────── */
.loc-proof {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
  border-bottom: 0.5px solid var(--rule);
}
.loc-proof-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 880px) { .loc-proof-head { grid-template-columns: 1fr; } }

.proof-eyebrow { color: var(--accent); margin-bottom: 18px; }
.proof-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 0.5px;
  background: currentColor;
  margin-right: 10px;
  vertical-align: middle;
}

.proof-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.proof-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.proof-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
@media (max-width: 1080px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  display: block;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 18px;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
  position: relative;
  background: #fff;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.18); }

.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-client { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.case-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.case-arr { color: var(--muted-2); transition: transform 280ms var(--ease), color 280ms var(--ease); }
.case-card:hover .case-arr { color: var(--accent); transform: translate(3px, -3px); }

.case-num {
  margin-top: clamp(28px, 3.5vw, 44px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.case-num .pct { color: var(--accent); font-weight: 400; }

.case-card hr {
  border: 0;
  border-top: 0.5px solid var(--rule);
  margin: clamp(20px, 2.4vw, 28px) 0 clamp(14px, 1.8vw, 20px);
}
.case-desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ─── SERVICES ────────────────────────────────────────────── */
.loc-services {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  background: var(--paper);
  border-bottom: 0.5px solid var(--rule);
}
.services-head { max-width: 60ch; margin-bottom: clamp(48px, 6vw, 72px); }
.services-eyebrow { color: var(--accent); margin-bottom: 18px; }
.services-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 0.5px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.services-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.services-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.service-list { border-top: 0.5px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 30px;
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 0.5px solid var(--rule);
  align-items: baseline;
  transition: padding 280ms var(--ease), background 280ms var(--ease);
}
.service-row:hover { padding-left: 8px; }
@media (max-width: 720px) { .service-row { grid-template-columns: 40px 1fr 24px; } .service-desc { grid-column: 2 / -1; } }
.service-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); font-weight: 600; }
.service-name { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.service-desc { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.service-arrow { font-family: var(--display); color: var(--muted-2); transition: color 280ms var(--ease), transform 280ms var(--ease); justify-self: end; }
.service-row:hover .service-arrow { color: var(--accent); transform: translateX(4px); }

/* ─── LOCAL ADVANTAGE ─────────────────────────────────────── */
.loc-local {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  border-bottom: 0.5px solid var(--rule);
}
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) { .local-grid { grid-template-columns: 1fr; } }

.local-eyebrow { color: var(--accent); margin-bottom: 18px; }
.local-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 0.5px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.local-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.local-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.local-pillars { display: grid; gap: clamp(28px, 3vw, 40px); }
.pillar { padding-left: 24px; border-left: 1.5px solid var(--accent); }
.pillar h3 { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.partner-badges {
  margin-top: clamp(36px, 4.4vw, 56px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.partner-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

/* ─── STATS BAND ──────────────────────────────────────────── */
.loc-stats {
  background: var(--ink);
  color: #fff;
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  position: relative;
  overflow: hidden;
}
.loc-stats .stats-eyebrow { color: var(--accent); margin-bottom: 18px; }
.loc-stats .stats-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 0.5px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.stats-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.stats-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 1080px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-cell { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px; }
.stat-value { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-value .suf { color: var(--accent); font-weight: 400; }
.stat-label { margin-top: 14px; color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.45; }

/* ─── FAQ ────────────────────────────────────────────────── */
.loc-faq {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  border-bottom: 0.5px solid var(--rule);
}
.faq-head { max-width: 56ch; margin-bottom: clamp(48px, 5vw, 72px); }
.faq-eyebrow { color: var(--accent); margin-bottom: 18px; }
.faq-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 0.5px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.faq-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.faq-h em { color: var(--accent); font-style: italic; font-weight: 400; }

.faq-list { border-top: 0.5px solid var(--rule); }
.faq-item { border-bottom: 0.5px solid var(--rule); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 2.6vw, 32px) 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  display: grid;
  place-items: center;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease);
  color: var(--muted);
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); border-color: var(--accent); background: var(--accent); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  transition: max-height 360ms var(--ease), padding 360ms var(--ease);
  font-size: 16px;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: clamp(24px, 2.6vw, 32px); }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-eyebrow { color: var(--accent); margin-bottom: 18px; }
.cta-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 0.5px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.cta-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.cta-title em { color: var(--accent); font-style: italic; font-weight: 400; }
.cta-sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-section .btn-primary { background: var(--accent); color: #fff; }
.cta-section .btn-primary:hover { background: #ff7a24; }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.36); color: #fff; }
.cta-section .btn-outline:hover { border-color: #fff; }

/* Avoid two stacked dark slabs: when the CTA directly follows the dark stats
   band (service pages), render it on paper so the rhythm alternates dark→light. */
.loc-stats + .cta-section {
  background: var(--paper);
  color: var(--ink);
  border-top: 0.5px solid var(--rule);
}
.loc-stats + .cta-section .cta-title { color: var(--ink); }
.loc-stats + .cta-section .cta-sub { color: var(--muted); }
.loc-stats + .cta-section .btn-outline { border-color: var(--rule-2); color: var(--ink); }
.loc-stats + .cta-section .btn-outline:hover { border-color: var(--ink); }

/* ─── SEO page additions (shared: audit band, coverage list, AEO/GEO frontier) ─── */
.seo-points { list-style:none; padding:0; margin:clamp(24px,3vw,36px) 0 0; border-top:1px solid var(--rule-2); max-width:760px; }
.seo-points li { padding:18px 2px; border-bottom:1px solid var(--rule-2); color:var(--muted); font-size:clamp(15px,1.4vw,17px); line-height:1.55; }
.seo-points li strong { color:var(--ink); font-weight:500; }

.loc-audit { padding:clamp(48px,6vw,84px) 0; border-bottom:1px solid var(--rule); background:var(--paper); }
.loc-audit .eyebrow { color:var(--accent); }
.loc-audit h2 { font-family:var(--display); font-weight:500; font-size:clamp(28px,3.4vw,46px); line-height:1.05; letter-spacing:-0.025em; margin-top:14px; max-width:20ch; }
.loc-audit h2 em { font-style:italic; color:var(--accent); font-weight:400; }
.loc-audit p { color:var(--muted); margin-top:14px; font-size:clamp(15px,1.4vw,17px); line-height:1.5; max-width:60ch; }
.loc-audit .audit-form { margin-top:clamp(28px,3.5vw,44px); }

#frontier { padding:clamp(80px,10vw,144px) 0; }
.frontier-head { margin:0 0 clamp(48px,6vw,80px); }
.frontier-head .eyebrow { color:var(--accent); }
.frontier-head h2 { font-family:var(--display); font-weight:500; font-size:clamp(36px,5.5vw,80px); line-height:0.98; letter-spacing:-0.04em; max-width:18ch; text-wrap:balance; color:var(--ink); margin-top:18px; }
.frontier-head h2 em { font-style:italic; font-weight:400; color:var(--accent); }
.frontier-head p { font-size:clamp(16px,1.5vw,20px); line-height:1.5; color:var(--muted); max-width:62ch; margin-top:clamp(20px,3vw,28px); }
.frontier-grid { display:grid; grid-template-columns:1fr 1fr; border-top:0.5px solid var(--rule); }
.frontier-col { padding:clamp(36px,5vw,72px) clamp(20px,3vw,48px); }
.frontier-col + .frontier-col { border-left:0.5px solid var(--rule); }
.frontier-abbr { font-family:var(--display); font-weight:500; font-size:clamp(64px,11vw,168px); line-height:0.9; letter-spacing:-0.06em; color:var(--ink); margin-bottom:16px; }
.frontier-abbr em { font-style:italic; font-weight:400; color:var(--accent); }
.frontier-col .full { font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); margin-bottom:clamp(20px,3vw,32px); }
.frontier-col h3 { font-family:var(--display); font-weight:500; font-size:clamp(22px,2.2vw,28px); letter-spacing:-0.025em; line-height:1.15; margin-bottom:16px; text-wrap:balance; color:var(--ink); }
.frontier-col h3 em { font-style:italic; font-weight:400; color:var(--accent); }
.frontier-col p { font-size:clamp(15px,1.4vw,17px); line-height:1.55; color:var(--muted); margin-bottom:24px; max-width:44ch; }
.frontier-col ul { list-style:none; padding:0; margin:0; }
.frontier-col li { padding:14px 0; border-top:0.5px solid var(--rule); font-size:clamp(14px,1.3vw,16px); line-height:1.5; color:var(--muted); display:flex; gap:14px; }
.frontier-col li::before { content:"+"; color:var(--accent); flex-shrink:0; font-family:var(--mono); font-weight:500; }
@media (max-width:820px){ .frontier-grid{ grid-template-columns:1fr; } .frontier-col + .frontier-col{ border-left:0; border-top:0.5px solid var(--rule); } }

/* Rounded audit-form inputs on location/SEO pages (match the pill aesthetic) */
.loc-hero .audit-form input { border-radius: 999px; }

/* ─── Cycling hero word (digital-marketing location headlines) ─── */
.word-cycle { display: inline-block; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.word-cycle.swap { opacity: 0; transform: translateY(-6px); }
