/*
  OzeAuMusic — style.css
  Last Updated: 04 September 2025
  Version: 25.09.13
  Author: Colin Dixon • col@oze.au
*/

/* -------------------------------------------------------
   0) Reset
   ------------------------------------------------------- */
:where(*, *::before, *::after) {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}

/* -------------------------------------------------------
   1) Theme Tokens (Dark default)
   ------------------------------------------------------- */
:root {
  --bg: #0b1220; /* deep ocean */
  --fg: #e5eaf3; /* text on dark */
  --muted: #a7b0c0;

  /* Unified glass palette */
  --glass-fill: rgba(15, 23, 42, 0.35);
  --glass-fill-strong: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.18);

  --link: #cbd5ff;
  --primary: #2563eb;
  --primary-strong: #1e40af;

  --pill-bg: rgba(15, 23, 42, 0.28);
  --pill-border: rgba(255, 255, 255, 0.28);

  --btn-bg: rgba(15, 23, 42, 0.35);
  --btn-fg: #e2e8f0;
  --btn-border: rgba(255, 255, 255, 0.35);

  --blur: 6px;
  --shadow-1: 0 8px 26px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 10px 26px rgba(0, 0, 0, 0.2);

  --ink-color: #86b7ff;
  --ink-height: 2px;
  --ink-offset: 0.07em;

  /* Watermark controls */
  --wm-size: min(88vw, 1200px);
  --wm-x: 50%;
  --wm-y: 18%;
  --wm-opacity: 0.8;
}
html {
  background: var(--bg);
  color: var(--fg);
}

html[data-theme="light"] {
  --bg: #e6e9f0;
  --fg: #1a263a;
  --muted: #334155;

  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.14);

  --link: #1e40af;

  --pill-bg: rgba(255, 255, 255, 0.7);
  --pill-border: rgba(15, 23, 42, 0.12);

  --btn-bg: rgba(255, 255, 255, 0.85);
  --btn-fg: #0f172a;
  --btn-border: rgba(15, 23, 42, 0.18);
}

/* -------------------------------------------------------
   2) Typography & Links
   ------------------------------------------------------- */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
p {
  margin: 0 0 0.8rem;
  color: var(--fg);
}

a {
  color: var(--link);
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease;
}
a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--ink-offset));
  height: var(--ink-height);
  background: var(--ink-color);
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  pointer-events: none;
}
a:hover,
a:focus-visible {
  color: currentColor;
  transform: translateY(-1px);
}
a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------
   3) Layout
   ------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* -------------------------------------------------------
   4) Pills
   ------------------------------------------------------- */
.pill {
  position: fixed;
  top: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 1rem;
  border-radius: 9999px;
  background: var(--pill-bg);
  color: var(--fg);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-1);
}
.pill-left {
  left: 14px;
}
.pill-right {
  right: 14px;
}
.pill__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.pill__label {
  font-size: 0.95rem;
  font-weight: 600;
}
.pill-primary {
  background: var(--primary-strong);
  color: #fff;
  border-color: transparent;
}

/* -------------------------------------------------------
   5) Masthead — portrait + hero, with logo watermark
   ------------------------------------------------------- */
.masthead {
  position: relative;
  min-height: clamp(520px, 62vw, 780px);
  padding: clamp(6rem, 12vw, 9rem) 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  z-index: 0;
}

/* Portrait */
.masthead__portrait-wrap {
  grid-column: 1;
  justify-self: center;
  align-self: start;
  width: clamp(260px, 28vw, 420px);
  padding: 0; /* no padding */
  background: transparent; /* no box background */
  border: none; /* no border */
  box-shadow: none; /* no shadow */
}

.masthead__portrait-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: var(--glass-fill-strong);
}
.masthead__colin {
  width: 100%;
  border-radius: 16px;
}

/* Logo watermark under portrait */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("/images/logo.webp");
  background-repeat: no-repeat;
  background-size: var(--wm-size) auto;
  background-position: var(--wm-x) var(--wm-y);
  opacity: var(--wm-opacity);
  filter: saturate(0.8) contrast(0.95);
}

/* Hero card */
.hero-card {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 3vw, 24px);
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 22px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  color: var(--fg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  background: var(--glass-fill-strong);
}
.hero-card .lead {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Mobile collapse */
@media (max-width: 980px) {
  .masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .masthead__portrait-wrap {
    grid-column: 1;
    justify-self: center;
  }
  .masthead__right {
    grid-column: 1;
    width: 100%;
  }
  .hero-card {
    margin-top: clamp(12px, 4vw, 20px);
  }
}

/* -------------------------------------------------------
   6) Glass Cards
   ------------------------------------------------------- */
.glass-card {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
  color: var(--fg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.glass-card--transparent {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

/* Intro text sizing */
section[aria-label="Intro"] p {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: 550;
}

/* -------------------------------------------------------
   7) Feature Grid
   ------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  margin-top: 1rem;
}
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: var(--glass-fill-strong);
}

/* -------------------------------------------------------
   8) Buttons
   ------------------------------------------------------- */
.btn,
.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover,
.button:hover {
  transform: translateY(-1px);
}
.btn-primary,
.button-solid,
.button-primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

html[data-theme="dark"] .button-solid,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .button-primary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
html[data-theme="dark"] .feature-card .button-solid {
  background: #1e40af;
  color: #fff;
  border-color: #1c3a99;
}

/* -------------------------------------------------------
   9) Footer
   ------------------------------------------------------- */
.site-footer-oz {
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-radius: 18px;
  text-align: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow-2);
  color: var(--fg);
}
.site-footer-oz nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-icons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-icons svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.site-footer-oz .copyright {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* -------------------------------------------------------
   10) Modals
   ------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 70;
}
.modal[hidden] {
  display: none;
}
.modal-frame {
  max-width: 720px;
  width: min(92vw, 720px);
  margin: 2rem;
}
.modal-content {
  position: relative;
  padding: 1rem;
}
.modal-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--fg);
  cursor: pointer;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.form-group {
  margin: 0.75rem 0;
}
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--fg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.enquiry-output {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  border-radius: 12px;
  white-space: pre-wrap;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* -------------------------------------------------------
   11) Utilities
   ------------------------------------------------------- */
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}
