/* ==========================================================
   AutoTechnik Australia Stylesheet
   Reorganised Breakpoint Structure + iPad Fix
   The Apps Brewery 2026

   Breakpoint structure:
   - Desktop: default styles above 1240px
   - Hero safety stack: @media (max-width: 1240px)
   - Tablet / iPad navigation: @media (max-width: 1080px)
   - Single-column / small tablet: @media (max-width: 860px)
   - Small phones: @media (max-width: 560px)

   iPad / tablet fix:
   - Hero stacks from 1240px down to prevent text/image overlap.
   - Hamburger navigation starts at 1080px, covering old
     10-inch iPads around 1024px wide.
   ========================================================== */

/* (c) The Apps Brewery 2026. All Rights Reserved. */
/* Porsche-inspired legal web fonts:Porsche+Next */
/* https://db.onlinewebfonts.com */
/* https://www.onlinewebfonts.com/download/2ad24930d996d33544708f0637f7690a */


@import url("https://db.onlinewebfonts.com/c/2ad24930d996d33544708f0637f7690a?family=Porsche+Next");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


:root {
  --red: #E10600;
  --red-bright: #E10600;
  --gold: #c87916;
  --ink: #070707;
  --muted: #575757;
  --line: rgba(161, 0, 1, .34);
  --gold-line: rgba(200, 121, 22, .55);
  --paper: #fff;
  --soft: #f7f7f7;
  --shadow: 0 22px 55px rgba(0, 0, 0, .10);
  --radius: 6px;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-heading: "Porsche Next", Arial, Helvetica, sans-serif;
}

section[id],
#instagram,
#contact {
  scroll-margin-top: 180px;
}

#home,
#gallery {
  scroll-margin-top: 200px;
}

* {
  box-sizing: border-box;
}

/* Added 19-06-2026 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ==========================================================
   Typography
   ========================================================== */

body,
input,
textarea,
select,
button {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-nav,
.phone-box,
.eyebrow,
.button,
.service-more,
.info-card strong,
.cta-title strong,
.site-footer h3,
.section-heading h2,
.mini-heading h2,
.service h3,
.why-card h2,
.why-item h3,
.service-page-title,
.contact-modal h2,
.modal-content h2,
.google-review-footer strong,
.copyright {
  font-family: var(--font-heading);
  letter-spacing: 0.035em;
}

p,
li,
small,
span,
.lead,
.about-copy p,
.service p,
.review-card p,
.google-review-text,
.footer-grid p,
.footer-grid a,
.footer-grid button,
.modal-content p,
.modal-bullets li,
.legal-page p,
.legal-page a {
  font-family: var(--font-body);
}

p,
li {
  font-size: 17px;
  line-height: 1.7;
}

.shell {
  width: min(1185px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 80;
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 295px 1fr 145px;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 292px;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.site-nav a,
.site-nav button {
  background: none;
  border: 0;
  color: #000;
  padding: 34px 0 28px;
  position: relative;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  white-space: nowrap;
}

.site-nav .active::after,
.site-nav a:hover::after,
.site-nav button:hover::after {
  content: "";
  height: 3px;
  width: 32px;
  background: var(--red);
  position: absolute;
  bottom: 20px;
  left: 0;
}

.phone-box {
  background: var(--red);
  color: #fff;
  min-height: 70px;
  min-width: 190px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-content: center;
  column-gap: 8px;
  padding: 13px 15px;
  box-shadow: 0 10px 18px rgba(161, 0, 1, .18);
  font-weight: 800;
}

.phone-box span {
  grid-row: 1 / span 2;
  font-size: 16px;
  align-self: center;
}

.phone-box a {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.28;
  white-space: nowrap;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--red);
  margin: 7px 0;
}

.hero {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 31%;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .8) 4%, rgba(255, 255, 255, 0) 12%),
    url('../assets/hero-karl-porsche.webp');

  --hero-x: center;
  --hero-y: 10%;
  background-position: var(--hero-x) var(--hero-y) !important;

  background-repeat: no-repeat;
  background-size: 810px auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 445px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1185px;
}

.eyebrow {
  color: var(--gold);
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--red);
  margin-top: 13px;
}

.hero h1 {
  font-size: clamp(34px, 4.15vw, 48px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  text-transform: uppercase;
  max-width: 395px;
}

.hero h1 span {
  color: var(--red);
}

.lead {
  max-width: 390px;
  margin: 0 0 24px;
  color: #222;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.button {
  min-height: 44px;
  min-width: 150px;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 14px rgba(161, 0, 1, .12);
}

.button-outline {
  background: #fff;
  color: var(--gold);
  border-color: var(--gold);
}

.button-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
  background: transparent;
}

.info-strip {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.info-grid {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
}

/* ==========================================================
   Info Strip
   Desktop/tablet keeps icon beside text
   ========================================================== */

.info-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 16px 32px 16px 0;
  border-right: 1px solid var(--gold-line);
  text-align: left;
}

.info-card:last-child {
  border-right: 0;
}

.info-card strong {
  display: block;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 900;
}

.info-card small {
  display: block;
  color: #1b1b1b;
  line-height: 1.25;
  margin-top: 3px;
}

.info-card {
  justify-content: center;
}

.info-card>div {
  min-width: 175px;
}

.info-icon {
  color: var(--red);
  font-size: 36px;
  line-height: 1;
  min-width: 45px;
  text-align: center;
  font-weight: 800;
}

.info-icon.social {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
}

.google-icon-main,
.google-icon-review,
.google-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-icon-main {
  width: 108px;
  height: 108px;
}

.google-icon-main img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.google-icon-review {
  width: 52px;
  height: 42px;
}

.google-icon-review img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}


.section-space {
  padding: 38px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 0 34px;
}

.section-heading span,
.mini-heading span {
  height: 1px;
  background: var(--gold-line);
}

.section-heading h2,
.mini-heading h2 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  font-weight: 900;
  letter-spacing: .02em;
}

.services {
  padding-top: 32px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  justify-content: center;
}

.service {
  text-align: center;
  padding: 10px 28px 20px;
  border-right: 1px solid var(--gold-line);
}

.service:last-child {
  border-right: 0;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  color: var(--red);
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon.arctick {
  width: 80px;
  height: auto;
  margin: 0 auto 10px;
}

.service-icon.arctick img {
  width: 60px;
  height: auto;
  margin: 0 auto;
}

.aircon-licence {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 220px;
  margin: 8px auto 18px;
  background: #16A9E6;
  border-radius: 6px;
  color: #fff !important;
  text-align: center;
  white-space: nowrap;
}

.aircon-licence span,
.aircon-licence strong {
  color: #fff !important;
}

.aircon-licence span {
  font-size: 14px;
  font-weight: 500;
}

.aircon-licence strong {
  font-size: 16px;
  font-weight: 900;
}

.service h3 {
  font-size: 18px;
  line-height: 1.18;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 900;
}

.service p {
  margin: 0 auto;
  max-width: 220px;
  font-size: 16px;
  line-height: 1.6;
  color: #191919;
}

.about {
  padding-top: 26px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr);
  gap: 60px;
  align-items: start;
}

.about-copy {
  max-width: 820px;
}

.about-copy h2 {
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

.about-copy p {
  color: #151515;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 26px;
}

.about-copy p a.ruf-link {
  color: #A10001;
  font-weight: 600;
}

.about-copy p a.ruf-link:hover,
.about-copy p a.ruf-link:focus {
  text-decoration: underline;
}

/* ==========================================================
   Quote Card + Porsche Heritage Transition
   (c) The Apps Brewery 2026. All Rights Reserved.
   ========================================================== */

.quote-card {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  margin: 28px 0 0;
  padding: 28px 300px 26px 70px;
  min-height: 180px;
  color: #111;
  background: #fff;
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  left: 25px;
  top: 18px;
  font-size: 50px;
  line-height: 1;
  color: var(--gold);
  font-weight: 900;
}

.quote-card p {
  font-size: 13px;
  font-style: italic;
  margin: 0 0 13px;
  max-width: 265px;
}

.quote-card cite {
  font-style: normal;
  font-size: 13px;
}

.quote-visual {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 150px;
  pointer-events: none;
}

.quote-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity .8s ease,
    transform .8s ease,
    filter .8s ease;
}

.quote-car {
  opacity: var(--car-opacity, 1);
  transform: scale(var(--car-scale, 1));
  filter: grayscale(100%);
}

.quote-ferdinand {
  opacity: var(--ferdinand-opacity, 0);
  transform: scale(var(--ferdinand-scale, 1));
  filter: grayscale(100%);
}

.mini-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 17px;
}

.mini-heading h2 {
  font-size: 18px;
}

.instagram-block {
  text-align: center;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.instagram-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  width: 100%;
  filter: saturate(.9) contrast(1.02);
}

.insta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 39px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  margin-top: 13px;
  border-radius: 4px;
}

.why-card {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  border-radius: 5px;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .07);
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('../assets/pepita-pattern.webp');
  background-repeat: repeat;
  background-size: 120px;

  opacity: 0.035;
  pointer-events: none;
}

.why-card>* {
  position: relative;
  z-index: 1;
}



.why-card h2 {
  margin: 0 0 24px;
  text-transform: uppercase;
  color: var(--red);
  font-size: 20px;
}

.why-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  margin: 0 0 25px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-item span {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 24px;
}

.why-item h3 {
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.why-item p {
  margin: 0;
  color: #202020;
  font-size: 14px;
}

.reviews {
  padding-top: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 5px;
  padding: 26px 24px 24px;
  position: relative;
  min-height: 136px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .045);
}

.stars {
  color: var(--red);
  letter-spacing: 4px;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 14px;
}

.review-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #111;
}

.review-card strong {
  font-size: 13px;
}

.review-g {
  position: absolute;
  right: 22px;
  bottom: 18px;
}

.cta-band {
  background: var(--red);
  color: #fff;
  margin-top: 8px;
}

.cta-grid {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-title>span {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.cta-title strong {
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1;
}

.cta-title small {
  display: block;
  font-size: 15px;
  margin-top: 3px;
}

.cta-grid a {
  font-weight: 900;
  font-size: 22px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .35);
  padding-left: 20px;
}

.site-footer {
  background: #fff;
  width: 100%;
  /* added 19-06-2026*/
}

.footer-grid {
  padding: 36px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr .78fr 1fr 1fr;
  gap: 45px;
  align-items: start;
}

.footer-brand img {
  width: 245px;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a,
.footer-grid button {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 7px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.site-footer h3 {
  text-transform: uppercase;
  color: var(--red);
  font-size: 14px;
  margin: 0 0 14px;
}


/* Social Row */
.social-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

/* Instagram */
.social-row a[aria-label="Instagram"] {
  font-size: 28px;
  line-height: 1;
  color: var(--red);
}

/* Facebook */
.social-row a[aria-label="Facebook"] {
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}

/* Google */
.google-icon-footer img {
  width: 56px !important;
  height: 56px !important;

  position: relative;
  max-width: none;
  object-fit: contain;
  top: 6px;
}



.copyright {
  width: 100%;
  min-height: 36px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.copyright span,
.copyright a,
.copyright .appsbrewery-link {
  color: #fff;
}

.copyright a,
.copyright .appsbrewery-link {
  display: inline;
  font: inherit;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .65);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.contact-modal,
.modal {
  background: #fff;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .35);
}

.contact-modal {
  width: min(720px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  padding: 30px;
}

.modal {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
}


.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  border: none;
  border-radius: 50%;

  background: var(--red);
  cursor: pointer;

  transition: transform .2s ease,
    background .2s ease;

  z-index: 100;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.modal-close:hover {
  background: #c50000;
  transform: scale(1.06);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(225, 6, 0, .25);
  outline-offset: 3px;
}



.contact-modal h2 {
  margin: 0 0 18px;
  font-size: 32px;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 4px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.honeypot {
  display: none !important;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.service-more {
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.service-more:hover,
.service-more:focus {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.modal-image {
  width: auto;
  max-width: 80%;
  max-height: 420px;
  margin: 24px auto;
  filter:
    drop-shadow(0 12px 20px rgba(0, 0, 0, .25)) drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
}

.modal-content {
  padding: 28px 32px 34px;
}

.modal-content h2 {
  margin: 0 0 18px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.15;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: #111;
}

.modal-bullets {
  margin: 16px 0;
  padding-left: 24px;
}

.modal-bullets li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal-content .button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
}

.gallery-mosaic {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 190px);
  grid-auto-columns: 340px;
  gap: 10px;
  transition: none;
  will-change: transform;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.gallery-tile:hover img {
  transform: scale(1.10);
  filter: brightness(1.05);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  display: none;
}

.gallery-slider.is-paused .gallery-arrow {
  display: block;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
  z-index: 5;
}

.gallery-caption h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.gallery-caption p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.gallery-pause {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  cursor: pointer;
  z-index: 100;
  font-size: 18px;
  font-weight: 700;
  transition: all .3s ease;
}

.gallery-pause:hover {
  background: var(--red);
}

.model-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  z-index: 9999;
}

.model-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.model-modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.model-close {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 20;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.model-tile {
  cursor: zoom-in;
}

.model-tile:hover img {
  transform: scale(1.14);
}

.model-tile::after {
  content: "3D";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(225, 6, 0, .95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  z-index: 20;
}

.model-tile:hover::after {
  content: "🔄 Interactive 3D Model";
}

.model-loading {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  z-index: 10;
}

.model-loading.hidden {
  display: none;
}


/* ==========================================================
   Hero Overlap Safety Fix
   Stacks the hero at 1240px before the text and image compete for space.
   This prevents overlap at in-between desktop/tablet widths.
   ========================================================== */

@media (max-width: 1240px) {

  .hero {
    min-height: auto;
    display: grid;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    left: auto;
    width: 100%;
    height: min(430px, 58vw);
    order: 1;

    --hero-x: center;
    --hero-y: 10%;
    background-position: var(--hero-x) var(--hero-y) !important;


    background-size: cover;
  }

  .hero-content {
    min-height: auto;
    padding: 36px 0 34px;
    order: 2;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
  }

  .lead {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

}


@media (max-width: 1080px) {
  .shell {
    width: min(100% - 36px, 960px);
  }

  .header-inner {
    grid-template-columns: 245px 1fr 132px;
    gap: 16px;
  }

  .brand img {
    width: 245px;
  }

  .site-nav {
    gap: 16px;
    font-size: 11px;
  }

  /* ==========================================================
   Mobile Navigation
   ========================================================== */

  /* .site-nav a {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 14px 0;
  } */

  .phone-box {
    padding: 10px;
  }

  .services-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .service {
    padding-inline: 14px;
  }

  .about-grid {
    gap: 24px;
  }


  /* ==========================================================
   Tablet / iPad Header & Navigation Fix
   Applies hamburger layout from 1080px down.
   This prevents old 10-inch iPads around 1024px wide
   from being stuck in a squeezed desktop header layout.
   ========================================================== */
  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    padding: 14px 0;
    font-size: 22px;
    text-align: center;
  }

  .site-nav .active::after,
  .site-nav a:hover::after,
  .site-nav button:hover::after {
    bottom: 5px;
    left: 50%;
    width: 42px;
    transform: translateX(-50%);
  }

  .phone-box {
    display: none;
  }
}



/* --------------------------------------------------  860px Width ----------------------------------*/

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 230px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    padding: 14px 0;
    font-size: 22px;
    text-align: center;
  }

  .site-nav .active::after,
  .site-nav a:hover::after,
  .site-nav button:hover::after {
    bottom: 5px;
    left: 50%;
    width: 42px;
    transform: translateX(-50%);
  }

  .phone-box {
    display: none;
  }

  .hero {
    min-height: auto;
    display: grid;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(380px, 67vw);
    order: 1;

    --hero-x: center;
    --hero-y: 10%;
    background-position: var(--hero-x) var(--hero-y) !important;

  }

  .hero-content {
    min-height: auto;
    padding: 30px 0 28px;
    order: 2;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 100%;
  }

  .lead {
    max-width: 590px;
    margin-left: auto;
    margin-right: auto;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .info-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    min-height: 165px;
    padding: 24px;
    text-align: left;

    border-right: 0;
    border-bottom: 1px solid var(--gold-line);
  }

  .info-card:nth-child(odd) {
    border-right: 1px solid var(--gold-line);
  }

  .info-card:nth-child(3),
  .info-card:nth-child(4) {
    border-bottom: 0;
  }

  .info-icon,
  .google-icon-main {
    flex: 0 0 auto;
    margin: 0;
  }

  .info-card>div {
    flex: 0 0 auto;
  }

  .info-card strong,
  .info-card small {
    text-align: left;
  }

  .services-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .service:nth-child(2n) {
    border-right: 0;
  }

  .service:last-child {
    grid-column: auto;
  }


  .about-grid,
  .review-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-grid {
    gap: 26px;
  }

  .about-copy,
  .why-card,
  .review-card {
    text-align: center;
  }

  .why-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cta-grid {
    gap: 14px;
    padding: 20px 0;
  }

  .cta-title {
    justify-content: center;
    text-align: center;
  }

  .cta-grid a {
    text-align: center;
    border-left: 0;
    padding-left: 0;
  }

  .cta-buttons {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons .button {
    width: 100%;
    max-width: 630px;
  }

  .footer-grid p,
  .footer-grid a,
  .footer-grid button {
    text-align: center;
  }

  .footer-brand img,
  .social-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .quote-card {
    padding-right: 70px;
  }

  .quote-visual {
    display: none;
  }



}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .shell {
    width: min(100% - 24px, 420px);
  }

  .brand img {
    width: 208px;
  }

  .hero-visual {
    height: min(430px, 92vw);
    --hero-x: center;
    --hero-y: 10%;
    background-position: var(--hero-x) var(--hero-y) !important;



    background-size: contain;
    background-color: #fff;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .info-grid,
  .services-row {
    grid-template-columns: 1fr;
  }

  .info-card,
  .info-card:nth-child(odd),
  .info-card:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;
    min-height: auto;
    padding: 28px 18px;

    text-align: center;
    border-right: 0;
    border-bottom: 1px solid var(--gold-line);
  }

  .info-card:last-child {
    border-bottom: 0;
  }

  .info-icon,
  .google-icon-main {
    margin: 0 auto;
    min-width: auto;
  }

  .info-card>div {
    flex: 0 1 auto;
    text-align: center;
  }

  .info-card strong,
  .info-card small {
    text-align: center;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 19px;
    text-align: center;
  }

  .service,
  .service:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 28px;
  }

  .service:last-child {
    border-bottom: 0;
  }

  .about-copy h2 {
    font-size: 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .quote-card {
    padding-left: 58px;
    padding-right: 26px;
  }

  .cta-title strong {
    font-size: 19px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-content {
    padding: 22px 20px 26px;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .modal-image {
    max-height: 240px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (hover: none) {

  .gallery-tile:hover,
  .gallery-tile:hover img,
  .model-tile:hover img {
    transform: none;
    box-shadow: none;
  }

  .model-tile::after {
    content: "3D";
  }
}

/* Modal final fixes */
.modal {
  width: min(600px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal-content .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 310px;
  margin: 35px auto 0;
}

.modal-content .modal-bullets,
.modal-content .modal-bullets li,
.modal-content .modal-bullets li strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #111;
}

.modal-content .modal-bullets li {
  margin-bottom: 16px;
  font-weight: 400;
}

.modal-content .modal-bullets li strong {
  font-weight: 700;
}

/* ==========================================================
   Instagram API Feed
   Azure Function: /api/instagram-feed
   ========================================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.instagram-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
  height: 190px;
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.instagram-card:hover img {
  transform: scale(1.06);
  filter: brightness(.92);
}

.instagram-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 44px;
  padding: 11px 14px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: linear-gradient(transparent,
      rgba(0, 0, 0, 0.82));

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85);
  text-align: center;
  z-index: 5;
}

.instagram-overlay span {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

.instagram-caption {
  display: none;
}

.instagram-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}


@media (max-width: 860px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-card {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-card {
    height: 160px;
  }

  .instagram-overlay {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
  }
}

/* ==========================================================
   Google Reviews Slider
   The Apps Brewery 18-Jun-2026
   ========================================================== */

.google-reviews-section {
  background: #fff;
}

.google-reviews-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  font-size: 14px;
  font-weight: 600;
}

.google-reviews-rating {
  color: var(--red);
  font-weight: 700;
}

.google-reviews-slider {
  position: relative;
  overflow: hidden;
}

.google-reviews-viewport {
  overflow: hidden;
  width: 100%;
}

.google-reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s ease;
  will-change: transform;
}

/* ==========================================================
   Review Card
   ========================================================== */

.google-review-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  min-height: 410px;
  padding: 38px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .045);
  display: flex;
  flex-direction: column;
}

.google-review-stars {
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.google-review-text {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: #111;
  margin: 0;
  flex-grow: 1;
}

.google-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-top: 28px;
}

.google-review-footer strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.google-review-footer small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #777;
}

/* ==========================================================
   Google Logo
   Fixes older .review-g absolute positioning
   ========================================================== */

.google-review-card .google-icon-review,
.google-review-card .review-g {
  position: static;
  right: auto;
  bottom: auto;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-review-card .google-icon-review img,
.google-review-card .review-g img {
  width: 44px;
  height: 44px;
  max-width: none;
  object-fit: contain;
  display: block;
}

/* ==========================================================
   Navigation Arrows
   ========================================================== */

.google-reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--red, #E10600);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  box-shadow: 0 4px 10px rgba(225, 6, 0, .20);
}

.google-reviews-arrow:hover {
  background: #b80000;
  transform: translateY(-50%) scale(1.08);
}

.google-reviews-prev {
  left: 12px;
}

.google-reviews-next {
  right: 12px;
}

/* ==========================================================
   Play / Pause Button
   ========================================================== */

.google-reviews-pause {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--red, #E10600);
  color: #fff;
  cursor: pointer;
  z-index: 21;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  box-shadow: 0 4px 10px rgba(225, 6, 0, .20);
}

.google-reviews-pause:hover {
  background: #b80000;
  transform: scale(1.08);
}


/* ==========================================================
   Status Message
   ========================================================== */

.google-reviews-status {
  width: 100%;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1080px) {

  .google-review-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 860px) {

  .google-review-card {
    flex: 0 0 100%;
    min-height: auto;
    padding: 30px;
  }

  .google-review-text {
    font-size: 14px;
  }

  .google-reviews-arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .google-reviews-pause {
    width: 34px;
    height: 34px;
    font-size: 12px;
    right: 10px;
    bottom: 10px;
  }

  .google-review-card .google-icon-review,
  .google-review-card .review-g {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .google-review-card .google-icon-review img,
  .google-review-card .review-g img {
    width: 38px;
    height: 38px;
  }

}

/* ==========================================================
   Service Page Styling   The Apps Brewery 18-Jun-2026
   ========================================================== */

.service-page-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-page-title {
  margin: 0 0 18px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

/* ==========================================================
   CTA Buttons
   The Apps Brewery 18-Jun-2026
   ========================================================== */
.cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cta-buttons .button {
  width: 170px;
  min-width: 170px;
  text-align: center;
  white-space: nowrap;
}

.review-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  white-space: nowrap;
  width: 100%;
}

/* Mobile */
@media (max-width: 860px) {

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-buttons .button,
  .cta-buttons .review-button {
    width: 100%;
  }
}


/* ==========================================================
   Service Card Button Alignment Fix
   The Apps Brewery 19-Jun-2026
   Keeps all Learn More buttons aligned at the bottom
   ========================================================== */

.services-row {
  align-items: stretch;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Removes manual <br> spacing before buttons inside service cards */
.service>br {
  display: none;
}

.service p {
  margin: 0 auto 24px;
  flex: 1;
}

.service-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 150px;
}

/* Keeps the ARCtick card tidy while still allowing bottom button alignment */
.service .aircon-licence {
  flex-shrink: 0;
}


/* ==========================================================
   Google Reviews Text Cut-Off Fix
   The Apps Brewery 19-Jun-2026
   Allows taller review cards and keeps reviewer details aligned
   ========================================================== */

.google-review-card {
  min-height: 500px;
  overflow: visible;
}

.google-review-text {
  flex: 1 1 auto;
  min-height: 250px;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.google-review-footer {
  margin-top: auto;
}

.google-reviews-viewport,
.google-reviews-slider {
  overflow: hidden;
}

/* Keep mobile cards natural height */
@media (max-width: 860px) {
  .google-review-card {
    min-height: auto;
  }

  .google-review-text {
    min-height: auto;
  }
}


/* ==========================================================
   Viewport Debug
   Remove when finished
   ========================================================== */

#viewport-debug {
  position: fixed;
  top: 10px;
  left: 10px;

  z-index: 999999;

  background: rgba(225, 6, 0, .92);
  color: #fff;

  padding: 8px 14px;
  border-radius: 6px;

  font: 700 14px/1.2 Arial, sans-serif;

  pointer-events: none;

  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}