/*
  brand.css — supplemental to tailwind.config.js
  Handles the few Style Guide elements that don't map cleanly to
  Tailwind utility classes. Referenced from partials/_includes.ascx
  and partials/_includes-popUpSkin.ascx as dist/styles/brand.css —
  copy this file into your dist/styles/ build output folder.
*/

/* Hero / cover gradient (Cover section) */
.sfw-hero {
  background: linear-gradient(135deg, #1B1613 60%, #2A160C 100%);
}

/* ── Header logo (_header.ascx: <div class="sfw-logo"><dnn:LOGO .../></div>) ──
   This class did not exist before — the <img> DNN's LOGO control renders
   had no size constraint at all, so it displayed at the uploaded file's
   raw pixel dimensions ("original size"). Constrained here to a height
   that reads as large as the single-line nav bar beside it, scaling up
   at wider viewports. Width is intentionally unset so the image keeps
   its own aspect ratio — change only the height values below to resize. */
.sfw-logo img {
  height: 80px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .sfw-logo img { height: 280px; }
}

/* Growth-Ring Arc — subtle circular motif, ~8% opacity copper-dark */
.sfw-growth-ring {
  position: relative;
  overflow: hidden;
}
.sfw-growth-ring::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 60px solid #8A5426;
  opacity: 0.08;
  pointer-events: none;
}

/* Badge (Brand Identity | Version chip) */
.sfw-badge {
  display: inline-block;
  background: #C97C3D;
  color: #14100D;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
}

/* Copper checkmark circle — feature/benefit bullets, min 18px */
.sfw-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #C97C3D;
  color: #EDE4D6;
  font-size: 11px;
  flex-shrink: 0;
}

/* Vertical accent bar — left edge of feature/callout blocks */
.sfw-accent-bar {
  border-left: 4px solid #C97C3D;
  padding-left: 14px;
}

/* ── Header nav (DDR Menu output wrapped in <nav class="sfw-nav">) ──
   Top-level list only — was previously unscoped, which caught nested
   submenu <ul> elements too, so a child page list (e.g. Classes >
   SalemFine Agile Academy / Woodworking & CNC Classes) fell into the
   same horizontal flex row instead of behaving as a dropdown. That's
   what widened the "Classes" column once it gained a second child. */
.sfw-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.sfw-nav li {
  position: relative;
}
.sfw-nav a {
  color: #8A7857;      /* taupe-mid */
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.sfw-nav a:hover,
.sfw-nav a.active {
  color: #C97C3D;      /* copper */
}

/* Dropdown submenu — hidden until the parent item is hovered/focused,
   detached from the row via absolute positioning so it never widens
   the top-level layout no matter how many children it has. */
.sfw-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 220px;
  background: #241D18;
  border: 1px solid #443A30;
  border-radius: 6px;
  padding: 8px 0;
  z-index: 50;
  list-style: none;
  margin: 0;
}
.sfw-nav li ul a {
  white-space: nowrap;
  display: block;
  padding: 8px 16px;
}
.sfw-nav li:hover > ul,
.sfw-nav li:focus-within > ul {
  display: flex;
}

/* ── Light variant (use on <body class="theme-light"> for signage/print/email) ── */
.theme-light {
  background: #F5F0E8;
  color: #1B1613;
}
.theme-light .bg-walnut,
.theme-light .sfw-card {
  background: #FFFDF9;
}
.theme-light .text-taupe-light {
  color: #5C5044;
}
.theme-light .text-copper {
  color: #A8632D;
}
.theme-light .text-sage {
  color: #57694F;
}
.theme-light .border-copper {
  border-color: #A8632D;
}

/* ══════════════════════════════════════════════════════════════
   RadEditor content-safe classes.
   Tailwind only generates utility CSS for classes found in the
   build's scanned source files — content saved in a DNN HTML
   module (RadEditor) is never scanned, so arbitrary-value
   Tailwind classes (bg-[#...], h-[...px], text-[#...]) written
   directly into module content silently produce NO CSS. Anything
   used inside RadEditor content must be a real, hand-written
   class defined here instead.
   ══════════════════════════════════════════════════════════════ */

/* Video embed frame — fixed height, independent of column width */
.sfw-video-frame {
  width: 100%;
  height: 420px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #443A30;
}
.sfw-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (min-width: 768px) {
  .sfw-video-frame { height: 600px; }
}

/* Price / spec table — dark rows, cream/taupe text, copper header */
.sfw-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sfw-price-table thead tr { background: #C97C3D; }
.sfw-price-table thead th {
  color: #14100D;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
}
.sfw-price-table tbody tr:nth-child(odd)  { background: #241D18; }
.sfw-price-table tbody tr:nth-child(even) { background: #2E251E; }
.sfw-price-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #3A2F26;
  color: #C7B9A8;
  vertical-align: top;
}
.sfw-price-table tbody td:first-child {
  color: #EDE4D6;
  font-weight: 600;
}
.sfw-table-wrap { margin-bottom: 48px; }

/* Hero block — padding, radius, bottom border (pairs with .sfw-hero / .sfw-growth-ring) */
.sfw-hero-block {
  border-radius: 6px;
  padding: 56px 24px;
  border-bottom: 3px solid #C97C3D;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .sfw-hero-block { padding: 80px 48px; }
}

/* Hero headline / subhead / divider / intro copy */
.sfw-h1 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 32px;
  line-height: 1.15;
  color: #EDE4D6;
  margin-top: 20px;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .sfw-h1 { font-size: 48px; }
}
.sfw-h1-accent { color: #7C9473; }

.sfw-subhead {
  color: #7C9473;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .sfw-subhead { font-size: 20px; }
}

.sfw-divider {
  border: 0;
  border-top: 2px solid #C97C3D;
  max-width: 420px;
  margin-bottom: 20px;
}

.sfw-intro {
  color: #C7B9A8;
  font-size: 14px;
  max-width: 600px;
}
@media (min-width: 768px) {
  .sfw-intro { font-size: 16px; }
}

/* Feature bullets — 3-across grid */
.sfw-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .sfw-bullets { grid-template-columns: repeat(3, 1fr); }
}
.sfw-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sfw-bullet p {
  color: #C7B9A8;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.sfw-bullet b {
  color: #EDE4D6;
  font-weight: 600;
}

/* Section title (used above video / tables) */
.sfw-section-title {
  color: #EDE4D6;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* CTA button group */
.sfw-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.sfw-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
}
.sfw-btn-copper { background: #C97C3D; color: #14100D; }
.sfw-btn-copper:hover { background: #8A5426; }
.sfw-btn-sage { background: #7C9473; color: #14100D; }
.sfw-btn-sage:hover { background: #57694F; }

.sfw-note {
  color: #8A7857;
  font-size: 12px;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════
   Footer panes (FooterPaneA–D, one sfw-footer-pane module in each).
   Panes sit on the site's existing dark footer background — no
   hero/gradient classes here, just content styling.
   ══════════════════════════════════════════════════════════════ */

/* Container in _footer.ascx wrapping FooterPaneA–D.
   Layout spec: 4 across desktop, 2x2 tablet, stacked phone. */
.sfw-footer-panes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 48px 0;
}
@media (min-width: 640px) {
  .sfw-footer-panes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sfw-footer-panes { grid-template-columns: repeat(4, 1fr); }
}

/* Card/Panel per style guide's Visual Elements table:
   Walnut Mid background, 6px radius, 1px #443A30 border, 20px padding */
.sfw-footer-pane {
  background: #241D18;
  border: 1px solid #443A30;
  border-radius: 6px;
  padding: 20px;
  color: #C7B9A8;
  font-size: 13px;
  line-height: 1.6;
}

/* Sub-heading role (card headers): Sans-serif SemiBold, Sage, 18-20pt */
.sfw-footer-heading {
  color: #7C9473;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .sfw-footer-heading { font-size: 20px; }
}

/* Body Copy role: Sans-serif Regular, Taupe Light */
.sfw-footer-tagline {
  color: #C7B9A8;
  font-size: 12px;
  margin-bottom: 14px;
}

/* Pane title used on link-list panes (B, C, D) — sub-heading role,
   uppercase short label stays within the All-Caps Limit rule (<=4 words) */
.sfw-footer-title {
  color: #7C9473;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Contact block (address/phone/email) */
.sfw-footer-contact p { margin: 0 0 6px; }
.sfw-footer-contact a { color: #C7B9A8; text-decoration: none; }
.sfw-footer-contact a:hover { color: #C97C3D; }

/* Social row */
.sfw-footer-social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.sfw-footer-social a {
  color: #8A7857;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.sfw-footer-social a:hover { color: #C97C3D; }

/* Plain vertical link list (panes B, C, D) */
.sfw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sfw-footer-links li { margin-bottom: 8px; }
.sfw-footer-links a {
  color: #C7B9A8;
  font-size: 13px;
  text-decoration: none;
}
.sfw-footer-links a:hover { color: #C97C3D; }

/* ── Pop-up windows (popUpSkin): walnut background, readable text ── */
body:has(.sfw-popup),
.sfw-popup {
  background: #241D18; /* walnut - header bar */
  color: #EDE4D6;      /* cream */
}
.sfw-popup {
  min-height: 100vh;
  padding: 1.5rem;
}
.sfw-popup h1, .sfw-popup h2, .sfw-popup h3, .sfw-popup h4,
.sfw-popup label, .sfw-popup legend,
.sfw-popup .dnnLabel, .sfw-popup .dnnFormItem label,
.sfw-popup .dnnFormMessage, .sfw-popup .Normal, .sfw-popup .SubHead,
.sfw-popup span, .sfw-popup p, .sfw-popup td, .sfw-popup th {
  color: #EDE4D6;
}
.sfw-popup a { color: #C97C3D; }
.sfw-popup a:hover { color: #EDE4D6; }
/* Keep form fields light with dark text so typing stays readable */
.sfw-popup input[type="text"], .sfw-popup input[type="password"],
.sfw-popup input[type="email"], .sfw-popup input[type="number"],
.sfw-popup input[type="search"], .sfw-popup input[type="url"],
.sfw-popup textarea, .sfw-popup select {
  background: #FFFDF9;
  color: #1B1613;
  border: 1px solid #8A5426;
}
/* DNN buttons keep readable text on their own backgrounds */
.sfw-popup .dnnPrimaryAction, .sfw-popup .dnnPrimaryAction * { color: #FFFFFF; }
.sfw-popup .dnnSecondaryAction, .sfw-popup .dnnSecondaryAction *,
.sfw-popup .dnnTertiaryAction, .sfw-popup .dnnTertiaryAction * { color: #1B1613; }

/* sfw-content-typography: restore normal HTML formatting in page content.
   Tailwind's Preflight resets headings, lists, links and margins to plain text;
   this puts them back inside the page panes (not the header menu or footer). */
[id$="BannerPane"] h1, [id$="ContentPane"] h1, [id$="RightPane"] h1, [id$="FluidPane"] h1 {
  font-size: 2.25rem; line-height: 1.15; font-weight: 700; margin: 0 0 1rem; color: #EDE4D6;
}
[id$="BannerPane"] h2, [id$="ContentPane"] h2, [id$="RightPane"] h2, [id$="FluidPane"] h2 {
  font-size: 1.5rem; line-height: 1.25; font-weight: 700; margin: 1.75rem 0 0.75rem; color: #EDE4D6;
}
[id$="BannerPane"] h3, [id$="ContentPane"] h3, [id$="RightPane"] h3, [id$="FluidPane"] h3 {
  font-size: 1.2rem; line-height: 1.3; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #EDE4D6;
}
[id$="BannerPane"] p, [id$="ContentPane"] p, [id$="RightPane"] p, [id$="FluidPane"] p {
  margin: 0 0 1rem; line-height: 1.65;
}
[id$="ContentPane"] ul, [id$="RightPane"] ul, [id$="FluidPane"] ul {
  list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem;
}
[id$="ContentPane"] ol, [id$="RightPane"] ol, [id$="FluidPane"] ol {
  list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem;
}
[id$="ContentPane"] li, [id$="RightPane"] li, [id$="FluidPane"] li { margin: 0 0 0.4rem; line-height: 1.6; }
[id$="BannerPane"] a, [id$="ContentPane"] a, [id$="RightPane"] a, [id$="FluidPane"] a {
  color: #C97C3D; text-decoration: underline;
}
[id$="ContentPane"] a:hover, [id$="RightPane"] a:hover, [id$="FluidPane"] a:hover { color: #E09A5C; }
[id$="ContentPane"] a.sfw-btn-copper, [id$="RightPane"] a.sfw-btn-copper { text-decoration: none; }
[id$="ContentPane"] strong, [id$="RightPane"] strong, [id$="FluidPane"] strong { font-weight: 700; }
[id$="ContentPane"] em, [id$="RightPane"] em { font-style: italic; }
[id$="ContentPane"] blockquote, [id$="RightPane"] blockquote {
  border-left: 3px solid #C97C3D; padding-left: 1rem; margin: 0 0 1rem; font-style: italic;
}
[id$="ContentPane"] img, [id$="RightPane"] img { max-width: 100%; height: auto; }
