/* =========================================================
   Line Marking Townsville — Shared Styles
   ========================================================= */

/* === VARIABLES === */
:root {
  --primary:       #1c3f6e;
  --primary-dark:  #152e52;
  --primary-pale:  #e8f0fa;
  --accent:        #f0b429;
  --accent-dark:   #c9961e;
  --text:          #1c2535;
  --text-muted:    #5a6578;
  --border:        #d4dae4;
  --bg-light:      #f5f7fa;
  --white:         #ffffff;
  --warn-bg:       #fef9e7;
  --warn-border:   #f0b429;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.09);
  --transition:    0.2s ease;
  --max-width:     1140px;
  --gap:           1.5rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem);   font-weight: 700; line-height: 1.25; color: var(--text); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.3;  color: var(--text); }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section     { padding: 4rem 0; }
.section-sm  { padding: 2.5rem 0; }
.section-alt  { background: var(--bg-light); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,0.82); }

.section-head        { margin-bottom: 2rem; }
.section-head h2     { margin-bottom: 0.5rem; }
.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 0;
}

.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* === HEADER / NAV === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.nav-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-light); color: var(--primary); }

.nav-cta a {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
}
.nav-cta a:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}
.hero h1      { color: var(--white); margin-bottom: 1rem; }
.hero-intro   { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 620px; margin-bottom: 2rem; }
.hero-ctas    { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-bullets li {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-bullets li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* Inner page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1    { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p     { color: rgba(255,255,255,0.85); max-width: 620px; margin-bottom: 1.5rem; }
.page-hero .breadcrumb { margin-bottom: 1rem; }
.page-hero .breadcrumb a,
.page-hero .breadcrumb li::before { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb [aria-current] { color: rgba(255,255,255,0.9); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary        { background: var(--accent);   color: var(--text);  border-color: var(--accent); }
.btn-primary:hover  { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--text); }

.btn-outline-white       { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }

.btn-solid       { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-outline       { background: var(--white);        color: var(--primary);      border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-pale); color: var(--primary-dark); border-color: var(--primary); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* === SERVICE CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.card h3             { margin-bottom: 0.5rem; }
.card > p            { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-link     { font-size: 0.875rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Link cards (related pages grid) */
.link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.link-card:hover    { border-color: var(--primary); box-shadow: var(--shadow); }
.link-card h3       { color: var(--primary); font-size: 1rem; margin-bottom: 0.25rem; }
.link-card p        { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* === NOTICE BOXES === */
.notice {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}
.notice p      { margin: 0; font-size: 0.95rem; }
.notice-info   { background: var(--primary-pale); border-left-color: var(--primary); color: var(--text); }
.notice-warn   { background: var(--warn-bg);      border-left-color: var(--warn-border); color: var(--text); }

/* === BREADCRUMB === */
.breadcrumb    { padding: 0.75rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.25rem; color: var(--border); }
.breadcrumb a  { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

/* === FAQ ACCORDION === */
.faq-list    { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item    { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
  font-family: inherit;
}
.faq-question:hover                    { background: var(--bg-light); }
.faq-question[aria-expanded="true"]    { background: var(--primary-pale); color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* === FORM === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 0; }
.form-group-full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,63,110,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6578' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.form-checkbox input {
  margin-top: 0.18rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-notice { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.form-notice a { color: var(--primary); }

/* Quote page sidebar tips */
.tip-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.tip-box h4        { margin-bottom: 0.5rem; color: var(--primary); font-size: 0.95rem; }
.tip-box ul        { margin-bottom: 0; }
.tip-box li        { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* === CTA BAND === */
.cta-band         { background: var(--primary); color: var(--white); padding: 4rem 0; text-align: center; }
.cta-band h2      { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p       { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { font-size: 1.05rem; padding: 0.9rem 2.25rem; }

/* Accent bar above CTA band */
.cta-band-accent { height: 4px; background: var(--accent); }

/* === ICON FEATURE BOXES === */
.icon-grid { display: grid; gap: var(--gap); }
.icon-box  { display: flex; gap: 1rem; align-items: flex-start; }
.icon-box-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-box-text h4 { margin-bottom: 0.25rem; }
.icon-box-text p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* === PRICING CALLOUT === */
.price-callout {
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.price-callout h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.05rem; }
.price-callout p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* === SUBURB / SERVICE AREA GRID === */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.suburb-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
}

/* === COMPLIANCE / INFO TABLE === */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table th { text-align: left; background: var(--primary); color: var(--white); padding: 0.65rem 1rem; font-weight: 600; }
.info-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.info-table tr:nth-child(even) td { background: var(--bg-light); }

/* === FOOTER === */
.site-footer { background: var(--text); color: rgba(255,255,255,0.72); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand       { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand span  { color: var(--accent); }
.footer-desc        { font-size: 0.875rem; line-height: 1.65; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col ul  { list-style: none; padding: 0; }
.footer-col li  { margin-bottom: 0.5rem; }
.footer-col a   { color: rgba(255,255,255,0.6); font-size: 0.875rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* === THANK YOU PAGE === */
.ty-wrap {
  background: var(--primary-pale);
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}
.ty-inner  { width: 100%; max-width: 560px; }
.ty-card   {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}
.ty-card h1     { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: 0.5rem; }
.ty-card > p    { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.ty-notice      { text-align: left; margin-bottom: 1rem; }
.ty-notice-info {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.ty-notice-warn {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.ty-notice strong { font-weight: 700; }
.ty-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.ty-btn {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid var(--primary);
}
.ty-btn-outline       { background: var(--white);        color: var(--primary); }
.ty-btn-outline:hover { background: var(--primary-pale); color: var(--primary-dark); }
.ty-btn-solid         { background: var(--primary);      color: var(--white); }
.ty-btn-solid:hover   { background: var(--primary-dark); color: var(--white); }

/* === LEGAL PAGES === */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2.5rem; margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.35rem; }
.legal-content ul,
.legal-content ol { margin-bottom: 1rem; }
.legal-content p  { color: var(--text-muted); }
.legal-date       { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .four-col     { grid-template-columns: repeat(2, 1fr); }
  .form-grid    { grid-template-columns: 1fr; }
  .form-group-full { grid-column: unset; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open    { display: flex; }
  .nav-links li      { width: 100%; }
  .nav-links a       { display: block; padding: 0.55rem 0.75rem; }
  .nav-cta           { margin-top: 0.25rem; }
  .nav-toggle        { display: flex; align-items: center; justify-content: center; }
  .site-header       { position: relative; }

  /* Layout */
  .two-col    { grid-template-columns: 1fr; }
  .three-col  { grid-template-columns: 1fr; }
  .hero       { padding: 3rem 0 2.5rem; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .section    { padding: 2.5rem 0; }
  .section-sm { padding: 1.75rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .four-col   { grid-template-columns: 1fr 1fr; }
  .cta-band   { padding: 2.75rem 0; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .four-col    { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
