/* ==========================================================================
   Zinzo Properties
   Static rebuild of the Joomla / Gantry "Radiance" template.
   Colours, type and spacing carried over from the original template CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --accent: #fff500;          /* template accent, sampled from the arc graphic */
  --bg: #000000;
  --header-bg: #1f1a17;       /* sampled from the top of the arc graphic */
  --text: #ffffff;
  --panel: rgba(0, 0, 0, 0.8);  /* original #rt-container-bg */
  --overlay: rgba(0, 0, 0, 0.65); /* original showcase / top bar overlay */
  --check: #74924a;           /* "green" checkmark list */
  --rule: rgba(255, 255, 255, 0.12);

  --container: 940px;
  --gutter: 20px;
  --sidebar: 220px;

  --font: Helvetica, Arial, FreeSans, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.7 var(--font);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

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

a:hover,
a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p { margin: 0 0 1.2em; }

h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: normal;
  margin: 0 0 0.6em;
}

table { border-collapse: collapse; }

.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Page background
   The original used a single 1200x800 composite pinned to the top of the page.
   It is split here so the arc and the cityscape can scale independently.
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Everything below the header. The cityscape is anchored to the top of this
   wrapper so it always starts exactly where the header ends. */
.page-body { position: relative; }

.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 608px;
  background: url(../img/hero-city.jpg) 50% 0 / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Left / right fades, matching the original 150px .grad-left / .grad-right */
.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
}

.page-bg::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.page-bg::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.page-body > *:not(.page-bg) {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. Header, logo and arc
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--header-bg);
}

.site-header__inner {
  text-align: center;
  padding: 8px 0 0;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  width: 275px;
  height: auto;
}

/* The arc graphic. Stretched to the full viewport width; the curve reads
   correctly at any aspect because it is a simple sweep. */
.site-header__arc {
  position: relative;
  height: 8vw;
  min-height: 52px;
  max-height: 96px;
  background: url(../img/hero-arc.png) 50% 100% / 100% 100% no-repeat;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

/* Sits on the dark header bar beside the logo, not on the arc, so it stays
   legible at every width. Shown only below the nav breakpoint. */
.nav-toggle {
  display: none;
  position: absolute;
  top: 14px;
  right: var(--gutter);
  z-index: 30;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font: inherit;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.16); }

.main-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li { position: relative; }

.main-nav a {
  display: block;
  padding: 4px 12px;
  color: #000;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: -0.2px;
  text-decoration: none;
  border-radius: 3px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(0, 0, 0, 0.14);
  text-decoration: none;
}

.main-nav .is-active > a { background: rgba(0, 0, 0, 0.2); }

/* Dropdown */
.main-nav .has-sub > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 4px 0;
  margin-top: 4px;
  background: var(--overlay);
  border-radius: 0 0 4px 4px;
  z-index: 5;
}

.main-nav .has-sub:hover > ul,
.main-nav .has-sub:focus-within > ul { display: block; }

.main-nav .has-sub > ul li { width: 100%; }

.main-nav .has-sub > ul a {
  color: var(--accent);
  font-weight: normal;
  text-align: left;
  padding: 6px 14px;
  border-radius: 0;
}

.main-nav .has-sub > ul a:hover { background: rgba(255, 255, 255, 0.1); }

/* --------------------------------------------------------------------------
   6. Showcase rotator
   -------------------------------------------------------------------------- */

.showcase {
  margin-bottom: 15px;
  padding-top: 30px;
}

.rotator {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotator__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s;
  text-align: center;
}

.rotator__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Original .rotator-line2: 92px / 90px, -2px tracking, bold, heavy shadow */
.rotator__title {
  margin: 0;
  font-size: clamp(30px, 7.6vw, 92px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: bold;
  color: #fff;
  text-shadow: 4px 2px 5px rgba(0, 0, 0, 0.6);
}

.rotator__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--overlay);
}

.rotator__tabs button {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 16px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s;
}

.rotator__tabs button:hover { background: rgba(255, 255, 255, 0.1); }

.rotator__tabs [aria-selected="true"] { background: rgba(255, 255, 255, 0.18); }

/* --------------------------------------------------------------------------
   7. Main layout
   -------------------------------------------------------------------------- */

/* The dark panel is container-width, not full-bleed, so the cityscape stays
   visible down each side exactly as in the original #rt-container-bg. */
.body-surround { margin-bottom: 10px; }

.body-surround > .container {
  background: var(--panel);
  padding-top: 10px;
  padding-bottom: 1px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--gutter);
  align-items: start;
}

/* --------------------------------------------------------------------------
   8. Article / main column
   -------------------------------------------------------------------------- */

.article {
  background: var(--bg);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.article :last-child { margin-bottom: 0; }

/* Yellow ribbon title, bleeding out of the panel on the left as in the
   original .component-content .module-title */
.article__title {
  position: relative;
  margin: -25px -25px 20px -35px;
  padding: 12px 25px;
  background: var(--accent);
  color: #000;
  font-size: 26px;
  letter-spacing: -1px;
}

/* Folded corner under the ribbon */
.article__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid var(--accent);
  border-left: 10px solid transparent;
  opacity: 0.4;
}

.article h2 {
  font-size: 18px;
  color: var(--accent);
  margin-top: 1.6em;
}

.article strong { color: #fff; }

/* --------------------------------------------------------------------------
   9. Content tabs (homepage)
   -------------------------------------------------------------------------- */

.content-tabs { margin-bottom: 20px; }

.content-tabs__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-tabs__list button {
  padding: 12px 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.content-tabs__list button:hover { background: rgba(255, 255, 255, 0.16); }

.content-tabs__list [aria-selected="true"] {
  background: var(--bg);
  color: var(--accent);
}

.content-tabs__panel {
  background: var(--bg);
  padding: 25px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.content-tabs__panel[hidden] { display: none; }

.content-tabs__panel > :last-child { margin-bottom: 0; }

.content-tabs__panel strong { color: #fff; }

/* --------------------------------------------------------------------------
   10. Successful deals grid (was a nested table)
   -------------------------------------------------------------------------- */

.deals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deals figure {
  margin: 0;
  text-align: center;
}

.deals img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 150;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deals figcaption {
  margin-top: 8px;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Sidebar
   -------------------------------------------------------------------------- */

.sidebar { display: grid; gap: 20px; }

.module { position: relative; }

.module__title,
.module-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 21px;
  letter-spacing: -1px;
  color: #fff;
}

/* Gantry wrapped the first word of every module title in a span and
   coloured it with the accent. Reproduced statically in the markup. */
.module__title span,
.module-title span { color: var(--accent); }

.module__content > :last-child { margin-bottom: 0; }

.module img { max-width: 100%; }

/* Displayed at 220px in the original. Capped so it does not blow up when the
   sidebar stacks into a wider column on tablet. */
.module .contact-portrait {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
}

/* Checkmark list */
.checkmark {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkmark li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 8px;
  font-size: 14px;
}

.checkmark li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--check);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 30px 0 10px;
  border-top: 1px solid var(--rule);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.site-footer__cols > div > :last-child { margin-bottom: 0; }

.social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social img {
  width: 60px;
  height: 60px;
}

.social a:hover { opacity: 0.8; }

/* Copyright bar */
.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0 24px;
  font-size: 12px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
}

.to-top::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18) url(../img/to-top.png) 50% 45% / 10px auto no-repeat;
  flex: none;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

/* Tablet: sidebar drops below the main column */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .rotator { min-height: 150px; }
}

/* Nav collapses to a toggle. Below this width the arc is too shallow to
   carry the menu, so it becomes a decorative divider only. */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    background: var(--header-bg);
    border-top: 2px solid var(--accent);
    z-index: 20;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    display: block;
    gap: 0;
  }

  .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .main-nav a {
    color: var(--accent);
    text-align: left;
    padding: 13px var(--gutter);
    border-radius: 0;
  }

  .main-nav .is-active > a { background: rgba(255, 255, 255, 0.06); }

  /* Sub-menu always visible in the stacked panel */
  .main-nav .has-sub > ul {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
  }

  .main-nav .has-sub > ul a { padding-left: 36px; }

  .site-header__arc { min-height: 90px; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }

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

  .site-footer__cols { grid-template-columns: 1fr; gap: 26px; }

  .article,
  .content-tabs__panel { padding: 20px; }

  .article__title {
    margin: -20px -20px 20px -20px;
    padding: 11px 20px;
    font-size: 22px;
  }

  .content-tabs__list { display: grid; grid-template-columns: 1fr; }

  .content-tabs__list button { text-align: left; }

  .page-bg { height: 420px; }
}

/* Five tabs cannot share one row on a phone; lay them out two-up. */
@media (max-width: 600px) {
  .rotator__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .rotator__tabs button {
    font-size: 13px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .rotator__tabs button:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .sidebar { grid-template-columns: 1fr; }

  .deals { grid-template-columns: 1fr; }

  .rotator { min-height: 110px; }

  .copyright { justify-content: flex-start; }

  .page-bg { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .rotator__slide { transition: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .page-bg,
  .showcase,
  .site-header__arc,
  .nav-toggle,
  .to-top { display: none; }

  body { background: #fff; color: #000; font-size: 12px; }

  .body-surround,
  .article,
  .content-tabs__panel { background: none; box-shadow: none; }

  a { color: #000; }
}
