/* ============================================
   AusiRepair — Main Stylesheet
   Canberra's trusted phone repair specialists
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1d4ed8;
  --blue-light:  #3b82f6;
  --blue-dark:   #1e3a8a;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --slate:       #334155;
  --muted:       #64748b;
  --light:       #f8fafc;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --green:       #059669;
  --amber:       #d97706;
  --r:           10px;
  --r-lg:        18px;
  --sh:          0 4px 16px rgba(0,0,0,.08);
  --sh-lg:       0 12px 40px rgba(0,0,0,.12);
  --trans:       .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 { color: var(--dark-2); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--slate); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-light);
  background: rgba(59,130,246,.1);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: .75rem; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 56ch; margin: 0 auto; }
.text-center { text-align: center; }

/* ── Layout ─────────────────────────────────── */
.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}
section { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--sh); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); font-weight: 700; }
.btn-white:hover { background: var(--light); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark-2);
}
.nav-logo span { color: var(--blue); }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-right: .6rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark-2);
  border-radius: 2px;
  transition: var(--trans);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  gap: .25rem;
}
.mobile-menu a {
  display: block;
  padding: .7rem 0;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: .75rem; width: fit-content; border-bottom: none !important; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #172554 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 999px;
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--blue-light); }
.hero p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; max-width: 55ch; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.trust-badges { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 500;
}
.trust-badge svg { color: var(--green); flex-shrink: 0; }

/* ── Service Cards ───────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: var(--trans);
}
.service-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.4);
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(59,130,246,.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--muted); }
.service-card .price {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--blue);
  font-size: .95rem;
}

/* ── Why Choose Us ───────────────────────────── */
.features { background: var(--light); }
.feature-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
}
.feature-card h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.feature-card p { font-size: .9rem; color: var(--muted); }

/* ── Steps ───────────────────────────────────── */
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
  width: 52px; height: 52px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p { font-size: .9rem; color: var(--muted); }

/* ── Testimonials ────────────────────────────── */
.testimonials { background: var(--light); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh);
}
.stars { color: var(--amber); margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: .95rem; margin-bottom: 1.25rem; font-style: italic; line-height: 1.7; }
.reviewer { display: flex; align-items: center; gap: .75rem; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: .9rem; color: var(--dark-2); }
.reviewer-loc { font-size: .8rem; color: var(--muted); }

/* ── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Price Tables ────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1rem; border-radius: var(--r); overflow: hidden; }
.price-table th {
  background: var(--dark-2);
  color: var(--white);
  padding: .85rem 1.25rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
}
.price-table th:last-child { text-align: right; }
.price-table td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--blue); }
.price-table tr:nth-child(even) td { background: var(--light); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(59,130,246,.04); }

/* ── Services Page ───────────────────────────── */
.service-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.service-section:last-of-type { border-bottom: none; }
.service-page-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.service-page-icon {
  width: 60px; height: 60px;
  background: rgba(59,130,246,.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.service-page-icon svg { flex-shrink: 0; }
.service-page-header h2 { font-size: 1.7rem; margin-bottom: .35rem; }
.service-page-header p { font-size: .95rem; color: var(--muted); }
.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(5,150,105,.1);
  border: 1px solid rgba(5,150,105,.3);
  color: var(--green);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  margin-top: .75rem;
}
.tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.table-block h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .5rem;
}

/* ── Page Hero ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: #94a3b8; font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #93c5fd; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #475569; }

/* ── Contact Form ────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--sh);
}
.form-card h2 { margin-bottom: .5rem; font-size: 1.5rem; }
.form-card > p { font-size: .95rem; color: var(--muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark-2);
  margin-bottom: .45rem;
}
input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  color: var(--slate);
  font-size: .95rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: .95rem; font-size: 1rem; }
.required { color: #ef4444; }
.success-msg {
  display: none;
  background: rgba(5,150,105,.08);
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  font-size: .95rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh);
  margin-bottom: 1.5rem;
}
.info-card h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(59,130,246,.1);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.ci-label { font-size: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; color: var(--muted); margin-bottom: .2rem; }
.ci-value { font-size: .95rem; font-weight: 500; color: var(--dark-2); line-height: 1.5; }
.ci-value a { color: var(--blue); }
.ci-value a:hover { text-decoration: underline; }
.hours-table { width: 100%; }
.hours-table td { padding: .35rem 0; font-size: .875rem; color: var(--slate); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--dark-2); }
.hours-table tr.closed td { color: var(--muted); }

/* ── About ───────────────────────────────────── */
.about-intro-grid { display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; }
.about-visual {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}
.stats-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-block { text-align: center; color: var(--white); padding: 1.5rem; background: rgba(255,255,255,.1); border-radius: 12px; }
.stat-block .num { font-size: 2.4rem; font-weight: 800; display: block; line-height: 1; }
.stat-block .lbl { font-size: .8rem; opacity: .8; margin-top: .4rem; display: block; }

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh);
}
.value-icon {
  width: 46px; height: 46px;
  background: rgba(59,130,246,.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: .9rem;
}
.value-card h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--sh);
  transition: var(--trans);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role { font-size: .85rem; color: var(--blue); font-weight: 600; margin-bottom: .5rem; }
.team-card p { font-size: .875rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────── */
footer { background: var(--dark); color: #94a3b8; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { margin-bottom: 1rem; color: var(--white); }
.footer-brand p { font-size: .875rem; line-height: 1.75; margin-bottom: 1rem; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .875rem; color: #94a3b8; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: .875rem; line-height: 1.8; }
.footer-col a { transition: color var(--trans); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .8rem; }
.abn-line { font-size: .75rem; color: #475569; margin-top: .4rem; }

/* ── Misc ────────────────────────────────────── */
.highlight-box {
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.highlight-box p { font-size: .9rem; color: var(--slate); }
.highlight-box strong { color: var(--blue); }

.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .tables-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-2x2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero { padding: 64px 0; }
  .hero-btns { flex-direction: column; }
  .trust-badges { flex-direction: column; gap: .75rem; }
  .cta-banner .btns { flex-direction: column; align-items: center; }
  .page-hero { padding: 48px 0; }
  .form-card { padding: 1.5rem; }
}
