/* ==========================================================================
   Merkaba Holdings: Stylesheet
   --------------------------------------------------------------------------
   The easiest way to restyle the site is to change the variables in
   :root below. Every color and font on the page comes from these values.
   ========================================================================== */

/* ==========================================================================
   Clarendon (self-hosted)
   --------------------------------------------------------------------------
   Clarendon is a commercial typeface — it isn't available on Google Fonts,
   so it can't be linked from a free CDN. Once you own a license and have
   the font files, drop them in a "fonts" folder next to this stylesheet
   and uncomment the block below. See the README for where to buy it and
   exactly which files to add.
   ========================================================================== */

/*
@font-face {
  font-family: "Clarendon";
  src: url("../fonts/Clarendon-Regular.woff2") format("woff2"),
       url("../fonts/Clarendon-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarendon";
  src: url("../fonts/Clarendon-Bold.woff2") format("woff2"),
       url("../fonts/Clarendon-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* Colors */
  --color-bg:          #FBF7F1;  /* warm cream page background */
  --color-bg-tinted:   #F3EBDF;  /* slightly darker cream for alternating sections */
  --color-surface:     #FFFFFF;  /* cards */
  --color-text:        #2E2A25;  /* main text (warm charcoal) */
  --color-text-muted:  #6B6259;  /* secondary text */
  --color-primary:     #B9466A;  /* magenta accent (buttons, highlights) */
  --color-primary-rgb: 185, 70, 106;
  --color-primary-dark:#00133D;  /* deep navy for hover states */
  --color-secondary:   #001B56;  /* navy (headings, footer) */
  --color-secondary-rgb: 0, 27, 86;
  --color-accent:      #B89E65;  /* gold (decorative accents) */
  --color-border:      #E4D9C9;  /* subtle borders */

  /* Fonts
     True "Clarendon" is a commercial font — no browser has it built in, so
     it needs to be self-hosted (see the @font-face block above and the
     README) or loaded via Adobe Fonts before it will actually render.
     Until then, "Superclarendon" (Apple's close visual match, bundled
     with every Mac/iPhone/iPad) is used as a no-license-needed fallback,
     then a generic slab serif for everyone else. */
  --font-heading: "Clarendon", "Clarendon URW", "Clarendon Std", "Superclarendon", "Bookman Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Clarendon", "Clarendon URW", "Clarendon Std", "Superclarendon", "Bookman Old Style", Georgia, "Times New Roman", serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(46, 42, 37, 0.08);
  --header-height: 72px;
}

/* ==========================================================================
   Base styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* Keeps section titles from hiding under the sticky header when you click a nav link */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* Centered content column used by every section */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 800px; }

/* Small uppercase label above headings */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

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

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

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

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav a:hover { color: var(--color-primary); }

.site-nav .nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Hamburger button: hidden on desktop, shown on small screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 7rem 0 6rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(var(--color-primary-rgb), 0.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(var(--color-secondary-rgb), 0.10), transparent 40%),
    var(--color-bg);
}

.hero-inner { max-width: 820px; }

.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-mark merkaba-mark {
  border-radius: 50%;
  padding: 1.5rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Generic section styles
   ========================================================================== */

.section { padding: 5.5rem 0; }

.section-tinted { background: var(--color-bg-tinted); }

.section-heading {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-heading p:last-child { color: var(--color-text-muted); }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-facts {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.4rem;
}

.about-facts strong {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--color-secondary);
}

/* ==========================================================================
   Cards (For Owners section)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Criteria
   ========================================================================== */

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.criteria-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.criteria-list { margin: 0; }

.criteria-list div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.criteria-list div:last-child { border-bottom: none; }

.criteria-list dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.criteria-list dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
}

/* List with check marks, used in Criteria and Brokers sections */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.industries h3 { margin-bottom: 1rem; }

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-list li {
  background: var(--color-secondary);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
}

.small-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
}

.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.25rem;
}

/* Vertical line connecting the numbered circles */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  background: var(--color-border);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.step h3 { margin: 0.6rem 0 0.4rem; }

.step p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   Brokers
   ========================================================================== */

.brokers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.broker-card {
  background: var(--color-secondary);
  color: #F3EBDF;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.broker-card h3 { color: #fff; }

.broker-card .check-list li::before { color: var(--color-accent); }

/* ==========================================================================
   FAQ (uses built-in <details>/<summary>, so no JavaScript needed)
   ========================================================================== */

.faq-list details {
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.faq-list summary::-webkit-details-marker { display: none; }

/* The + / − sign on the right */
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  background: var(--color-primary);
  color: #fff;
}

.contact-inner { text-align: center; }

.contact-section h2 { color: #fff; }

.contact-section .eyebrow { color: var(--color-primary-dark); }

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-item {
  flex: 1 1 200px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.contact-item a {
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

/* Deep navy is unmistakably different from the white/ivory base link color
   (17:1 contrast against it) while still holding up against the magenta
   background (3.6:1) — the gold accent it replaced barely registered on
   either count. */
.contact-item a:hover { color: var(--color-primary-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-secondary);
  color: #D9D2C5;
  padding: 1.75rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-inner p { margin: 0; }

.site-footer a { color: #D9D2C5; }

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

/* ==========================================================================
   Responsive: tablets and phones
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid,
  .brokers-grid,
  .criteria-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo {
    max-width: 360px;
  }

  /* Switch nav to a dropdown menu */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem 1.25rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: none;
  }

  /* Animate hamburger into an X when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 1.05rem; }

  .hero { padding: 4.5rem 0 4rem; }

  .section { padding: 4rem 0; }

  .card,
  .criteria-box,
  .broker-card { padding: 1.5rem; }
}
