/*
Theme Name: Skyline Mercantile
Theme URI: https://skylinemercantile.com
Author: Skyline Mercantile Group, LLC
Description: Company website theme for Skyline Mercantile Group, LLC, a wholesale merchandise company. Includes a business-details landing page, About and Contact templates, auto-created store policy pages, Customizer fields for company information, and WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyline
*/

:root {
  --ink: #1B2436;
  --steel: #4E5D78;
  --line: #CBD3DF;
  --mist: #EEF2F7;
  --paper: #FFFFFF;
  --kraft: #B7823A;
  --kraft-deep: #8A5E20;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--kraft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--kraft-deep); }
:focus-visible { outline: 3px solid var(--kraft); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; font-stretch: 105%; }
p { margin: 0 0 1em; }

.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; flex-wrap: wrap; }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 0.7rem; }
.wordmark-mark { width: 38px; height: 38px; flex: none; }
.wordmark-text { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.wordmark-text small { display: block; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: 0.78rem; color: var(--steel); }
.custom-logo { max-height: 54px; width: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 0.25rem 1.6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { border-bottom-color: var(--kraft); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.4rem; border-radius: 3px; text-decoration: none; border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--kraft-deep); border-color: var(--kraft-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* Hero: the skyline of cartons is the one bold element */
.hero { background: var(--mist); padding-top: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-copy { max-width: 48rem; }
.hero-copy .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 38rem; }
.hero-skyline { margin-top: clamp(2.5rem, 6vw, 4rem); width: 100%; }
.hero-skyline img { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-skyline img { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom; }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { max-width: 40rem; color: var(--steel); margin-bottom: 2.2rem; }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 880px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split.reverse > :first-child { order: 2; }
}
.figure { margin: 0; background: var(--mist); border: 1px solid var(--line); }
.figure figcaption { font-size: 0.85rem; color: var(--steel); padding: 0.7rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }

/* Company ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.ledger tr:first-child th, .ledger tr:first-child td { border-top: 2px solid var(--ink); }
.ledger th { width: 38%; color: var(--steel); font-weight: 600; padding-right: 1.5rem; }
.ledger td { font-weight: 500; }

/* Categories */
.categories { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.categories li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.categories li:first-child { border-top: 2px solid var(--ink); }
.categories strong { display: block; font-family: var(--display); font-stretch: 108%; font-size: 1.1rem; }
.categories span { color: var(--steel); font-size: 0.97rem; }

/* Order steps: a genuine sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 4px solid var(--kraft); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--ink); display: block; margin-bottom: 0.6rem; }
.steps p { color: var(--steel); margin: 0; }

/* Standards */
.standards { display: grid; gap: 1.8rem 3rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.standards h3 { margin-bottom: 0.35em; }
.standards p { color: var(--steel); margin: 0; }

/* Policies strip */
.policies { background: var(--ink); color: #fff; }
.policies h2 { color: #fff; }
.policies .section-intro { color: #C3CCDA; }
.policy-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid #3A4660; }
.policy-links a { display: block; color: #fff; text-decoration: none; padding: 1.1rem 0; border-bottom: 1px solid #3A4660; font-weight: 600; }
.policy-links a:hover { color: #E6C38C; }
.policy-links li { padding-right: 1.5rem; }

/* CTA */
.cta { background: var(--mist); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0; max-width: 30ch; }

/* Page templates */
.page-head { background: var(--mist); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--steel); max-width: 42rem; margin: 0; font-size: 1.15rem; }
.page-body { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.aside-card { border-top: 2px solid var(--ink); padding-top: 1rem; }
.aside-card h2 { font-size: 1.25rem; }
.contact-card dl { margin: 0; }
.contact-card dt { color: var(--steel); font-weight: 600; font-size: 0.92rem; margin-top: 1rem; }
.contact-card dd { margin: 0.15rem 0 0; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: #C3CCDA; font-size: 0.95rem; padding: 3.5rem 0 2rem; border-top: 6px solid var(--kraft); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid h2 { color: #fff; font-size: 1rem; font-stretch: 105%; margin-bottom: 0.8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid address { font-style: normal; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3A4660; font-size: 0.85rem; }
.footer-legal p { margin: 0 0 0.5rem; max-width: 90ch; }

/* WooCommerce basics */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--ink); color: #fff; border-radius: 3px; }
.woocommerce .button:hover { background: var(--kraft-deep); color: #fff; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--ink); }
