/*
Theme Name: Type 2 Reset
Theme URI: https://type2resetbook.com/
Author: Lee Oxley
Description: Custom WooCommerce theme for Type 2 Reset.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: type2reset
*/

:root {
  --t2r-blue: #143fc4;
  --t2r-blue-dark: #0b2c83;
  --t2r-teal: #0799a5;
  --t2r-aqua: #06bdd0;
  --t2r-navy: #0d204b;
  --t2r-ink: #13243d;
  --t2r-muted: #58707c;
  --t2r-pale: #eef8fb;
  --t2r-line: #c9e0e7;
  --t2r-white: #ffffff;
  --t2r-shadow: 0 22px 58px rgba(13, 59, 110, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--t2r-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.t2r-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(9, 94, 124, 0.13);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.custom-logo { width: 48px; max-height: 48px; object-fit: contain; }
.brand-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--t2r-aqua), #0567e0 68%, var(--t2r-blue));
}
.brand-name {
  font-family: "Arial Black", "Segoe UI Black", Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-name .type { color: var(--t2r-blue); }
.brand-name .reset { color: var(--t2r-teal); }
.primary-nav { display: flex; align-items: center; gap: 28px; color: #29445a; font-size: 14px; font-weight: 700; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--t2r-teal); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--t2r-navy); font-weight: 800; cursor: pointer; }

.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--t2r-blue), #075fd3);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(20, 63, 196, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover, .button:focus, .woocommerce a.button:hover, .woocommerce button.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(20, 63, 196, 0.28);
}
.button-small { min-height: 43px; padding: 0 18px; font-size: 13px; }
.button-secondary { background: #fff; color: var(--t2r-blue); border: 1px solid var(--t2r-line); box-shadow: none; }
.button-secondary:hover, .button-secondary:focus { color: var(--t2r-blue-dark); background: var(--t2r-pale); }
.text-link { color: var(--t2r-blue); font-weight: 800; border-bottom: 2px solid var(--t2r-aqua); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fff 0 48%, #eef9fc 48% 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -190px;
  top: -250px;
  border: 1px solid rgba(6, 189, 208, 0.28);
  border-radius: 50%;
}
.hero-grid { min-height: 700px; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 70px; padding: 80px 0; }
.eyebrow { margin: 0 0 16px; color: var(--t2r-teal); font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--t2r-navy); margin-top: 0; line-height: 1.08; }
h1 { margin-bottom: 25px; font-size: clamp(48px, 6vw, 78px); letter-spacing: -0.05em; }
h2 { margin-bottom: 20px; font-size: clamp(35px, 4vw, 54px); letter-spacing: -0.035em; }
h3 { font-size: 24px; }
.hero-copy > p:not(.eyebrow):not(.offer-note) { max-width: 640px; color: #3e5d6a; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.offer-note { margin: 17px 0 0; color: var(--t2r-muted); font-size: 13px; font-weight: 700; }
.book-stage { position: relative; z-index: 1; display: grid; place-items: center; }
.book-stage::before {
  content: "";
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(7, 153, 165, 0.26);
  border-radius: 50%;
}
.book-cover { position: relative; z-index: 2; width: min(350px, 78%); border-radius: 3px; box-shadow: -25px 30px 52px rgba(8, 56, 115, 0.24); transform: rotate(-1deg); }

.section { padding: 100px 0; }
.section-pale { background: var(--t2r-pale); }
.section-dark { color: #fff; background: linear-gradient(135deg, var(--t2r-navy), #0b4e72); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 55px; }
.section-heading p:last-child { color: var(--t2r-muted); font-size: 18px; }
.recognition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.recognition-card { min-height: 210px; padding: 30px; border: 1px solid var(--t2r-line); border-radius: 10px; background: #fff; }
.number { color: var(--t2r-teal); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.recognition-card p { margin-top: 45px; font-weight: 700; line-height: 1.5; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--t2r-line); border: 1px solid var(--t2r-line); }
.topic-card { min-height: 225px; padding: 30px; background: #fff; }
.topic-card h3 { margin: 35px 0 10px; }
.topic-card p { color: var(--t2r-muted); }

.starter-card { display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden; border-radius: 12px; background: var(--t2r-navy); color: #fff; box-shadow: var(--t2r-shadow); }
.starter-copy { padding: 58px; }
.starter-copy h2 { color: #fff; }
.starter-copy p { color: #c8e5ec; }
.starter-list { margin: 0; padding: 46px 52px; list-style: none; background: linear-gradient(145deg, var(--t2r-teal), #087e98); }
.starter-list li { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,0.22); font-weight: 800; }
.starter-list li:last-child { border-bottom: 0; }
.starter-list span { margin-right: 15px; color: #baf6fa; font-size: 11px; letter-spacing: 0.12em; }

.author-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: center; gap: 80px; }
.author-photo, .author-placeholder { width: 100%; aspect-ratio: 0.82; border-radius: 10px; box-shadow: var(--t2r-shadow); object-fit: cover; }
.author-placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--t2r-blue), var(--t2r-teal)); font-size: 72px; font-weight: 900; }
.author-copy blockquote { margin: 0 0 25px; color: var(--t2r-navy); font-size: clamp(28px, 3.2vw, 44px); font-weight: 850; line-height: 1.15; letter-spacing: -0.035em; }
.author-copy p { color: var(--t2r-muted); font-size: 17px; }
.author-byline { color: var(--t2r-navy); font-weight: 900; }

.purchase-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; align-items: center; gap: 75px; }
.purchase-grid p { color: #c8e5ec; }
.purchase-box { padding: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; background: rgba(255,255,255,0.07); }
.purchase-box .price { display: block; margin-bottom: 18px; color: #fff; font-size: 44px; font-weight: 900; }
.purchase-box ul { margin: 0 0 28px; padding-left: 20px; color: #d6edf1; }
.purchase-box .button { width: 100%; background: #fff; color: var(--t2r-blue); box-shadow: none; }

.coming-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding: 45px; border: 1px solid var(--t2r-line); border-radius: 12px; background: linear-gradient(120deg, #eef9fb, #fff); }
.coming-label { padding: 9px 12px; color: #fff; background: var(--t2r-teal); border-radius: 4px; font-size: 10px; font-weight: 900; letter-spacing: 0.13em; }
.newsletter { background: linear-gradient(135deg, #057f9f, var(--t2r-blue)); color: #fff; }
.newsletter-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 70px; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #d7f1f5; }
.email-placeholder { display: flex; }
.email-placeholder input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 7px 0 0 7px; }
.email-placeholder button { min-width: 190px; border-radius: 0 7px 7px 0; background: var(--t2r-navy); box-shadow: none; }
.form-note { display: block; margin-top: 11px; color: #c3e8ee; font-size: 12px; }

.site-footer { padding: 65px 0 30px; color: #b5d1d7; background: #081b37; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.site-footer .brand-name .type { color: #5f90ff; }
.site-footer .brand-name .reset { color: #20c1c9; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.13); font-size: 11px; color: #7fa4af; }

.site-main { min-height: 60vh; }
.content-shell { padding: 75px 0; }
.content-shell article { max-width: 860px; }
.content-shell h1 { margin: 0 0 30px; color: var(--t2r-navy); font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.content-shell h2 { margin: 38px 0 10px; color: var(--t2r-blue-dark); font-size: 25px; line-height: 1.2; }
.content-shell p { margin: 0 0 18px; }
.content-shell a { color: var(--t2r-blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content { max-width: 780px; }
.woocommerce .woocommerce-breadcrumb { color: var(--t2r-muted); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--t2r-teal); font-weight: 900; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--t2r-teal); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--t2r-teal); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--t2r-line);
  border-radius: 5px;
}

@media (max-width: 960px) {
  .primary-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 22px 24px; flex-direction: column; align-items: flex-start; background: #fff; border-bottom: 1px solid var(--t2r-line); }
  .primary-nav.is-open { display: flex; }
  .header-buy { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr 0.8fr; gap: 35px; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
  .author-grid { gap: 45px; }
}

@media (max-width: 720px) {
  .admin-bar .site-header { top: 46px; }
  .t2r-container { width: min(100% - 36px, 1180px); }
  .header-inner { min-height: 70px; }
  .primary-nav { top: 70px; }
  .brand-name { font-size: 18px; }
  .hero { background: linear-gradient(180deg, #fff 0 55%, #eef9fc 55% 100%); }
  .hero-grid, .starter-card, .author-grid, .purchase-grid, .newsletter-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 65px 0 70px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .book-stage { padding-top: 25px; }
  .book-cover { width: min(300px, 74%); }
  .section { padding: 75px 0; }
  .recognition-grid, .topics-grid { grid-template-columns: 1fr; }
  .starter-copy, .starter-list { padding: 36px 26px; }
  .author-photo, .author-placeholder { max-width: 390px; justify-self: center; }
  .coming-card { grid-template-columns: 1fr; gap: 18px; padding: 30px; }
  .email-placeholder { flex-direction: column; gap: 10px; }
  .email-placeholder input, .email-placeholder button { width: 100%; border-radius: 7px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
