/*
  ABC Dubai Consulting
  Edit the palette here. Copy lives in index.html.
*/

:root {
  --ink: #0b1526;
  --ink-soft: #12243a;
  --paper: #f4efe6;
  --sand: #f6f1e8;
  --sand-dim: #d4cbbd;
  --gold: #c4a265;
  --gold-bright: #e0c48a;
  --bronze: #5c461c;
  --line: rgba(196, 162, 101, 0.42);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sand);
  background: var(--ink);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

address {
  font-style: normal;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 80;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1rem;
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
.footer-name,
.slogan,
.contact-email,
.reason-index,
.services li::before {
  font-family: var(--serif);
  font-weight: 500;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  color: var(--sand);
}

h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sand);
}

.dek,
.lede,
.prose,
.services p,
.reasons p {
  color: var(--sand-dim);
}

.dek,
.lede {
  font-size: 1.125rem;
  line-height: 1.6;
}

.section {
  padding: 4.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.dek {
  margin-top: 1rem;
  max-width: 38rem;
}

.prose {
  margin-top: 1.35rem;
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 21, 38, 0.94);
  border-bottom: 1px solid rgba(196, 162, 101, 0.28);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(11, 21, 38, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  min-width: 0;
  color: var(--sand);
  text-decoration: none;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.logo-abc {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
}

.logo-rest {
  color: var(--sand-dim);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  position: absolute;
  top: 1.1rem;
  right: 0.2rem;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 5.6rem;
  min-height: 44px;
  padding: 0.25rem 0;
  color: var(--sand);
  cursor: pointer;
  user-select: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--gold-bright);
  transform-origin: center;
}

.nav-button .close-label {
  display: none;
}

.nav-toggle:checked + .nav-button .open-label {
  display: none;
}

.nav-toggle:checked + .nav-button .close-label {
  display: inline;
}

.nav-toggle:checked + .nav-button .burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle:checked + .nav-button .burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-button .burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  flex-direction: column;
  margin: 0;
  padding: 0.35rem 1rem 0.5rem;
  background: #101d31;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav-toggle:checked ~ .nav-menu {
  display: flex;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 162, 101, 0.2);
}

.nav-menu li:last-child a {
  border-bottom: 0;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--gold-bright);
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background:
    radial-gradient(ellipse 75% 50% at 100% -10%, rgba(196, 162, 101, 0.16), transparent 55%),
    var(--ink);
}

.hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.75rem;
  padding-bottom: 1.75rem;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.55rem, 6.4vw, 4.75rem);
  line-height: 0.98;
  color: var(--sand);
}

.slogan {
  margin-top: 1.1rem;
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--gold-bright);
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.35rem 0 1.15rem;
  border: 0;
  background: var(--gold);
}

.lede {
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.button:hover {
  background: var(--gold-bright);
}

.button:focus-visible {
  outline-color: var(--sand);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sand);
  text-decoration: underline;
  text-decoration-color: rgba(224, 196, 138, 0.75);
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: var(--gold-bright);
}

.skyline {
  margin-top: auto;
}

.skyline svg {
  width: 100%;
  height: auto;
}

/* About */

.about-grid {
  display: grid;
  gap: 2.25rem;
}

.about-aside {
  border-top: 1px solid var(--line);
}

.about-aside div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 162, 101, 0.22);
}

.about-aside dt {
  margin-bottom: 0.28rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-aside dd {
  color: var(--sand);
}

/* Services */

.services {
  border-bottom: 1px solid var(--line);
  counter-reset: service;
}

.services li {
  display: grid;
  gap: 0.45rem 1rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
  counter-increment: service;
}

.services li::before {
  content: counter(service, decimal-leading-zero);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1.2;
}

.services p {
  max-width: 58ch;
}

/* Why us */

.reasons {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.reasons li {
  background: var(--ink);
  padding: 1.35rem 1.15rem 1.5rem;
}

.reason-index {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
}

.reasons h3 {
  margin-bottom: 0.45rem;
}

/* Contact */

.contact {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.contact h2,
.contact .contact-email {
  color: var(--ink);
}

.contact .eyebrow {
  color: var(--bronze);
}

.contact .dek {
  color: #243044;
}

.contact::before,
.contact::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-color: var(--bronze);
  border-style: solid;
  pointer-events: none;
}

.contact::before {
  top: 0.85rem;
  left: 0.85rem;
  border-width: 1px 0 0 1px;
}

.contact::after {
  right: 0.85rem;
  bottom: 0.85rem;
  border-width: 0 1px 1px 0;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-label {
  margin-bottom: 0.35rem;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--bronze);
}

.contact .button {
  margin-top: 1.35rem;
  background: var(--ink);
  color: var(--sand);
}

.contact .button:hover {
  background: #1c3554;
}

.contact :focus-visible {
  outline-color: var(--ink);
}

/* Footer */

.site-footer {
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  gap: 1.6rem;
  padding-top: 2.75rem;
}

.footer-name {
  font-size: 1.55rem;
  line-height: 1.15;
}

.footer-slogan {
  margin-top: 0.4rem;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sand-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-email a {
  color: var(--sand);
  text-decoration: underline;
  text-decoration-color: rgba(224, 196, 138, 0.75);
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.footer-email a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding: 1.15rem 0 1.6rem;
  border-top: 1px solid rgba(196, 162, 101, 0.22);
  color: var(--sand-dim);
  font-size: 0.92rem;
}

@media (max-width: 22rem) {
  .logo-abc {
    letter-spacing: 0.1em;
  }

  .logo-rest {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 30rem) {
  .hero-actions,
  .contact .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .text-link {
    justify-content: center;
  }
}

@media (min-width: 40rem) {
  .wrap {
    width: min(1120px, calc(100% - 4rem));
  }

  .services li {
    grid-template-columns: 3.25rem 1fr;
    align-items: start;
    column-gap: 1.25rem;
  }

  .services li::before {
    grid-row: 1 / span 2;
  }

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

@media (max-width: 39.99rem) {
  .skyline {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 7.75rem;
    overflow: hidden;
  }

  .skyline svg {
    flex: none;
    width: 140%;
    max-width: none;
    height: auto;
  }
}

@media (min-width: 64rem) {
  .section {
    padding: 6.5rem 0;
  }

  .nav-toggle,
  .nav-button {
    display: none;
  }

  .site-nav {
    flex: 1;
    justify-content: flex-end;
    gap: 1.35rem;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 0;
    border-bottom: 0;
    color: var(--sand-dim);
  }

  .header-cta {
    display: inline-flex;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    gap: 4rem;
    align-items: start;
  }

  .about-aside {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }

  .services li {
    grid-template-columns: 4.5rem minmax(14rem, 0.85fr) 1.35fr;
    column-gap: 1.5rem;
    align-items: baseline;
  }

  .services li::before {
    grid-row: auto;
  }

  .reasons {
    grid-template-columns: repeat(4, 1fr);
  }

  .reasons li {
    padding: 1.6rem 1.25rem 1.75rem;
  }

  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: start;
    gap: 2rem;
    padding-top: 3.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .burger span,
  .button,
  .header-cta,
  .button .arrow {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
  }

  .button:hover .arrow {
    transform: translateX(3px);
  }
}
