/* style.css — Jarodstowman. Visual language mirrors www.arteriorshome.com:
   Montserrat 300/400/500, near-black #1e1e1e ink, #767676 secondary text,
   #f5f5f5 surfaces, hairline #dedede rules, uppercase letter-spaced labels,
   regular-weight editorial headings and glass/outline buttons. */

:root {
  --ah-ink: #1e1e1e;
  --ah-ink-2: #333333;
  --ah-mid: #767676;
  --ah-soft: #b4b4b4;
  --ah-line: #dedede;
  --ah-bg: #f5f5f5;
  --ah-white: #ffffff;
  --ah-radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  color: var(--ah-ink);
  background: var(--ah-white);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ah-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 400; color: var(--ah-ink); letter-spacing: -.01em; }
.ah-eyebrow {
  display: block; font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; color: var(--ah-mid);
  margin: 0 0 .9rem;
}

/* ---------- top bar ---------- */
.page-top-header { color: var(--ah-white); }
.page-top-header a { color: var(--ah-soft); }
.page-top-header a:hover { color: var(--ah-white); }

/* ---------- header ---------- */
.site-header {
  background: var(--ah-white);
  border-bottom: 1px solid var(--ah-line);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.not-at-top { box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.site-header.site-scroll--down { transform: translateY(-100%); }
.site-header.site-scroll--up { transform: translateY(0); }
.ah-logo {
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--ah-ink);
  white-space: nowrap;
}
.ah-icon-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 0; cursor: pointer; padding: .5rem;
  color: var(--ah-ink); font: inherit;
}
.ah-icon-btn svg { display: block; }
.ah-icon-btn:hover { color: var(--ah-mid); }
.ah-nav { border-top: 1px solid var(--ah-line); }
.ah-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.25rem;
}
.ah-nav-item > a {
  display: block; padding: .85rem .25rem; font-size: .72rem;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-ink-2);
}
.ah-nav-item > a:hover { color: var(--ah-ink); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) { .ah-nav { display: none; } }

/* ---------- overlays ---------- */
.ah-search-popup {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30,30,30,.94); color: #fff;
  padding: 12vh 24px 40px;
}
.ah-search-box { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.ah-search-input {
  flex: 1; font-size: 1.15rem; padding: 14px 16px;
  border: 1px solid #555; background: #2a2a2a; color: #fff; border-radius: var(--ah-radius);
}
.ah-search-input::placeholder { color: #999; }
.ah-search-close {
  background: none; border: 1px solid #666; color: #fff; padding: 14px 18px;
  border-radius: var(--ah-radius); cursor: pointer; font: inherit;
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
}
.ah-search-results { list-style: none; max-width: 720px; margin: 18px auto 0; padding: 0; }
.ah-search-results li { border-bottom: 1px solid #3a3a3a; }
.ah-search-results a, .ah-search-empty { display: block; padding: 14px 4px; color: #fff; }
.ah-search-results a:hover { text-decoration: underline; }

.ah-mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ah-white);
  overflow-y: auto; padding: 24px;
}
.ah-mobile-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ah-line); padding-bottom: 16px; }
.ah-mobile-logo { font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.ah-mobile-list { list-style: none; margin: 18px 0 0; padding: 0; }
.ah-mobile-list li { border-bottom: 1px solid var(--ah-line); }
.ah-mobile-list a { display: block; padding: 16px 2px; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
body.search-open, body.menu-open { overflow: hidden; }

/* ---------- breadcrumb / headings ---------- */
.ah-breadcrumb { color: var(--ah-mid); padding: 20px 0 4px; text-transform: uppercase; letter-spacing: .12em; }
.ah-breadcrumb a { color: var(--ah-mid); }
.ah-breadcrumb .ah-sep { margin: 0 .5rem; }
.ah-current { color: var(--ah-ink); }

main { display: block; }
.ah-article, .ah-category, .ah-home, .ah-legal { max-width: 820px; margin: 0 auto; padding: 8px 24px 72px; }
.ah-home { max-width: 1280px; padding-inline: 0; }
.ah-home > *:not(.ah-hero) { padding-inline: 24px; }
.ah-article-header { padding-top: 6px; }
.ah-article-h1, .ah-category-h1, .ah-home-h1 {
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin: .35em 0 .5em;
  font-weight: 400; color: var(--ah-ink); letter-spacing: -.02em;
}
.ah-intro { font-size: 1.05rem; color: var(--ah-mid); margin: 0 0 1rem; }
.ah-article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ah-mid); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 22px; }
.ah-article-body h2 { font-size: 1.6rem; line-height: 1.25; margin: 2.4rem 0 .7rem; font-weight: 400; letter-spacing: -.01em; }
.ah-article-body h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; font-weight: 500; }
.ah-article-body p { margin: 0 0 1.15rem; }
.ah-article-body a { text-decoration: underline; text-underline-offset: 3px; }
.ah-article-body ul, .ah-article-body ol { padding-left: 1.3rem; margin: 0 0 1.15rem; }
.ah-article-body li { margin: .4rem 0; }
.ah-article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.ah-article-body th, .ah-article-body td { border: 1px solid var(--ah-line); padding: .65rem .75rem; text-align: left; }
.ah-article-body th { background: var(--ah-bg); font-weight: 500; }

/* ---------- article media ---------- */
.ah-article-hero { margin: 0 0 1.8rem; }
.ah-article-hero img, .ah-article-figure img { width: 100%; border-radius: var(--ah-radius); }
.ah-article-hero figcaption, .ah-article-figure figcaption { font-size: .76rem; color: var(--ah-mid); padding-top: .6rem; }
.ah-article-figure { margin: 1.8rem 0; }

/* ---------- keyfacts + pullquote ---------- */
.ah-keyfacts { background: var(--ah-bg); border-top: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); padding: 24px 26px; margin: 2rem 0; }
.ah-keyfacts-h { font-size: .72rem !important; text-transform: uppercase; letter-spacing: .22em; font-weight: 500; margin: 0 0 .8rem !important; color: var(--ah-mid); }
.ah-keyfacts ul { margin: 0; padding-left: 1.1rem; }
.ah-keyfacts li { margin: .4rem 0; }
.ah-pullquote { margin: 2.4rem 0; padding: 8px 0 8px 26px; border-left: 2px solid var(--ah-ink); }
.ah-pullquote p { font-size: 1.5rem; line-height: 1.4; font-weight: 300; color: var(--ah-ink-2); margin: 0; }

/* ---------- cards / posts ---------- */
.ah-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.ah-card { display: flex; flex-direction: column; }
.ah-card-media { display: block; overflow: hidden; background: var(--ah-bg); border-radius: var(--ah-radius); }
.ah-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--ah-radius); transition: transform .5s ease; }
.ah-card:hover .ah-card-media img { transform: scale(1.03); }
.ah-card-body { padding-top: 1rem; }
.ah-card-cat { display: inline-block; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--ah-mid); margin-bottom: .5rem; }
.ah-card-title h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5rem; font-weight: 500; letter-spacing: 0; }
.ah-card-title:hover { text-decoration: none; }
.ah-card-title:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.ah-card-excerpt { font-size: .88rem; color: var(--ah-mid); margin: 0; }
@media (max-width: 900px) { .ah-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ah-posts { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- section headers ---------- */
.ah-sect-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; margin: 4.5rem 0 2.2rem; }
.ah-sect-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0; font-weight: 400; letter-spacing: -.01em; }
.ah-sect-cta { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ah-mid); white-space: nowrap; }
.ah-sect-cta:hover { color: var(--ah-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home: hero banner ---------- */
.ah-home-intro { padding: 56px 24px 8px; max-width: 900px; }
.ah-hero {
  position: relative; overflow: hidden;
  width: 100vw; max-width: 100vw;
  left: 50%; transform: translateX(-50%);
}
.ah-hero-media { width: 100%; height: clamp(420px, 62vw, 720px); object-fit: cover; }
.ah-hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 32px;
  background: linear-gradient(180deg, rgba(30,30,30,.18), rgba(30,30,30,.5));
}
.ah-hero-eyebrow { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: #fff; margin: 0 0 1rem; }
.ah-hero-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 400; letter-spacing: -.02em; margin: 0 0 1.6rem; max-width: 18ch; }
.ah-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- home: promo banners ---------- */
.ah-banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 3rem 0; }
.ah-banners--3 { grid-template-columns: repeat(3, 1fr); }
.ah-banner { position: relative; display: block; overflow: hidden; border-radius: var(--ah-radius); }
.ah-banner img { width: 100%; height: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.ah-banner-body {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; text-align: center;
  padding: 32px; color: #fff;
  background: linear-gradient(180deg, rgba(30,30,30,0), rgba(30,30,30,.55));
}
.ah-banners--3 .ah-banner img { aspect-ratio: 3 / 4; }
.ah-banner-eyebrow { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 .5rem; }
.ah-banner-title { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; margin: 0; }
.ah-banner-link { margin-top: 1.1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }
@media (max-width: 760px) { .ah-banners, .ah-banners--3 { grid-template-columns: 1fr; } }

/* ---------- home: value row ---------- */
.ah-usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 3.5rem 0; text-align: center; }
.ah-usp-item h3 { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .5rem; }
.ah-usp-item p { font-size: .88rem; color: var(--ah-mid); margin: 0; }
@media (max-width: 900px) { .ah-usp { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ah-usp { grid-template-columns: 1fr; } }

/* ---------- home: category tiles ---------- */
.ah-cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ah-cat-tile { position: relative; display: block; overflow: hidden; border-radius: var(--ah-radius); background: var(--ah-bg); }
.ah-cat-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.ah-cat-tile:hover img { transform: scale(1.04); }
.ah-cat-tile-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px;
  background: linear-gradient(transparent, rgba(30,30,30,.8)); color: #fff;
  font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
}
@media (max-width: 900px) { .ah-cat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- category ---------- */
.ah-category { max-width: 1180px; }
.ah-category-header { max-width: 820px; }
.ah-category-intro { margin: 1.8rem 0 2.4rem; max-width: 820px; }
.ah-category-intro h2 { font-size: 1.4rem; margin: 1.8rem 0 .5rem; font-weight: 400; }
.ah-category-intro p { margin: 0 0 1rem; color: var(--ah-ink-2); }

/* ---------- legal ---------- */
.ah-article-tagline { margin-top: 1.8rem; font-style: italic; color: var(--ah-mid); }
.ah-article-note { font-size: .85rem; color: var(--ah-mid); }
.ah-contact-form { display: grid; gap: .9rem; max-width: 540px; margin: 1rem 0; }
.ah-contact-row { display: grid; gap: .35rem; }
.ah-contact-row label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ah-mid); }
.ah-contact-row input, .ah-contact-row textarea { padding: .7rem .8rem; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); font: inherit; }
.ah-contact-row input:focus, .ah-contact-row textarea:focus { outline: none; border-color: var(--ah-ink); }
.ah-contact-msg, .ah-news-msg { font-size: .9rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer; font: inherit; border-radius: var(--ah-radius); }
.btn-primary, .btn-secondary, .btn-glass {
  padding: .95rem 2.1rem; text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 500; line-height: 1;
}
.btn-primary { background: var(--ah-ink); color: #fff !important; }
.btn-primary:hover { background: #333 !important; text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ah-ink); box-shadow: inset 0 0 0 1px var(--ah-ink); }
.btn-secondary:hover { background: var(--ah-bg); text-decoration: none; }
.btn-glass { background: rgba(250,250,250,.26); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn-glass:hover { background: rgba(250,250,250,.44); text-decoration: none; }
.btn-link { background: none; color: inherit; padding: 0; box-shadow: none; }

/* ---------- footer ---------- */
.ah-footer { color: #fff; margin-top: auto; padding: 72px 0 32px; }
.ah-footer .text-primary-200 { color: var(--ah-soft); }
.ah-footer-news { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 44px; }
.ah-footer-news-copy h2 { font-size: 1.9rem; margin: 0 0 .6rem; font-weight: 400; letter-spacing: -.01em; }
.ah-news-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.ah-news-form input[type="email"] { flex: 1; min-width: 220px; padding: .9rem .9rem; border: 1px solid #494948; background: #2a2a2a; color: #fff; border-radius: var(--ah-radius); font: inherit; }
.ah-news-msg { flex-basis: 100%; margin: .2rem 0 0; color: var(--ah-soft); }
@media (max-width: 760px) { .ah-footer-news { grid-template-columns: 1fr; } }
.ah-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0; }
.ah-footer-logo { display: block; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; font-size: 1.25rem; margin-bottom: .8rem; }
.ah-footer-h { margin: 0 0 .9rem; letter-spacing: .18em; color: var(--ah-soft); font-weight: 500; }
.ah-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ah-footer-col li { margin: .5rem 0; }
.ah-footer-col a { color: #fff; font-size: .88rem; }
.ah-footer-col a:hover { text-decoration: underline; }
.ah-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .78rem; }
@media (max-width: 900px) { .ah-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ah-footer-cols { grid-template-columns: 1fr; } }

/* responsive type */
@media (max-width: 640px) {
  .ah-article-body h2 { font-size: 1.35rem; }
}
