/* TradePlotter.com — static site styles. No JavaScript anywhere by design;
   the mobile nav and dropdowns below are pure-CSS (checkbox hack + :focus-within). */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Poppins:wght@500;600;700;800&family=Roboto:wght@400;500&display=swap');

:root {
  --bg: #0b1220;
  --bg-alt: #111a2c;
  --panel: #16223a;
  --panel-2: #1b2a45;
  --border: #24324d;
  --text: #e8edf6;
  --text-dim: #9fb0c9;
  --accent: #35d68f;
  --accent-dark: #1fae70;
  --accent-2: #4d8dff;
  --max-width: 1140px;
  --radius: 14px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-eyebrow: 'Barlow Condensed', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: #fff; }
p { margin: 0 0 1em; color: var(--text-dim); }
ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-dim); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .5em;
  display: block;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  background: var(--accent);
  color: #06140d;
  border: 2px solid var(--accent);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header / Nav (pure CSS, no JS) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; }
.brand-logo { height: 42px; width: auto; display: block; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 32px; height: 24px;
  position: relative;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-label span { top: 11px; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover, .main-nav .current > a { color: var(--accent); }

.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin-top: 12px;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
/* Invisible bridge over the margin-top gap so hover doesn't drop while
   the pointer crosses from the nav link down to the dropdown. */
.has-dropdown > .dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: flex; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.dropdown a:hover { background: var(--panel-2); }

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav > ul > li { border-top: 1px solid var(--border); }
  .main-nav > ul > li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 12px 0; }
  .has-dropdown > .dropdown {
    position: static;
    transform: none;
    display: flex;
    margin: 0 0 8px;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 12px;
  }
  .dropdown a { padding: 8px 0; }
  .nav-toggle:checked ~ .main-nav { max-height: 800px; }
  .nav-toggle:checked ~ .nav-toggle-label span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(90deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(53,214,143,.15), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; max-width: 55ch; }
.hero.hero-photo { padding: 0; border-bottom: none; }
.hero-photo .hero-photo-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 24px;
}
.hero-photo img { border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 860px) {
  .hero-photo .hero-photo-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-photo img { order: -1; }
}

/* Page hero (inner pages): eyebrow breadcrumb + title, no photo */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.breadcrumb { font-size: .85rem; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* ---------- Sections / grids ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.about-gallery img { border-radius: 10px; border: 1px solid var(--border); aspect-ratio: 4 / 3; object-fit: cover; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3, .card h4 { color: #fff; }
.card p:last-child { margin-bottom: 0; }

.tile-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: #06140d;
}

/* Feature grid tiles (rich-features / plot-your-trade landing pages) */
.feature-tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--panel);
  background-image: linear-gradient(160deg, var(--panel-2), var(--panel));
  background-size: cover;
  background-position: center;
  padding: 32px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.feature-tile.has-photo { background-image: var(--photo); }
.feature-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(11,18,32,.1) 20%, rgba(11,18,32,.94) 92%);
}
.feature-tile h3 { position: relative; margin-bottom: 6px; font-size: 1.15rem; }
.feature-tile .more { position: relative; font-size: .85rem; font-weight: 600; color: var(--accent); }
.feature-tile:hover { border-color: var(--accent); }

/* Photo CTA banner (homepage section headers) */
.cta-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(11,18,32,.05) 20%, rgba(11,18,32,.9) 90%);
}
.cta-banner .banner-content { position: relative; max-width: 460px; }
.cta-banner h3 { font-size: 1.6rem; margin-bottom: 14px; }

/* Two-column feature detail template (12 subpages) */
.feature-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.feature-detail .visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 320px;
  background: linear-gradient(145deg, var(--panel-2), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feature-detail .visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-detail .visual .glyph {
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem;
  color: var(--accent); opacity: .8;
}
.feature-detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
@media (max-width: 820px) {
  .feature-detail { grid-template-columns: 1fr; }
  .feature-detail .visual { min-height: 220px; }
}

/* Pricing / product cards */
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card .price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: #fff; }
.price-card .price span { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.price-card .btn { align-self: flex-start; margin-top: 10px; }

/* Product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-hero img { border-radius: var(--radius); border: 1px solid var(--border); }
.product-hero .price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
@media (max-width: 820px) { .product-hero { grid-template-columns: 1fr; } .product-hero img { order: -1; } }

/* CTA band */
.cta-band { padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border); }
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-card .email-btn { font-size: 1.15rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(.4) invert(.92) contrast(.9); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.copyright { color: var(--text-dim); font-size: .85rem; }

/* Bullet list styling for set-your-parameters */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
