/* Crystal Marketing: shared styles.
   Colours and type follow the sister site, googleadguy.com.au. */
:root {
  --blue: #0b6ad9;         /* header, highlights, links */
  --blue-hero: #3b86e0;    /* hero band */
  --blue-dark: #0d417d;
  --blue-soft: #e7f0fb;
  --yellow: #fcc014;       /* buttons, ticks */
  --yellow-text: #e3ad12;  /* accent words on navy */
  --navy: #12273f;         /* headings, footer */
  --text: #3a4656;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e2e8f0;
  --radius: 16px;
  --max: 1140px;
  --max-narrow: 820px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--max-narrow); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: 2.6rem; margin: 0 0 18px; }
h2 { font-size: 2rem; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 700; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 8px; }

/* Highlighted words in headings, as on googleadguy.com.au */
.hl { background: var(--blue); color: #fff; padding: 0 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-yellow { background: var(--yellow); color: var(--navy); padding: 0 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.accent { color: var(--yellow-text); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; padding: 15px 30px; border-radius: 999px; line-height: 1.2;
  background: var(--yellow); color: var(--navy); border: 2px solid var(--yellow);
}
.btn:hover { background: #ffcd3a; border-color: #ffcd3a; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--blue); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav .btn { padding: 10px 20px; font-size: 0.85rem; color: var(--navy); }
.site-nav .btn:hover { color: var(--navy); }

/* Hero */
.hero { background: var(--blue-hero); color: #fff; }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; margin: 0 0 10px; }
.hero .eyebrow { color: rgba(255,255,255,0.9); }
.meta { margin: 0; color: rgba(255,255,255,0.9); }

.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }

.stats { display: flex; flex-wrap: wrap; margin: 28px 0 32px; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 0 26px; border-left: 2px solid rgba(255,255,255,0.7); text-align: center; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: #fff; }
.stats span { font-size: 0.95rem; font-weight: 500; }

.id-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 44px rgba(0,0,0,0.15); }
.id-card h2 { color: var(--navy); font-size: 1.3rem; margin-bottom: 16px; }
.id-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.id-card dt { font-weight: 700; color: var(--navy); }
.id-card dd { margin: 0; overflow-wrap: anywhere; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--blue-soft); }
.section-navy { background: var(--navy); color: #dbe4f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tile { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 10px 14px 54px rgba(0,0,0,0.07); }
.tile p:last-child { margin-bottom: 0; }
.tile .num { display: inline-block; font-weight: 800; color: var(--blue); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.step { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 26px; }
.step .num { color: var(--yellow); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.step p:last-child { margin-bottom: 0; }

/* Yellow tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 38px; margin-bottom: 14px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 5px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.9 12.3l3.4 3.4 6.8-6.8' fill='none' stroke='%231e4573' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks strong { color: var(--navy); }

.quote { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 10px 14px 54px rgba(0,0,0,0.07); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-style: italic; color: var(--navy); font-size: 1.05rem; flex: 1; }
.quote .stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 10px; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); }
.quote cite span { display: block; font-weight: 500; color: var(--blue); }


.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* Legal and tools pages */
.content { padding-top: 48px; padding-bottom: 64px; }
.content h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.content h2:first-child { margin-top: 0; }

.feature-list { list-style: none; padding: 0; }
.feature-list li { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px; margin-bottom: 14px; }
.feature-list strong { color: var(--navy); }
.steps { padding-left: 22px; }
.steps strong { color: var(--navy); }
.highlight { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 10px; padding: 18px 22px; margin: 0 0 16px; }
.highlight p:last-child { margin-bottom: 0; }
.contact-list { list-style: none; padding: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d2e0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-brand { font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; padding-bottom: 24px; font-size: 0.88rem; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero .wrap { padding-top: 44px; padding-bottom: 44px; }
  .section { padding: 52px 0; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stats li { padding: 0 6px; }
  .stats strong { font-size: 1.4rem; }
  .stats span { font-size: 0.8rem; display: block; line-height: 1.3; }
  .btn { width: 100%; text-align: center; }
  .site-nav .btn { width: auto; }
}
