/* Shop L9 – Shared Styles – Matching shopl9.com */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

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

:root {
  --black: #1a1a1a;
  --dark: #222222;
  --dark-surface: #2a2a2a;
  --dark-border: #3a3a3a;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --light-border: #e4e4e4;
  --accent: #4a7c59;
  --accent-hover: #3d6a4b;
  --accent-light: rgba(74,124,89,0.08);
  --text-primary: #272727;
  --text-body: #555555;
  --text-on-dark: #e8e8e8;
  --text-muted-dark: #aaaaaa;
  --green: #4a7c59;
  --radius: 4px;
  --radius-lg: 6px;
  --max-w: 1140px;
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* ── Header ── */
.sl9-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
  position: sticky; top: 0; z-index: 100;
}
.sl9-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.sl9-logo img {
  height: 50px;
  width: auto;
}

.sl9-nav { display: flex; align-items: center; gap: 0; }
.sl9-nav-item {
  position: relative;
}
.sl9-nav-item > a,
.sl9-nav > a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  text-decoration: none;
}
.sl9-nav-item > a:hover,
.sl9-nav > a:hover { color: var(--accent); text-decoration: none; }
.sl9-nav > a.active { color: var(--accent); }
.sl9-nav-item > a svg { width: 12px; height: 12px; transition: transform 0.2s; }

/* Dropdown */
.sl9-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
}
.sl9-nav-item:hover .sl9-dropdown { display: block; }
.sl9-nav-item:hover > a svg { transform: rotate(180deg); }
.sl9-dropdown a {
  display: block;
  padding: 8px 20px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sl9-dropdown a:hover { background: var(--off-white); color: var(--accent); text-decoration: none; }
.sl9-dropdown a.active { color: var(--accent); font-weight: 500; }

.sl9-nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  margin-left: 8px;
}
.sl9-nav-cta:hover { background: var(--accent-hover) !important; text-decoration: none !important; }

/* Mobile nav */
.sl9-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 8px;
}
.sl9-menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .sl9-header-inner { height: 64px; }
  .sl9-logo img { height: 38px; }
  .sl9-menu-btn { display: block; }
  .sl9-nav {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid var(--light-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    gap: 0;
  }
  .sl9-nav.open { display: flex; }
  .sl9-nav-item > a, .sl9-nav > a { width: 100%; padding: 12px 0; }
  .sl9-dropdown {
    position: static; box-shadow: none; border: none;
    padding: 0 0 0 16px; display: block;
  }
  .sl9-nav-cta { margin-left: 0; margin-top: 12px; text-align: center; display: block !important; }
}

/* ── Hero ── */
.sl9-hero {
  background: linear-gradient(135deg, #1b2838 0%, #1a3a4a 40%, #1d3b3a 70%, #253040 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sl9-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,124,89,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(59,140,180,0.1) 0%, transparent 55%);
}
.sl9-hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.sl9-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 20px;
}
.sl9-hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.sl9-hero h1 strong { font-weight: 700; }
.sl9-hero p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted-dark);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.sl9-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.sl9-btn:hover { text-decoration: none; }
.sl9-btn-primary {
  background: var(--accent);
  color: var(--white);
}
.sl9-btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.sl9-btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.sl9-btn-outline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── Breadcrumb ── */
.sl9-breadcrumb {
  padding: 16px 24px;
  max-width: var(--max-w); margin: 0 auto;
}
.sl9-breadcrumb ol {
  list-style: none; display: flex; gap: 8px;
  align-items: center; flex-wrap: wrap;
}
.sl9-breadcrumb li { font-size: 13px; color: var(--text-body); }
.sl9-breadcrumb li + li::before {
  content: '›'; margin-right: 8px; color: #ccc;
}
.sl9-breadcrumb a { color: var(--text-body); text-decoration: none; }
.sl9-breadcrumb a:hover { color: var(--accent); }

/* ── Section Layout ── */
.sl9-section {
  padding: 60px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.sl9-section--alt {
  background: var(--off-white);
}
.sl9-section--full {
  max-width: none;
  background: var(--off-white);
}
.sl9-section--full .sl9-section-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.sl9-section-header {
  margin-bottom: 36px;
}
.sl9-section-header h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.sl9-section-header p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Solink Badge ── */
.sl9-compat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: rgba(74,124,89,0.1);
  color: var(--green);
  font-size: 12px; font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sl9-compat-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
}

/* ── Camera Model Cards ── */
.sl9-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.sl9-model-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.25s;
}
.sl9-model-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.sl9-model-card h3 {
  font-size: 17px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sl9-model-card .sl9-model-type {
  font-size: 13px; color: var(--accent);
  font-weight: 500; margin-bottom: 12px;
}
.sl9-model-card p {
  font-size: 14px; color: var(--text-body);
  line-height: 1.6;
}
.sl9-model-card .sl9-model-specs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}
.sl9-model-card .sl9-spec-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 3px;
}

/* ── Info Cards ── */
.sl9-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.sl9-info-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--light-border);
}
.sl9-info-card h3 {
  font-size: 16px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sl9-info-card p {
  font-size: 14px; color: var(--text-body);
  line-height: 1.6;
}

/* ── FAQ Accordion ── */
.sl9-faq-list { display: flex; flex-direction: column; gap: 0; }
.sl9-faq-item {
  border-bottom: 1px solid var(--light-border);
  background: transparent;
}
.sl9-faq-item:first-child { border-top: 1px solid var(--light-border); }
.sl9-faq-q {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  background: none; border: none;
  font-family: var(--font);
  font-size: 16px; font-weight: 500;
  color: var(--text-primary);
  cursor: pointer; text-align: left;
  transition: color 0.15s;
}
.sl9-faq-q:hover { color: var(--accent); }
.sl9-faq-q svg {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--text-body);
  transition: transform 0.25s ease;
}
.sl9-faq-item.open .sl9-faq-q svg { transform: rotate(180deg); }
.sl9-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.sl9-faq-item.open .sl9-faq-a { max-height: 600px; }
.sl9-faq-a-inner {
  padding: 0 0 20px;
  font-size: 15px; color: var(--text-body);
  line-height: 1.7;
}

/* ── Form Styles ── */
.sl9-form { max-width: 560px; }
.sl9-form-row { margin-bottom: 20px; }
.sl9-form-row label {
  display: block; font-size: 14px;
  font-weight: 500; margin-bottom: 6px;
  color: var(--text-primary);
}
.sl9-form-row label .req { color: #c0392b; }
.sl9-form-row input,
.sl9-form-row select,
.sl9-form-row textarea {
  width: 100%; padding: 11px 14px;
  font-family: var(--font); font-size: 15px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s;
  outline: none;
}
.sl9-form-row input:focus,
.sl9-form-row select:focus,
.sl9-form-row textarea:focus {
  border-color: var(--accent);
}
.sl9-form-row textarea { resize: vertical; min-height: 100px; }
.sl9-form-row input::placeholder,
.sl9-form-row textarea::placeholder { color: #b0b0b0; }
.sl9-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .sl9-form-grid { grid-template-columns: 1fr; }
}

/* ── CTA Banner ── */
.sl9-cta-banner {
  background: linear-gradient(135deg, #1b2838 0%, #1a3a4a 40%, #1d3b3a 70%, #253040 100%);
  padding: 56px 24px;
  text-align: center;
}
.sl9-cta-banner-inner {
  max-width: 600px; margin: 0 auto;
}
.sl9-cta-banner h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600; color: var(--white);
  margin-bottom: 12px;
}
.sl9-cta-banner p {
  font-size: 15px; color: var(--text-muted-dark);
  margin-bottom: 28px; line-height: 1.7;
}

/* ── Prose ── */
.sl9-prose { max-width: 720px; }
.sl9-prose h2 {
  font-size: 22px; font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}
.sl9-prose h2:first-child { margin-top: 0; }
.sl9-prose p {
  font-size: 15px; color: var(--text-body);
  margin-bottom: 16px; line-height: 1.8;
}
.sl9-prose ul {
  padding-left: 20px; margin-bottom: 16px;
}
.sl9-prose li {
  font-size: 15px; color: var(--text-body);
  margin-bottom: 6px; line-height: 1.7;
}
.sl9-prose strong { color: var(--text-primary); font-weight: 600; }

/* ── Footer ── */
.sl9-footer {
  background: var(--dark);
  padding: 56px 24px 0;
}
.sl9-footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 640px) {
  .sl9-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.sl9-footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.sl9-footer p {
  font-size: 14px; color: var(--text-muted-dark);
  line-height: 1.7;
}
.sl9-footer-logo {
  height: 40px; width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.sl9-footer-links {
  list-style: none; display: flex;
  flex-direction: column; gap: 10px;
}
.sl9-footer-links a {
  font-size: 14px; color: var(--text-muted-dark);
  transition: color 0.2s; text-decoration: none;
}
.sl9-footer-links a:hover { color: var(--white); text-decoration: none; }
.sl9-footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--dark-border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.sl9-footer-bottom p {
  font-size: 13px; color: var(--text-muted-dark);
}
.sl9-footer-bottom a { color: var(--accent); text-decoration: none; }
.sl9-footer-bottom a:hover { text-decoration: underline; }

/* Primary nav CTA button styling lives in header-cta.css (loaded site-wide). */

/* ─────────────────────────────────────────────────────────────
 * WPForms — match Shop L9 design (Account Request page)
 * ───────────────────────────────────────────────────────────── */
body.shopl9-page .wpforms-container { max-width: 560px; }
body.shopl9-page .wpforms-container .wpforms-field {
  margin-bottom: 20px !important;
  padding: 0 !important;
}
body.shopl9-page .wpforms-container .wpforms-field-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  margin-bottom: 6px !important;
}
body.shopl9-page .wpforms-container input[type="text"],
body.shopl9-page .wpforms-container input[type="email"],
body.shopl9-page .wpforms-container input[type="tel"],
body.shopl9-page .wpforms-container input[type="number"],
body.shopl9-page .wpforms-container select,
body.shopl9-page .wpforms-container textarea {
  padding: 11px 14px !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  border: 1px solid var(--light-border) !important;
  border-radius: var(--radius) !important;
  background: var(--white) !important;
  color: var(--text-primary) !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
  height: auto !important;
}
body.shopl9-page .wpforms-container input:focus,
body.shopl9-page .wpforms-container select:focus,
body.shopl9-page .wpforms-container textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}
body.shopl9-page .wpforms-container textarea {
  min-height: 100px;
  resize: vertical;
}
body.shopl9-page .wpforms-submit {
  background: var(--accent) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 13px 30px !important;
  border-radius: var(--radius) !important;
  border: none !important;
  cursor: pointer;
}
body.shopl9-page .wpforms-submit:hover { background: var(--accent-hover) !important; }
body.shopl9-page .wpforms-required-label { color: #c0392b !important; }
/* Name field First/Last layout. Three WPForms-classic rules fight a clean
   two-column layout and must be overridden:
   1. `.wpforms-field-row.wpforms-field-medium` caps the row at max-width:60%.
   2. `.wpforms-one-half` floats each block at calc(50% - 10px) with margins.
   3. `.wpforms-field-row::before/::after` are clearfix pseudo-elements with
      display:table — under `display:grid` they become grid ITEMS, so the grid
      holds 4 cells (::before, First, Last, ::after) and staircases the inputs.
   Hiding the pseudo-elements is the key fix; the rest restores full width. */
body.shopl9-page .wpforms-field-name .wpforms-field-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 100% !important;
}
body.shopl9-page .wpforms-field-name .wpforms-field-row::before,
body.shopl9-page .wpforms-field-name .wpforms-field-row::after {
  display: none !important;
}
body.shopl9-page .wpforms-field-name .wpforms-field-row-block,
body.shopl9-page .wpforms-field-name .wpforms-one-half {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 560px) {
  body.shopl9-page .wpforms-field-name .wpforms-field-row {
    grid-template-columns: 1fr;
  }
}
