/* ===========================
   A1 Security Doors & Repairs
   Theme: Black / Crimson / White
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

/* ===========================
   Variables
   =========================== */
:root {
  --black:      #0d0d0d;
  --black-mid:  #1a1a1a;
  --black-card: #222222;
  --black-light:#2e2e2e;
  --red:        #c80000;
  --red-hover:  #a60000;
  --white:      #ffffff;
  --grey:       #aaaaaa;
  --grey-light: #f4f4f4;
  --border:     rgba(255,255,255,0.08);

  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: 5rem 1.5rem;
  --radius: 4px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: #333;
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; max-width: 68ch; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad); }

.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p { color: var(--grey); }

.section--charcoal {
  background: var(--black-mid);
  color: var(--white);
}
.section--charcoal h2,
.section--charcoal h3 { color: var(--white); }
.section--charcoal p { color: var(--grey); }

.section--light { background: var(--grey-light); }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); color: var(--white); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--black); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--black-mid); color: var(--white); }

/* ===========================
   Top Bar
   =========================== */
.top-bar {
  background: var(--black);
  padding: 0.45rem 1.5rem;
  border-bottom: 1px solid rgba(200,0,0,0.3);
}

.top-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.top-bar__phone {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}
.top-bar__phone:hover { color: var(--white); }

.top-bar__tag {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black-mid);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}
.nav__logo img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.nav__logo-text span { color: var(--red); }
.nav__logo:hover .nav__logo-text { color: var(--white); }

.nav__links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav__links a {
  color: #bbb;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }

.nav__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--red-hover) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===========================
   Hero — Parallax
   =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background-image: url('../images/photo-01-install.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.70) 50%,
    rgba(0,0,0,0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  width: 100%;
}

.hero__content h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.2rem;
}
.hero__content h1 span { color: var(--red); }

.hero__content > p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  max-width: 48ch;
}

.hero__phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
  transition: color 0.2s;
}
.hero__phone:hover { color: var(--red); }

.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   Trust Bar
   =========================== */
.trust-bar {
  background: var(--red);
  padding: 0.9rem 1.5rem;
}

.trust-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
  flex-shrink: 0;
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}
.service-card__icon svg {
  width: 44px;
  height: 44px;
  fill: var(--red);
}

.service-card h3 {
  color: var(--black);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.service-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.service-card a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

/* ===========================
   Why Choose — Clean Cards
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  background: var(--black-card);
  padding: 2rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: #2a2a2a; }

.feature-item__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.feature-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-item p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 28ch;
}

/* ===========================
   Gallery
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: var(--red);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0 auto 1.5rem;
  max-width: 52ch;
}
.cta-banner__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}
.cta-banner__phone:hover { opacity: 0.85; color: var(--white); }
.cta-banner .btn {
  background: var(--white);
  color: var(--red);
  font-weight: 700;
}
.cta-banner .btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--black);
  color: var(--grey);
  padding: 3.5rem 1.5rem 0;
  border-top: 3px solid var(--red);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  padding-bottom: 2.5rem;
}

.footer__brand { flex: 1 1 220px; }
.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 0.8rem;
}
.footer__tagline {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0;
}

.footer__links { flex: 1 1 150px; }
.footer__contact { flex: 1 1 220px; }

.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(200,0,0,0.4);
}

.footer__links ul li { margin-bottom: 0.45rem; }
.footer__links a {
  color: #888;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

.footer__contact p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  max-width: none;
}

.footer__phone {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.3rem;
}
.footer__phone:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.2rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: #444;
  margin: 0;
  max-width: none;
}

.footer__bottom a {
  color: #666;
  transition: color 0.2s;
}
.footer__bottom a:hover { color: var(--white); }

/* ===========================
   Contact / Quote pages
   =========================== */
.page-hero {
  background: var(--black);
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--red);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--grey); margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.info-item svg {
  width: 20px;
  height: 20px;
  fill: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-item a { color: var(--black); font-weight: 600; }
.info-item a:hover { color: var(--red); }

.contact-form h3,
.quote-form h3 {
  color: var(--black);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #333;
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================
   Service Areas Page
   =========================== */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.suburb-card {
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.suburb-card h2 {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.suburb-card p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0;
  max-width: none;
}

.suburb-list-compact {
  column-count: 3;
  column-gap: 1rem;
  margin-top: 1.5rem;
}
.suburb-list-compact li {
  font-size: 0.9rem;
  color: #666;
  padding: 0.2rem 0;
  break-inside: avoid;
}
.suburb-list-compact li::before {
  content: '→ ';
  color: var(--red);
  font-weight: 700;
}

/* ===========================
   Services Detail Page
   =========================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid #eee;
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-detail h2 { margin-bottom: 0.8rem; }
.service-detail p { color: #555; margin-bottom: 0.8rem; }

/* ===========================
   Thanks Page
   =========================== */
.thanks-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}
.thanks-section h1 { color: var(--white); margin-bottom: 1rem; }
.thanks-section p { color: var(--grey); margin: 0 auto 1.5rem; }

/* ===========================
   Scroll Animations
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .suburb-list-compact { column-count: 2; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--black-mid);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--red);
    padding: 0.5rem 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    width: 100%;
  }
  .nav__cta {
    margin: 0.5rem 1rem;
    text-align: center;
    border-radius: var(--radius);
  }
  .nav__toggle { display: flex; }
  .nav { position: sticky; }

  .hero { min-height: 70vh; }
  .hero__phone { font-size: 1.6rem; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { text-align: center; }

  .trust-bar__inner { justify-content: flex-start; gap: 0.5rem 1.5rem; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .feature-item { border-bottom: 1px solid rgba(255,255,255,0.06); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner__phone { font-size: 2rem; }

  .footer__inner { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .hero { min-height: 65vh; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .suburb-list-compact { column-count: 1; }
  .cta-banner__phone { font-size: 1.8rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Feature icon (SVG variant for S&I and R&C boxes) */
.feature-item__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.feature-item__icon svg {
  width: 3rem;
  height: 3rem;
  stroke: var(--red);
  flex-shrink: 0;
}
