/*
Theme Name: Derivatives Directions
Theme URI: https://derivativesdirections.com/
Author: Derivatives Directions
Description: A focused, responsive theme recreated from the original Squarespace design.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: derivatives-directions
*/

:root {
  --dd-ink: #0b1220;
  --dd-navy: #101d33;
  --dd-blue: #264b77;
  --dd-slate: #586473;
  --dd-line: #d9dee5;
  --dd-paper: #ffffff;
  --dd-soft: #f2f5f8;
  --dd-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dd-ink);
  background: var(--dd-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--dd-blue);
}

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

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--dd-ink);
  background: #fff;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 56px), var(--dd-max));
  min-height: 104px;
  margin: 0 auto;
  gap: 36px;
}

.site-branding a {
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-toggle span {
  margin: 5px 0;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 150px 28px 80px;
  overflow: hidden;
  color: #fff;
  background-color: var(--dd-navy);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 24, 0.62), rgba(5, 14, 29, 0.48));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-home {
  min-height: 100vh;
  background-position: center 48%;
}

.hero-home::before {
  background: linear-gradient(180deg, rgba(2, 9, 18, 0.58), rgba(3, 10, 21, 0.5));
}

.hero-home h1 {
  font-size: clamp(58px, 9vw, 122px);
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: 0.035em;
}

.page-content {
  width: min(calc(100% - 56px), 980px);
  padding: 86px 0 98px;
  margin: 0 auto;
}

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

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

.page-content p {
  margin: 0 0 1.45em;
}

.page-content h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.page-content h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 12px 0 0;
}

.service-card,
.market-card {
  padding: 34px;
  background: var(--dd-soft);
  border-top: 3px solid var(--dd-blue);
}

.service-card p,
.market-card p {
  margin: 0;
}

.market-card {
  min-height: 220px;
}

.contact-intro {
  max-width: 700px;
  margin-bottom: 42px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--dd-ink);
  background: #fff;
  border: 1px solid #aeb7c3;
  border-radius: 0;
  font: inherit;
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--dd-blue);
  outline: 2px solid rgba(38, 75, 119, 0.2);
  outline-offset: 1px;
}

.contact-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  color: #fff;
  background: var(--dd-navy);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-form button:hover,
.contact-form button:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--dd-blue);
}

.form-notice {
  padding: 15px 18px;
  margin: 0 0 28px;
  border-left: 4px solid var(--dd-blue);
  background: var(--dd-soft);
}

.form-notice-error {
  border-color: #9a2a2a;
}

.website-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #08111f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 56px), var(--dd-max));
  min-height: 110px;
  margin: 0 auto;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.not-found {
  min-height: 75vh;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100% - 36px), var(--dd-max));
    min-height: 86px;
  }

  .site-branding a {
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 22px;
    background: rgba(6, 15, 29, 0.97);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    padding: 12px 2px;
  }

  .primary-menu a::after {
    display: none;
  }

  .hero {
    min-height: 52vh;
    padding-top: 124px;
  }

  .hero-home {
    min-height: 100svh;
  }

  .page-content {
    width: min(calc(100% - 36px), 980px);
    padding: 62px 0 72px;
  }

  .service-grid,
  .market-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card,
  .market-card {
    min-height: auto;
    padding: 26px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: min(calc(100% - 36px), var(--dd-max));
    min-height: 130px;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
