/* ============================================================
   AION FRAMING — Shared Stylesheet
   Brand: AION Art Gallery Inc.
   Colors: #BA0C2F red · #D0D0D0 grey · #000 black · #fff white
   Font: Barlow (Google Fonts)
   ============================================================ */

:root {
  --aion-red: #BA0C2F;
  --aion-red-dark: #8c0922;
  --aion-grey: #D0D0D0;
  --aion-grey-light: #f4f4f4;
  --aion-grey-mid: #9a9a9a;
  --aion-black: #111111;
  --aion-white: #ffffff;
  --maxw: 1200px;
  --gap: 5px;
}

/* ============================================================
   BACKGROUND IMAGES — frame sample closeups
   ------------------------------------------------------------
   1. Make a folder called  images  next to your html files.
   2. Put a photo in it, e.g.  images/hero.jpg
   3. Set the matching filename below.
   Leave a value as  none  to keep that section solid black.
   A dark tint sits on top automatically, so white text stays
   readable over any photo.
   ============================================================ */
:root {
  --hero-img:   url('images/hero.jpg');     /* big banner on the Home page   */
  --banner-img: url('images/banner.jpg');   /* header strip on inner pages   */
  --dark-img:   url('images/stats.jpg');    /* the dark numbers band         */
  --footer-img: none;                       /* set to url('images/footer.jpg') if wanted */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--aion-black);
  background: var(--aion-white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { font-size: 1.05rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--grey { background: var(--aion-grey-light); }
.section--dark {
  background-color: var(--aion-black);
  background-image:
    linear-gradient(rgba(10,10,10,0.82), rgba(10,10,10,0.82)),
    var(--dark-img);
  background-size: cover;
  background-position: center;
  color: var(--aion-white);
}
.section--red { background: var(--aion-red); color: var(--aion-white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--aion-red);
  margin-bottom: 14px;
}
.section--dark .eyebrow,
.section--red .eyebrow { color: var(--aion-white); opacity: 0.85; }

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid var(--aion-red);
  background: var(--aion-red);
  color: var(--aion-white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--aion-red-dark); border-color: var(--aion-red-dark); }

.btn--outline {
  background: transparent;
  color: var(--aion-red);
}
.btn--outline:hover { background: var(--aion-red); color: var(--aion-white); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--aion-white);
  color: var(--aion-white);
}
.btn--ghost-light:hover { background: var(--aion-white); color: var(--aion-red); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--aion-white);
  border-bottom: 1px solid #e6e6e6;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.brand .brand-mark {
  color: var(--aion-red);
  font-weight: 800;
}
.brand .brand-sub {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--aion-grey-mid);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--aion-red); }
.nav-links a.active { color: var(--aion-red); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--aion-red);
}
.nav-cta { padding: 10px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--aion-black);
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--aion-black);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  color: var(--aion-white);
  position: relative;
  overflow: hidden;
}
/* optional looping video, revealed by script.js once it has loaded */
.hero-media {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* dark tint sits above photo and video so the headline stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,0.92) 28%, rgba(10,10,10,0.55) 100%);
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 55%; height: 140%;
  background: var(--aion-red);
  transform: skewX(-12deg);
  opacity: 0.5;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 120px;
  max-width: 720px;
}
.hero h1 { margin-bottom: 22px; }
.hero p { font-size: 1.3rem; font-weight: 300; margin-bottom: 34px; max-width: 560px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  background-color: var(--aion-black);
  background-image:
    linear-gradient(100deg, rgba(10,10,10,0.9) 30%, rgba(10,10,10,0.6) 100%),
    var(--banner-img);
  background-size: cover;
  background-position: center;
  color: var(--aion-white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 6px;
  background: var(--aion-red);
}
.page-banner h1 { margin-bottom: 12px; }
.page-banner p { color: var(--aion-grey); font-weight: 300; font-size: 1.2rem; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--aion-white);
  border: 1px solid #e6e6e6;
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}
.card .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--aion-red);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: #555; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: #555; font-size: 1.1rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split .split-media {
  background: var(--aion-grey);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aion-grey-mid);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center; }
.stat { padding: 40px 16px; }
.stat .num { font-size: 2.8rem; font-weight: 800; color: var(--aion-red); line-height: 1; }
.section--dark .stat .num,
.section--red .stat .num { color: var(--aion-white); }
.stat .label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-top: 10px; opacity: 0.8; }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--aion-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aion-grey-mid);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--aion-red);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover::after { opacity: 0.12; }

/* ---------- About: three-up image row ---------- */
.about-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); max-width: 820px; margin: 0 auto; }
.about-trio figure { position: relative; margin: 0; overflow: hidden; background: var(--aion-grey); }
.about-trio img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.about-trio figure:hover img { transform: scale(1.04); }
.about-trio figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0) 100%);
  color: var(--aion-white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}
.about-trio figcaption::before {
  content: ""; display: inline-block;
  width: 22px; height: 3px; background: var(--aion-red);
  margin-right: 10px; vertical-align: middle;
}
@media (max-width: 760px) { .about-trio { grid-template-columns: 1fr; } }

/* ---------- Video tiles (vertical, three in a row) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.video-tile {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--aion-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aion-grey-mid);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  overflow: hidden;
}
.video-tile .play-hint {
  display: flex; align-items: center; gap: 10px;
}
.video-tile .play-hint::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--aion-red);
}
/* the real video, hidden until script.js confirms it has loaded */
.tile-media {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;     /* vertical clips fill the portrait tile cleanly */
  background: #000;
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 1.15rem; font-weight: 300; margin-bottom: 30px; opacity: 0.95; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step .step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--aion-red);
  color: var(--aion-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.96rem; color: #555; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--aion-black);
  background-image:
    linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.92)),
    var(--footer-img);
  background-size: cover;
  background-position: center;
  color: var(--aion-grey);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--aion-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.site-footer a:hover { color: var(--aion-white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: 0.96rem; }
.footer-brand .brand { color: var(--aion-white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.96rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--aion-grey-mid);
}

/* ---------- Contact rows ---------- */
.contact-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-row .ic {
  width: 44px; height: 44px; flex: 0 0 44px;
  background: var(--aion-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; border-radius: 6px; font-size: 1.1rem;
}
.contact-row h4 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-row a { color: var(--aion-red); font-weight: 600; }
.contact-row span { color: #555; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--aion-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid #e6e6e6;
    transform: translateY(-130%);
    transition: transform .28s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .steps, .stats, .gallery-grid { grid-template-columns: 1fr; }
  .stats, .gallery-grid { gap: var(--gap); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 70px 0 80px; }
  .hero::before { width: 100%; opacity: 0.18; }
}

/* ---------- Job enquiry form ---------- */
.frm { display: grid; gap: 16px; }
.frm .field { display: grid; gap: 6px; }
.frm .field.row2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.frm label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--aion-black); }
.frm input,
.frm select,
.frm textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--aion-black);
  background: var(--aion-white);
  border: 1px solid var(--aion-grey);
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
}
.frm textarea { min-height: 120px; resize: vertical; }
.frm input:focus,
.frm select:focus,
.frm textarea:focus {
  outline: none;
  border-color: var(--aion-red);
  box-shadow: 0 0 0 2px rgba(186, 12, 47, 0.15);
}
.frm .hp { position: absolute; left: -9999px; }
.frm .form-note { font-size: 0.82rem; color: var(--aion-grey-mid); }
.frm button { margin-top: 4px; }
@media (max-width: 760px) {
  .frm .field.row2 { grid-template-columns: 1fr; }
}


/* ---------- Gallery tiles as clickable albums ---------- */
button.gallery-item {
  border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  cursor: pointer; width: 100%;
}
.gallery-item > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-item .album-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: var(--aion-red); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.gallery-item .album-count::before {
  content: ""; width: 11px; height: 11px; border: 2px solid #fff;
  border-radius: 2px; box-shadow: 3px 3px 0 -1px var(--aion-red), 4px 4px 0 -1px #fff;
}
/* expand hint on hover */
.gallery-item::before {
  content: "\2922"; /* diagonal expand arrows */
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; opacity: 0;
  transition: opacity .25s ease; pointer-events: none;
}
.gallery-item:hover::before { opacity: 0.95; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,10,0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-img {
  max-width: 90vw; max-height: 86vh; object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.08);
  color: #fff; border: 0; cursor: pointer;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 2rem; line-height: 1; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lb-btn:hover { background: var(--aion-red); }
.lb-close { top: 24px; right: 24px; font-size: 1.8rem; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9rem; letter-spacing: 0.08em;
  background: rgba(0,0,0,0.4); padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 600px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-btn { width: 46px; height: 46px; font-size: 1.6rem; }
}


/* ---------- Service card image header ---------- */
.card { overflow: hidden; }
.card .card-media {
  margin: -34px -30px 22px;     /* pull image to the card's top + side edges */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--aion-grey);
}
.card .card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card .card-media + .num { margin-top: 0; }


/* ---------- Logos ---------- */
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 42px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo img { height: 32px; } }
.address-logo { height: 210px; width: auto; display: block; margin-bottom: 26px; }

/* ---------- Inverted button (solid white, red text) for red bands ---------- */
.btn--invert {
  background: var(--aion-white);
  color: var(--aion-red);
  border-color: var(--aion-white);
}
.btn--invert:hover { background: var(--aion-grey-light); border-color: var(--aion-grey-light); color: var(--aion-red-dark); }
