/*
Theme Name: Roll Titan
Theme URI: https://rolltitan.com/
Author: Roll Titan
Description: Custom theme for Roll Titan mobility equipment. Navy and gold brand colors, accessible type, a single-row menu with a Shop dropdown, and a WooCommerce-ready homepage.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
WC requires at least: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roll-titan
*/

:root {
  --rt-navy: #0A2259;
  --rt-navy-deep: #061638;
  --rt-ink: #0B1A33;
  --rt-gold: #E8B020;
  --rt-gold-soft: #FCEFC7;
  --rt-muted: #3D4A5C;
  --rt-muted-2: #5A6577;
  --rt-line: #E2E7F0;
  --rt-line-2: #D3DAE6;
  --rt-tint: #F4F6FA;
  --rt-tint-2: #EAEEF5;
  --rt-tint-3: #DDE4EF;
  --rt-on-dark: #C8D2E3;
  --rt-display: 'Archivo', system-ui, sans-serif;
  --rt-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--rt-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--rt-ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-navy); }
a:hover { color: var(--rt-navy-deep); }
h1, h2, h3, h4 { font-family: var(--rt-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rt-gold); outline-offset: 2px; }

.rt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.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; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700;
}

/* Buttons */
.rt-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rt-body); font-weight: 700; font-size: 18px;
  padding: 16px 28px; border-radius: 12px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
}
.rt-btn svg { width: 20px; height: 20px; flex: none; }
.rt-btn--navy { background: var(--rt-navy); color: #fff; }
.rt-btn--navy:hover { background: var(--rt-navy-deep); color: #fff; }
.rt-btn--outline { background: #fff; color: var(--rt-ink); border-color: var(--rt-ink); }
.rt-btn--outline:hover { background: var(--rt-tint); color: var(--rt-ink); }
.rt-btn--gold { background: var(--rt-gold); color: var(--rt-ink); }
.rt-btn--gold:hover { background: #D9A217; color: var(--rt-ink); }
.rt-btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.rt-btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Top bar */
.rt-topbar { background: var(--rt-navy-deep); color: #fff; font-size: 15px; }
.rt-topbar .rt-container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px;
}
.rt-topbar__muted { color: var(--rt-on-dark); }

/* Header */
.rt-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-header__row { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.rt-logo img { height: 72px; width: auto; }
.rt-nav { flex: 1 1 auto; }
.rt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rt-menu > li { position: static; }
.rt-menu a, .rt-menu__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rt-body); font-weight: 700; font-size: 18px; color: var(--rt-ink);
  text-decoration: none; padding: 10px 16px; border-radius: 10px; background: transparent; border: 0; cursor: pointer;
}
.rt-menu a:hover, .rt-menu__toggle:hover { background: var(--rt-tint); color: var(--rt-navy); }
.rt-menu .current-menu-item > a, .rt-menu .current_page_item > a, .rt-menu a[aria-current="page"] { background: var(--rt-tint); color: var(--rt-navy); }
.rt-menu__toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.rt-has-mega.is-open > .rt-menu__toggle { background: var(--rt-gold-soft); }
.rt-has-mega.is-open > .rt-menu__toggle svg { transform: rotate(180deg); }

.rt-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rt-ink); }
.rt-phone__icon {
  width: 44px; height: 44px; border-radius: 999px; background: var(--rt-gold-soft); color: var(--rt-navy);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.rt-phone__icon svg { width: 20px; height: 20px; }
.rt-phone__text { display: flex; flex-direction: column; line-height: 1.2; }
.rt-phone__label { font-size: 14px; color: var(--rt-muted-2); }
.rt-phone__number { font-weight: 700; font-size: 18px; }

.rt-icons { display: flex; gap: 8px; }
.rt-icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--rt-line-2);
  background: #fff; color: var(--rt-ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
}
.rt-icon-btn svg { width: 22px; height: 22px; }
.rt-icon-btn:hover { background: var(--rt-tint); color: var(--rt-ink); }
.rt-icon-btn--gold { background: var(--rt-gold); border-color: var(--rt-gold); }
.rt-icon-btn--gold:hover { background: #D9A217; }
.rt-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--rt-navy); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.rt-cart-count.is-empty { display: none; }
.rt-burger { display: none; }

/* Search panel */
.rt-search { display: none; border-top: 1px solid var(--rt-line); padding: 16px 0; }
.rt-search.is-open { display: block; }
.rt-search form { display: flex; gap: 10px; }
.rt-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; font: inherit; padding: 12px 16px; border: 1.5px solid var(--rt-line-2); border-radius: 12px;
}

/* Mega menu */
.rt-mega { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0 24px; }
.rt-has-mega.is-open .rt-mega { display: block; }
.rt-mega__panel {
  max-width: 1152px; margin: 0 auto; background: #fff; border: 1px solid var(--rt-line); border-top: 4px solid var(--rt-gold);
  border-radius: 0 0 20px 20px; box-shadow: 0 18px 40px rgba(6,22,56,.14); padding: 28px;
  display: flex; flex-wrap: wrap; gap: 24px;
}
.rt-mega__grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rt-mega__item {
  display: flex !important; align-items: center; gap: 16px; padding: 12px !important; border-radius: 14px !important;
  background: var(--rt-tint) !important; font-weight: 400 !important;
}
.rt-mega__item:hover { background: var(--rt-tint-2) !important; }
.rt-mega__thumb {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 12px; background: var(--rt-tint-3); overflow: hidden;
}
.rt-mega__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt-mega__text { display: flex; flex-direction: column; gap: 2px; }
.rt-mega__name { font-weight: 700; font-size: 18px; color: var(--rt-ink); }
.rt-mega__desc { font-size: 15px; color: var(--rt-muted); }
.rt-mega__promo {
  flex: 1 1 260px; min-width: 0; background: var(--rt-navy); color: #fff; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.rt-mega__promo h3 { font-size: 22px; font-weight: 800; }
.rt-mega__promo p { font-size: 16px; color: var(--rt-on-dark); }
.rt-mega__promo .rt-btn { align-self: flex-start; padding: 12px 20px; font-size: 16px; background: var(--rt-gold) !important; color: var(--rt-ink) !important; }

/* Sections */
.rt-section { padding: 80px 0; }
.rt-section--tint { background: var(--rt-tint); }
.rt-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.rt-section__head h2, .rt-h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.015em; }
.rt-section__head p { color: var(--rt-muted); margin-top: 8px; }
.rt-link-strong { font-weight: 700; }

/* Hero */
.rt-hero { background: var(--rt-tint); }
.rt-hero .rt-container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.rt-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rt-eyebrow { font-weight: 700; color: var(--rt-navy); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.rt-hero h1 { font-weight: 800; font-size: clamp(40px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.rt-hero__lead { font-size: 20px; color: var(--rt-muted); max-width: 34em; }
.rt-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rt-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; color: var(--rt-muted); padding-top: 8px; }
.rt-trust span { display: inline-flex; align-items: center; gap: 8px; }
.rt-trust svg { width: 20px; height: 20px; color: var(--rt-navy); }
.rt-hero__media {
  flex: 1 1 420px; min-width: 0; height: 480px; border-radius: 24px; background: var(--rt-tint-3); overflow: hidden;
}
.rt-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.rt-cat {
  text-decoration: none; color: var(--rt-ink); border: 1px solid var(--rt-line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, transform .2s;
}
.rt-cat:hover { color: var(--rt-ink); box-shadow: 0 12px 30px rgba(6,22,56,.10); transform: translateY(-2px); }
.rt-cat__media { height: 220px; background: var(--rt-tint); display: flex; align-items: center; justify-content: center; }
.rt-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.rt-cat__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.rt-cat__body h3 { font-size: 22px; font-weight: 700; }
.rt-cat__body p { color: var(--rt-muted); font-size: 16px; }
.rt-cat__cta { margin-top: 8px; font-weight: 700; color: var(--rt-navy); }

.rt-product { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.rt-product__media { position: relative; height: 230px; background: var(--rt-tint-2); display: block; }
.rt-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.rt-badge {
  position: absolute; top: 14px; left: 14px; background: var(--rt-gold); color: var(--rt-ink);
  font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.rt-product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.rt-product__body h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.rt-product__body h3 a { color: var(--rt-ink); text-decoration: none; }
.rt-price { font-size: 24px; font-weight: 700; }
.rt-price del { color: var(--rt-muted-2); font-size: 16px; font-weight: 400; margin-left: 8px; }
.rt-price ins { text-decoration: none; }
.rt-price .screen-reader-text { position: absolute !important; }
.rt-product .rt-add {
  margin-top: auto; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--rt-navy); background: #fff;
  color: var(--rt-navy); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.rt-product .rt-add:hover { background: var(--rt-navy); color: #fff; }

/* Why */
.rt-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 36px; }
.rt-why__item { display: flex; flex-direction: column; gap: 10px; }
.rt-why__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--rt-gold-soft); color: var(--rt-navy);
  display: flex; align-items: center; justify-content: center;
}
.rt-why__icon svg { width: 26px; height: 26px; }
.rt-why__item h3 { font-size: 21px; font-weight: 700; }
.rt-why__item p { color: var(--rt-muted); font-size: 17px; }
.rt-brands {
  border-top: 1px solid var(--rt-line); padding-top: 32px; margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px;
}
.rt-brands__label { font-size: 15px; font-weight: 700; color: var(--rt-muted-2); text-transform: uppercase; letter-spacing: .08em; }
.rt-brands__name { font-family: var(--rt-display); font-weight: 700; font-size: 22px; color: var(--rt-muted); }

/* Help band */
.rt-band-wrap { padding: 0 24px 80px; }
.rt-band {
  max-width: 1152px; margin: 0 auto; background: var(--rt-navy-deep); color: #fff; border-radius: 28px; padding: 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.rt-band__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rt-band h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.rt-band p { color: var(--rt-on-dark); font-size: 19px; }

/* Footer */
.rt-footer { background: var(--rt-tint); border-top: 1px solid var(--rt-line); }
.rt-footer__inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.rt-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.rt-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.rt-footer__brand img { height: 96px; width: auto; }
.rt-footer__brand p { color: var(--rt-muted); font-size: 16px; }
.rt-footer h3 { font-family: var(--rt-body); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--rt-muted-2); margin-bottom: 4px; }
.rt-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.rt-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rt-footer__col a { color: var(--rt-ink); }
.rt-footer__col address { font-style: normal; color: var(--rt-muted); }
.rt-footer__bottom { border-top: 1px solid var(--rt-line-2); padding-top: 24px; font-size: 15px; color: var(--rt-muted-2); }

/* Inner pages */
.rt-page { padding: 56px 0 80px; }
.rt-page__title { font-size: 44px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 28px; }
.rt-content > * + * { margin-top: 1em; }
.rt-content img { border-radius: 12px; }
.rt-post-list { display: grid; gap: 32px; }
.rt-post-list article h2 { font-size: 28px; margin-bottom: 8px; }
.rt-post-list article h2 a { color: var(--rt-ink); text-decoration: none; }
.rt-pagination { margin-top: 40px; }
.rt-elementor-full { padding: 0; }

/* WooCommerce touches */
.woocommerce .rt-page { padding-top: 40px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--rt-navy); color: #fff; border-radius: 12px; font-family: var(--rt-body); font-weight: 700;
  padding: 14px 22px; font-size: 16px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--rt-navy-deep); color: #fff;
}
.woocommerce span.onsale { background: var(--rt-gold); color: var(--rt-ink); font-weight: 700; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rt-ink); font-weight: 700; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--rt-display); color: var(--rt-ink); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rt-navy); }

/* Responsive */
@media (max-width: 1080px) {
  .rt-phone__text { display: none; }
}
@media (max-width: 900px) {
  .rt-header__row { flex-wrap: wrap; }
  .rt-logo img { height: 60px; }
  .rt-burger { display: flex; }
  .rt-nav { order: 10; flex: 1 1 100%; display: none; }
  .rt-nav.is-open { display: block; }
  .rt-menu { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .rt-menu a, .rt-menu__toggle { width: 100%; justify-content: space-between; }
  .rt-mega { position: static; padding: 0; }
  .rt-mega__panel { border-radius: 16px; box-shadow: none; padding: 16px; margin-top: 6px; }
  .rt-header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .rt-band { padding: 36px 24px; }
  .rt-section { padding: 56px 0; }
  .rt-section__head h2, .rt-h2, .rt-band h2 { font-size: 32px; }
  .rt-hero__media { height: 320px; }
}
@media (min-width: 901px) {
  .rt-header__tools { display: flex; align-items: center; gap: 20px; }
}
