/*
Theme Name: Joshua Garay Store
Theme URI: https://joshuagaray.store
Author: Joshua Garay LLC
Author URI: https://joshuagaray.store
Description: Clean, professional, responsive corporate/e-commerce theme for JOSHUA GARAY LLC.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joshua-garay-store
Tags: business, e-commerce, responsive, corporate, clean
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  --slate-blue: #4a5c96;
  --slate-blue-dark: #38477a;
  --slate-blue-light: #eef1f8;
  --dark-gray: #2b2f36;
  --mid-gray: #5d646f;
  --line: #e2e5ec;
  --white: #ffffff;
  --bg-soft: #f7f8fb;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(43, 47, 54, .07);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--dark-gray); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p + p, p + ul, h2 + p, h3 + p { margin-top: .9rem; }
ul.bullets { list-style: disc; padding-left: 1.25rem; }
ul.bullets li { margin-top: .4rem; }
a:hover { color: var(--slate-blue); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--slate-blue); }
.lead { font-size: 1.06rem; color: var(--mid-gray); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  background: var(--slate-blue); color: var(--white); font-weight: 600;
  border: 1px solid var(--slate-blue); cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--slate-blue-dark); border-color: var(--slate-blue-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--slate-blue); }
.btn--ghost:hover { background: var(--slate-blue-light); color: var(--slate-blue-dark); }

/* ---------- Header ---------- */
.site-topbar { background: var(--dark-gray); color: #d7dbe3; font-size: .84rem; }
.site-topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
.site-topbar a:hover { color: var(--white); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; }
.brand__tag { font-size: .74rem; color: var(--mid-gray); letter-spacing: .06em; text-transform: uppercase; }
.nav ul { display: flex; gap: 26px; align-items: center; }
.nav a { font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a { color: var(--slate-blue); border-bottom-color: var(--slate-blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--slate-blue-light) 0%, var(--white) 70%); padding: 90px 0; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-top: .6rem; }
.hero .lead { margin-top: 1rem; }
.hero__cta { margin-top: 1.8rem; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.hero__card dl { display: grid; gap: 14px; }
.hero__card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid-gray); }
.hero__card dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--mid-gray); }
.card__price { margin-top: 1rem; font-weight: 700; color: var(--slate-blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-list dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid-gray); }
.info-list dd { margin: 3px 0 0; font-weight: 600; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--slate-blue); outline-offset: 1px; border-color: var(--slate-blue); }
.form-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.form-notice--ok { background: #eaf6ee; color: #1f5c34; }
.form-notice--err { background: #fdeceb; color: #8c2b23; }

/* ---------- Content / posts ---------- */
.page-hero { background: var(--dark-gray); color: var(--white); padding: 56px 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #c8cddb; margin-top: .6rem; }
.entry { max-width: 760px; }
.entry h2 { margin-top: 2rem; }
.entry h3 { margin-top: 1.4rem; }
.post-card { border-bottom: 1px solid var(--line); padding: 28px 0; }
.post-card:last-child { border-bottom: 0; }
.post-meta { font-size: .82rem; color: var(--mid-gray); }
.legal-updated { font-size: .86rem; color: var(--mid-gray); }
.pagination { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--slate-blue); color: var(--white); border-color: var(--slate-blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-gray); color: #c8cddb; padding: 56px 0 24px; margin-top: 0; }
.site-footer h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid address { font-style: normal; line-height: 1.8; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 60px 0; }
  .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 10px; }
  .site-topbar .wrap { justify-content: flex-start; }
}
