/* Autoglass DNA website styles.
   Brand: cyan #00B2D6, black #1C1C1C, white. Headings in Teko Bold. */

@font-face {
  font-family: 'Teko';
  src: url('/assets/fonts/Teko-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --cyan: #00B2D6;
  --cyan-dark: #008BA8;
  --cyan-soft: #E3F6FA;
  --black: #1C1C1C;
  --ink: #2A2D30;
  --grey: #5F666D;
  --line: #DDE2E6;
  --paper: #F4F6F7;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(28, 28, 28, .08);
  --wrap: 1160px;
  --head: 'Teko', 'Arial Narrow', Impact, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-underline-offset: 3px; }
a:hover { color: var(--black); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--black); margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--black); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .82rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: .6em; }
.opt { font-weight: 400; color: var(--grey); font-size: .85em; }

/* Things Art still has to confirm: bright yellow so they stand out. */
mark.todo { background: #FFF200; color: #1C1C1C; padding: 0 .2em; border-radius: 3px; box-shadow: 0 0 0 2px #FFF200; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.3em; border-radius: 8px; font: 700 1rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.6em; font-size: 1.08rem; }
.btn-primary { background: var(--cyan); color: var(--black); }
.btn-primary:hover { background: #1FC6E8; color: var(--black); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost-dark { border-color: var(--black); color: var(--black); }
.btn-ghost-dark:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 3px solid var(--cyan); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--white); white-space: nowrap; padding-top: 4px; }
.brand-name b { color: var(--cyan); font-weight: 700; }
@media (max-width: 520px) { .brand img { height: 50px; } .brand-name { font-size: 1.75rem; } }
.menu-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav a { color: var(--white); text-decoration: none; }
.site-nav > ul > li > a { display: block; padding: 10px 9px; font-weight: 600; font-size: .95rem; }
.site-nav > ul > li > a:hover, .site-nav a[aria-current] { color: var(--cyan); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--black); border: 1px solid #333; border-top: 3px solid var(--cyan); border-radius: 0 0 8px 8px; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.sub a:hover { background: #2B2B2B; color: var(--cyan); }
.nav-home { display: none; }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { padding: .55em 1em; font-size: .95rem; }

@media (max-width: 1080px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .menu-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 10px 20px 24px; border-bottom: 3px solid var(--cyan); max-height: calc(100vh - 73px); overflow-y: auto; }
  .js .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .nav-home { display: block; }
  .site-nav > ul > li > a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid #2E2E2E; }
  .sub { position: static; display: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .has-sub > a { display: flex !important; justify-content: space-between; align-items: center; }
  .has-sub > a::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .2s; }
  .has-sub.open > a::after { transform: rotate(-135deg); margin-bottom: -4px; }
  .sub a { color: #C9D0D5; }
  .nav-cta { flex-direction: column; margin-top: 12px; }
  .nav-cta .btn-ghost { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: #E9EDF0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 0 52%, rgba(0, 178, 214, .16) 52% 56%, transparent 56% 60%, rgba(0, 178, 214, .09) 60% 70%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero h1 { color: var(--white); }
.hero h1 .accent, h2 .accent { color: var(--cyan); }
.hero .lead { font-size: 1.2rem; color: #D2D8DD; max-width: 34em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.hero-photo::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--cyan); border-radius: var(--radius); z-index: -1; }
.hero-photo { z-index: 0; }
.hero-badge { position: absolute; left: -18px; bottom: 22px; background: var(--white); color: var(--black); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; line-height: 1.2; }
.hero-badge .stars { display: block; font-size: 1.05rem; }
.hero-badge small { font-weight: 500; color: var(--grey); }
.page-hero .hero-inner { grid-template-columns: 1.2fr .8fr; padding: 52px 0 46px; }
.page-hero.no-photo .hero-inner { grid-template-columns: 1fr; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.hero .chips li { border: 1px solid #3C4144; border-radius: 999px; padding: 5px 12px; font-size: .92rem; color: #DCE2E6; }
.hero .chips strong { color: var(--cyan); }
@media (max-width: 860px) {
  .hero-inner, .page-hero .hero-inner { grid-template-columns: 1fr; padding: 40px 0 44px; gap: 30px; }
  .hero-photo::after { inset: 10px -8px -10px 10px; }
  .hero-badge { left: 10px; bottom: 12px; padding: 8px 12px; font-size: .88rem; }
  /* Phones: photo goes right under the headline instead of below everything */
  .hero-inner, .page-hero .hero-inner { gap: 0; }
  .hero-inner > div:first-child { display: contents; }
  .hero-inner > div:first-child > * { order: 2; }
  .hero-inner > div:first-child > .eyebrow, .hero-inner > div:first-child > h1 { order: 0; }
  .hero-inner > .hero-photo { order: 1; margin: 10px 8px 26px 0; }
}

.trust-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cyan); color: var(--black); }
.trust-bar li { padding: 14px 16px; text-align: center; font-size: .95rem; border-right: 1px solid rgba(0, 0, 0, .12); }
.trust-bar li:last-child { border-right: 0; }
.trust-bar a { color: inherit; text-decoration: none; }
.trust-bar strong { font-family: var(--head); font-size: 1.45rem; display: block; line-height: 1; text-transform: uppercase; }
.star, .stars { color: #F5B400; letter-spacing: .05em; }
.trust-bar .star { color: var(--black); }
@media (max-width: 760px) { .trust-bar { grid-template-columns: 1fr 1fr; } .trust-bar li:nth-child(2) { border-right: 0; } .trust-bar li:nth-child(-n+2) { border-bottom: 1px solid rgba(0,0,0,.12); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--black); color: #D7DDE1; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-head p:last-child { color: var(--grey); font-size: 1.08rem; }
.section.dark .section-head p:last-child { color: #BAC2C8; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr .7fr; align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--cyan); color: inherit; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--grey); }
.card .more { margin-top: auto; font-weight: 700; color: var(--cyan-dark); }
.card .more::after { content: ' →'; }
.price-tag { font-family: var(--head); font-size: 1.5rem; color: var(--black); margin-bottom: .4em; }
.price-tag small { font-family: var(--body); font-size: .9rem; color: var(--grey); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 26px 22px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.section.dark .steps li { background: #252729; border-color: #34383B; }
.steps li::before { content: counter(step); font-family: var(--head); font-size: 3.2rem; line-height: 1; color: var(--cyan); display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--grey); }
.section.dark .steps p { color: #B9C1C7; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Ticks */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231C1C1C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.crosses li::before { background: #E8EBED url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%231C1C1C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Compare boxes */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare > div { border-radius: var(--radius); padding: 26px; border: 2px solid var(--line); background: var(--white); }
.compare > div.good { border-color: var(--cyan); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table.prices { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prices th, .prices td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { background: var(--black); color: var(--white); font-weight: 700; font-size: .95rem; }
.prices td.amount { font-family: var(--head); font-size: 1.45rem; color: var(--black); white-space: nowrap; }
.prices td.amount .gst { display: block; font-family: var(--body); font-size: .85rem; font-weight: 600; color: var(--grey); letter-spacing: 0; }
.prices tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 14px 40px 14px 0; position: relative; color: var(--black); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 6px; top: 8px; font: 700 1.8rem/1 var(--head); color: var(--cyan-dark); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > *:not(summary) { color: var(--grey); }
details.faq p:last-child { margin-bottom: 14px; }
.section.dark details.faq { border-color: #34383B; }
.section.dark details.faq summary { color: var(--white); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 1rem; }
.review blockquote::before { content: '“'; font: 700 2.6rem/0 var(--head); color: var(--cyan); vertical-align: -.35em; margin-right: 4px; }
.review figcaption { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--grey); }
.rating-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 26px; margin-bottom: 34px; text-align: center; }
.rating-panel .big { font-family: var(--head); font-size: 4rem; line-height: 1; color: var(--cyan); }
.rating-panel .stars { font-size: 1.6rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; background: #1C1C1C; }
.gallery figcaption { padding: 10px 14px; font-size: .92rem; color: var(--grey); }

/* Areas */
.area-list { columns: 3 180px; list-style: none; padding: 0; }
.area-list li { padding: 4px 0 4px 18px; position: relative; break-inside: avoid; }
.area-list li::before { content: ''; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); }

/* Callout */
.callout { background: var(--cyan-soft); border-left: 5px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--black); color: #D7DDE1; padding: 54px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 70%, rgba(0, 178, 214, .18) 70% 73%, transparent 73% 77%, rgba(0, 178, 214, .1) 77% 85%, transparent 85%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; max-width: 36em; }
.cta-band a:not(.btn) { color: var(--cyan); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Quote form */
.form-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 30px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); border-top: 5px solid var(--cyan); }
.form-card h2 { font-size: 2.3rem; }
.quote-form .form-row { margin-bottom: 14px; }
.quote-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .quote-form .two { grid-template-columns: 1fr; } }
.quote-form label { display: block; font-weight: 600; font-size: .95rem; color: var(--black); }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: 16px/1.3 var(--body); color: var(--ink); background: #FBFCFC; border: 1.5px solid #C9D1D6; border-radius: 8px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 178, 214, .22); }
.quote-form .invalid { border-color: #C0392B; }
.form-note { font-size: .85rem; color: var(--grey); }
.form-error { color: #B3261E; font-weight: 600; margin-top: 10px; }
.quote-form[hidden], .form-thanks[hidden], .form-error[hidden] { display: none; }
.form-thanks h3 { font-size: 2.2rem; color: var(--cyan-dark); }

/* Blog */
.post-meta { color: #AEB6BC; font-size: .95rem; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body img { border-radius: var(--radius); margin: 1.4em 0; }
.post-card h3 { font-size: 1.7rem; }

/* Footer */
.site-footer { background: #141414; color: #AEB6BC; padding: 56px 0 90px; border-top: 4px solid var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h2 { font-size: 1.5rem; color: var(--white); margin-bottom: .5em; }
.site-footer a { color: #E2E7EA; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer li { margin-bottom: 6px; }
.footer-tag { margin-top: 14px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #2B2B2B; margin-top: 30px; padding-top: 20px; font-size: .9rem; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call / text / quote bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--black); border-top: 2px solid var(--cyan); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { color: var(--white); text-align: center; padding: 14px 6px; font-weight: 700; text-decoration: none; border-right: 1px solid #333; }
  .mobile-bar a.primary { background: var(--cyan); color: var(--black); border: 0; }
  body { padding-bottom: 54px; }
  .section { padding: 54px 0; }
}

/* ---------- Story photo / video clip ---------- */
img.rounded { border-radius: var(--radius); }
.story-photo { margin: 1.6em 0; max-width: 420px; }
.story-photo img { border-radius: var(--radius); width: 100%; height: auto; }
.story-photo figcaption, .video-clip figcaption { font-size: .92rem; color: var(--grey); margin-top: 8px; }
.video-clip { margin: 36px auto 0; max-width: 340px; text-align: center; }
.video-clip video { width: 100%; height: auto; border-radius: var(--radius); background: #000; display: block; }

section[id] { scroll-margin-top: 90px; }

.hero-photo.tall img { aspect-ratio: 4 / 5; object-position: center top; }
@media (max-width: 860px) { .hero-photo.tall { max-width: 420px; } }
