/* ============================================================
   AHA NSW — Australian Hotels Association
   Static rebuild. Brand palette: #b4282d red / #000 / #fff
   ============================================================ */

:root {
  --red: #b4282d;
  --red-dark: #921f24;
  --black: #000;
  --ink: #212529;
  --muted: rgba(0, 0, 0, 0.5);
  --grey: #f6f6f6;
  --border: rgba(0, 0, 0, 0.08);
  --max: 1140px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 15px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

.btn-secondary:hover {
  background: var(--red);
  color: #fff;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.title-area {
  flex: 0 0 auto;
}

.title-area .custom-logo {
  width: 165px;
}

.title-area .site-title,
.title-area .site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.topbar .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar .menu a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--red);
}

.topbar .btn-secondary a {
  background: #fff;
  color: var(--red);
}

.topbar .btn-primary a {
  background: var(--red);
  color: #fff;
}

.topbar .btn-primary a:hover {
  background: var(--red-dark);
  color: #fff;
}

/* Primary nav */
.nav-primary {
  background: var(--red);
}

.nav-primary .menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary .menu > li > a {
  display: block;
  padding: 1rem 1.35rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-primary .menu > li > a:hover,
.nav-primary .menu > li.current-menu-item > a {
  background: var(--red-dark);
  color: #fff;
}

.nav-primary .menu > li.menu-home > a {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* Search toggle */
.menu-search a {
  cursor: pointer;
}

.site-search-wrap {
  display: none;
  background: var(--red);
  padding-bottom: 1rem;
}

.site-search-wrap.open {
  display: block;
}

.site-search-dropdown {
  padding-top: 0.5rem;
}

.search-form {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
}

.search-form-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 0;
  font-size: 1rem;
}

.search-form-submit {
  padding: 0 1.4rem;
  background: var(--red-dark);
  color: #fff;
  border: 0;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   Home hero
   ============================================================ */
.home-hero-section {
  margin-top: 1.5rem;
}

.home-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #000;
}

.home-hero .front,
.home-hero .back {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.home-hero .front {
  z-index: 2;
  display: flex;
  align-items: center;
}

.home-hero-overlay {
  background-color: var(--red);
  background-blend-mode: multiply;
}

.home-hero-title {
  padding: 0 3rem;
}

.home-hero-title h1 {
  color: #fff;
  font-size: 2.6rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
  max-width: 800px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* corner bevel */
.corner-bottom-left .front::after,
.corner-top-left .front::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-style: solid;
  border-width: 0 0 0 0;
}

.corner-bevel {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
}

.corner-top-left .corner-bevel {
  top: 0;
  left: 0;
  border-top: 45px solid #fff;
  border-right: 45px solid transparent;
}

.corner-bottom-left .corner-bevel {
  bottom: 0;
  left: 0;
  border-bottom: 45px solid #fff;
  border-right: 45px solid transparent;
}

/* ============================================================
   Card tiles
   ============================================================ */
.section-tiles {
  margin: 1rem auto 1.5rem;
}

.tiles-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card-tile {
  position: relative;
  height: 300px;
  background: #000;
  overflow: hidden;
}

.card-tile a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  transition: background-color 0.3s;
}

.card-tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s;
}

.card-tile a:hover::after {
  background: rgba(180, 40, 45, 0.45);
}

.card-tile .h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   Sections
   ============================================================ */
.section-title {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.section-title h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red);
}

.section-sponsor {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.ad-group {
  margin-bottom: 2rem;
}

.ad-group h3 {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.ad-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.ad-grid .ad {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.1);
  background: #fff;
}

.ad-grid .ad img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.ad-grid.large .ad img {
  max-height: 110px;
}

.ad-grid.banner {
  flex-direction: column;
}

.ad-grid.banner .ad {
  width: 100%;
}

.ad-grid.banner .ad img {
  max-height: none;
  width: 100%;
}

.see-all {
  text-align: center;
  margin-top: 1rem;
}

/* Panels / benefits ----------------------------------------- */
.section-panels {
  padding: 1rem 0 2.5rem;
}

.panel-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.panel {
  border-top: 4px solid var(--red);
  background: var(--grey);
  padding: 2rem;
}

.panel h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.panel ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.panel ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
}

.panel ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.panel .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Contact section ------------------------------------------- */
.section-contact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: var(--grey);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.contact-col h4 {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.contact-col p {
  margin-bottom: 0.25rem;
}

.contact-col a {
  color: var(--red);
}

/* Page content ---------------------------------------------- */
.page-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-content .lead {
  font-size: 1.15rem;
  color: rgba(0, 0, 0, 0.7);
}

.page-content h2 {
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  font-size: 1.5rem;
}

.page-content h3 {
  margin-top: 1.5rem;
}

.page-content ul {
  padding-left: 1.2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: #111;
  color: #fff;
  padding: 3rem 0 1.5rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pattern-prism.png") repeat 0 0;
  opacity: 0.06;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 2rem;
}

.footer-item h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-item ul li {
  margin-bottom: 0.5rem;
}

.footer-item ul a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-item ul a:hover {
  color: #fff;
}

.footer-logo img {
  width: 140px;
  margin-left: auto;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .home-hero-title h1 {
    font-size: 2rem;
  }

  .tiles-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

  .footer-logo img {
    margin: 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    align-items: center;
    gap: 1rem;
  }

  .title-area .custom-logo {
    width: 130px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
  }

  .header-right {
    margin-left: 0;
    order: 3;
    flex: 1 0 100%;
  }

  .topbar .menu {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav-primary .menu {
    display: none;
    flex-direction: column;
  }

  .nav-primary .menu.open {
    display: flex;
  }

  .nav-primary .menu > li > a {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .home-hero {
    height: 250px;
  }

  .home-hero-title {
    padding: 0 2rem;
  }

  .home-hero-title h1 {
    font-size: 1.6rem;
  }

  .tiles-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-tile {
    height: 220px;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-grid .ad {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .home-hero {
    height: 200px;
  }

  .home-hero-title {
    padding: 0 1.25rem;
  }

  .home-hero-title h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .topbar .menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}