/*
Theme Name: Olympic Systems
Theme URI: https://olympicsystems.co.uk
Author: Olympic Systems
Description: A premium maritime-inspired block theme for Olympic Systems.
Version: 1.0.14
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: olympic-systems
*/

:root {
  --os-navy: #0d182a;
  --os-navy-deep: #07111f;
  --os-gold: #c8a24a;
  --os-gold-soft: #e0bd62;
  --os-off-white: #f5f5f5;
  --os-slate: #2a3442;
  --os-steel: #5b6472;
  --os-card: #fbfaf6;
  --os-border: rgba(200, 162, 74, 0.38);
  --os-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --os-serif: Cinzel, Georgia, serif;
  --os-sans: Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--os-navy);
  color: var(--os-off-white);
  font-family: var(--os-sans);
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.os-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(200, 162, 74, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--os-navy) 0%, var(--os-navy-deep) 100%);
}

.os-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(200, 162, 74, 0.24);
  background: rgba(13, 24, 42, 0.88);
  backdrop-filter: blur(18px);
}

.os-header__inner,
.os-footer__inner,
.os-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.os-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 0;
}

.os-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.os-brand img {
  width: 150px;
  display: block;
}

.os-menu-toggle {
  display: none;
}

.os-submenu-toggle {
  display: none;
}

.os-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-nav li {
  position: relative;
}

.os-nav a {
  color: rgba(245, 245, 245, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.os-nav a:hover,
.os-nav .current-menu-item > a {
  color: var(--os-gold-soft);
}

.os-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  min-width: 210px;
  gap: 0;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 6px;
  padding: 18px 10px 10px;
  background:
    linear-gradient(rgba(7, 17, 31, 0), rgba(7, 17, 31, 0) 8px, rgba(7, 17, 31, 0.98) 8px),
    rgba(7, 17, 31, 0.98);
  box-shadow: var(--os-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.os-nav li:hover > .sub-menu,
.os-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
}

.os-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: rgba(245, 245, 245, 0.78);
  white-space: nowrap;
}

.os-nav .sub-menu a:hover {
  color: var(--os-gold-soft);
}

.os-content {
  padding: 34px 0 86px;
}

.os-footer {
  border-top: 1px solid var(--os-border);
  background: #07111f;
}

.os-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  padding: 58px 0;
}

.os-footer img {
  width: 210px;
  margin-bottom: 20px;
}

.os-footer h2 {
  margin: 0 0 16px;
  color: var(--os-gold);
  font-family: var(--os-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.os-footer p,
.os-footer li {
  margin: 0;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.92rem;
}

.os-footer a {
  color: rgba(245, 245, 245, 0.72);
  text-decoration: none;
}

.os-footer a:hover {
  color: var(--os-gold-soft);
}

.os-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-footer__bottom {
  border-top: 1px solid rgba(200, 162, 74, 0.22);
  color: rgba(245, 245, 245, 0.55);
  font-size: 0.78rem;
  padding: 18px 0;
  text-align: center;
}

.os-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.os-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--os-gold);
  padding: 12px 22px;
  color: var(--os-navy);
  background: linear-gradient(135deg, var(--os-gold), #e7c765);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.os-button--ghost {
  color: var(--os-off-white);
  background: transparent;
}

@media (max-width: 760px) {
  .os-header__inner {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    padding: 14px 0;
  }

  .os-brand img {
    width: 138px;
  }

  .os-menu-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid rgba(200, 162, 74, 0.5);
    border-radius: 6px;
    padding: 0;
    color: var(--os-gold);
    background: rgba(7, 17, 31, 0.38);
    cursor: pointer;
  }

  .os-menu-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .os-menu-toggle__bars,
  .os-menu-toggle__bars::before,
  .os-menu-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .os-menu-toggle__bars {
    position: relative;
  }

  .os-menu-toggle__bars::before,
  .os-menu-toggle__bars::after {
    position: absolute;
    left: 0;
  }

  .os-menu-toggle__bars::before {
    top: -7px;
  }

  .os-menu-toggle__bars::after {
    top: 7px;
  }

  .os-menu-toggle.is-open .os-menu-toggle__bars {
    transform: rotate(45deg);
  }

  .os-menu-toggle.is-open .os-menu-toggle__bars::before {
    opacity: 0;
  }

  .os-menu-toggle.is-open .os-menu-toggle__bars::after {
    transform: translateY(-7px) rotate(-90deg);
  }

  .os-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid rgba(200, 162, 74, 0.22);
    margin-top: 14px;
    padding-top: 18px;
  }

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

  .os-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .os-nav li {
    width: 100%;
  }

  .os-nav li:has(> .sub-menu) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .os-submenu-toggle {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: currentColor;
    background: transparent;
    cursor: pointer;
  }

  .os-submenu-toggle::before {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(-45deg);
    transition: transform 160ms ease;
  }

  .os-submenu-toggle.is-open::before {
    transform: translateY(-2px) rotate(45deg);
  }

  .os-nav .sub-menu {
    position: static;
    display: none;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 2px 0 0 22px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .os-nav .is-submenu-open > .sub-menu {
    display: grid;
  }

  .os-nav .sub-menu a {
    padding: 7px 0;
    color: rgba(245, 245, 245, 0.68);
    white-space: normal;
  }

  .os-footer__inner {
    grid-template-columns: 1fr;
  }
}

.os-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 78px) 0 clamp(54px, 8vw, 94px);
  text-align: center;
}

.os-hero__logo {
  display: none;
}

.os-deco-rule,
.os-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--os-gold);
}

.os-deco-rule::before,
.os-deco-rule::after,
.os-divider span {
  width: min(190px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--os-gold), transparent);
  content: "";
}

.os-hero h1,
.os-section h2,
.os-why h2,
.os-cta h2,
.os-contact-panel h2 {
  margin: 24px auto 18px;
  color: var(--os-off-white);
  font-family: var(--os-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.os-hero h1 {
  max-width: 920px;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.os-hero p {
  max-width: 790px;
  margin: 0 auto;
  color: rgba(245, 245, 245, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.os-section,
.os-why,
.os-cta,
.os-contact-panel,
.os-stats-strip {
  position: relative;
  margin: clamp(54px, 8vw, 92px) 0;
}

.os-content > :first-child {
  margin-top: 0;
}

.os-content > .os-why:first-child,
.os-content > .os-contact-panel:first-child {
  border-top: 0;
  padding-top: clamp(18px, 3vw, 34px);
}

.os-section__header {
  max-width: 790px;
  margin: 0 auto 36px;
  text-align: center;
}

.os-eyebrow,
.os-divider strong {
  margin: 0;
  color: var(--os-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.os-section h2,
.os-why h2,
.os-cta h2,
.os-contact-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

.os-section__header p:not(.os-eyebrow),
.os-why p,
.os-cta p,
.os-contact-panel p {
  color: rgba(245, 245, 245, 0.74);
}

.os-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.os-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.os-service-card,
.os-case-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, 0.18);
  border-radius: 6px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.9)),
    var(--os-card);
  color: var(--os-navy);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.os-service-card::before,
.os-case-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--os-gold), transparent);
  content: "";
}

.os-service-card h3,
.os-case-grid h3 {
  margin: 0 0 14px;
  color: var(--os-navy);
  font-family: var(--os-serif);
  font-size: 1.32rem;
  letter-spacing: 0.04em;
}

.os-service-card p,
.os-case-grid p {
  margin: 0;
  color: #263142;
}

.os-service-card small {
  display: block;
  margin-top: 18px;
  color: var(--os-steel);
  font-size: 0.84rem;
}

.os-service-card__link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--os-navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.os-service-card__link::after {
  margin-left: 10px;
  color: var(--os-gold);
  content: ">";
}

.os-why,
.os-contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-top: 1px solid var(--os-border);
  border-bottom: 1px solid var(--os-border);
  padding: clamp(38px, 6vw, 70px) 0;
}

.os-why ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.os-why li {
  border-left: 2px solid var(--os-gold);
  padding: 10px 0 10px 14px;
  color: var(--os-off-white);
  font-weight: 600;
}

.os-divider {
  margin: 48px 0;
}

.os-cta {
  overflow: hidden;
  border: 1px solid var(--os-border);
  border-radius: 6px;
  padding: clamp(36px, 6vw, 68px);
  background:
    linear-gradient(135deg, rgba(200, 162, 74, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  text-align: center;
}

.os-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-process li,
.os-stats-strip div {
  border-top: 1px solid var(--os-border);
  padding-top: 20px;
  color: rgba(245, 245, 245, 0.82);
  font-weight: 600;
}

.os-process span {
  display: block;
  margin-bottom: 14px;
  color: var(--os-gold);
  font-family: var(--os-serif);
  font-size: 1.6rem;
}

.os-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.os-stats-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--os-gold);
  font-family: var(--os-serif);
  font-size: 1.25rem;
}

.os-stats-strip span {
  color: rgba(245, 245, 245, 0.7);
  font-size: 0.92rem;
}

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

.os-capability-list li {
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 245, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
}

.os-capability-list a,
.os-case-grid a {
  color: inherit;
  text-decoration-color: var(--os-gold);
  text-underline-offset: 0.18em;
}

.os-editor-actions,
.os-editor-add {
  margin-top: 14px;
}

.os-editor-chip-remove {
  margin-left: 10px;
}

.os-contact-panel .os-button {
  justify-self: end;
}

@media (max-width: 900px) {
  .os-services-grid,
  .os-case-grid,
  .os-process,
  .os-stats-strip,
  .os-capability-list,
  .os-why,
  .os-contact-panel {
    grid-template-columns: 1fr;
  }

  .os-contact-panel .os-button {
    justify-self: start;
  }
}
