/* ==========================================================================
   NSW Insurance Agency — Main Stylesheet
   Hello Computer Web Development
   Colours are a provisional palette pulled from the supplied logo (tan/cream
   banner, charcoal ink). Replace once Steadfast brand assets / brand guide
   are supplied by George.
   ========================================================================== */

:root {
  --color-ink: #2b2926;
  --color-tan: #cbb894;
  --color-tan-dark: #a68f66;
  --color-cream: #faf7f2;
  --color-white: #ffffff;
  /* Style direction (2026-08-31): clearlakeinsurance.com.au — neutral
     white/grey/black base, warm sand/beige accent (not a cold corporate blue),
     generous whitespace, minimal geometric iconography. Accent below replaces
     the earlier provisional teal. Still TBC against Steadfast brand guide. */
  --color-accent: #8a6f4d; /* warm sand/beige accent */
  --color-grey: #6b6b6b;
  --radius: 6px;
  --max-width: 1150px;
}

/* Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.25; }

.container, .header-inner, .footer-inner, .page-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}
/* Arrow-adorned CTAs, per clearlakeinsurance.com.au style direction */
.btn::after { content: '\2192'; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Header & nav
   ========================================================================== */
.site-header {
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo { height: 64px; width: auto; }
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a { font-weight: 500; }
.site-nav a:hover { color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cta-top { white-space: nowrap; }

/* Hero
   ========================================================================== */
.hero {
  background: var(--color-cream);
  padding: 5rem 1.5rem; /* generous whitespace, per style reference */
  text-align: center;
}
.hero h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.hero p { max-width: 700px; margin: 0 auto 1.5rem; font-size: 1.1rem; }

/* Page sections (specialty pages: Business / Strata / Cyber / Home & Contents)
   ========================================================================== */
.page-intro {
  padding: 3rem 1.5rem 1.5rem;
}
.page-intro h1 { font-size: 2rem; margin-bottom: 1rem; }
.page-intro .cta-inpage { margin-top: 1rem; }
.inline-cta-link {
  font-weight: 700;
  font-style: italic;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-cta-link:hover { color: var(--color-tan-dark); }

.specialty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}
.specialty-card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.specialty-card h3 { margin-bottom: 0.5rem; color: var(--color-accent); }

/* Quote form (down low on each specialty page)
   ========================================================================== */
.quote-form-section {
  background: var(--color-cream);
  padding: 3rem 1.5rem;
}
.quote-form-section h2 { margin-bottom: 1rem; }
.quote-form {
  max-width: 600px;
  display: grid;
  gap: 1rem;
}
.quote-form label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font: inherit;
}

/* About Us
   ========================================================================== */
.bio-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.bio-credentials li {
  background: var(--color-cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Steadfast connection (About Us)
   ========================================================================== */
.steadfast-section {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
}
.steadfast-section img { width: 100%; height: auto; }
.steadfast-section h2 { margin-bottom: 0.75rem; color: var(--color-ink); }
.steadfast-section p { margin-bottom: 0.75rem; }
.steadfast-section p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .steadfast-section { grid-template-columns: 1fr; text-align: center; }
  .steadfast-section img { max-width: 200px; margin: 0 auto; }
}

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: var(--color-cream);
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.footer-logo { height: 68px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-col h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; color: var(--color-tan); }
.footer-col a:hover { color: var(--color-tan); }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; align-content: flex-start; }
.footer-badge {
  display: inline-block;
  background: var(--color-white);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  line-height: 0;
}
.footer-badge-logo { height: 32px; width: auto; display: block; }
.footer-badge-caption {
  flex-basis: 100%;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-tan);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

/* Chatbot overlay (persistent, site-wide)
   ========================================================================== */
.chatbot-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 200;
}
.chatbot-overlay {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 340px;
  max-width: 90vw;
  height: 420px;
  max-height: 70vh;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: none;
  z-index: 200;
}
.chatbot-overlay.open { display: block; }

/* Responsive
   ========================================================================== */
@media (max-width: 720px) {
  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
  }
  .site-nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  .cta-top { display: none; }
}
