/*
Theme Name: TyroneHarrison
Theme URI: https://tyroneharrison.com/
Description: A clean, conversion-focused Kadence child theme built for the Tyrone Harrison personal brand. White canvas, charcoal typography, and a vibrant orange accent reserved for calls to action. Ships its own transparent overlay header and hero system.
Author: Ahsan Iqbal
Author URI: https://tyroneharrison.com/
Template: kadence
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: tyroneharrison
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1.  Brand Tokens
   2.  Reset & Base
   3.  Typography
   4.  Layout & Containers
   5.  Section Headings (badge / title / lead)
   6.  Buttons
   7.  Forms
   8.  Cards & Shared Components
   9.  Pagination & Entry Meta
   10. WordPress Core Classes
   11. Utilities
   12. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand Tokens

   The first block is the brand palette exactly as supplied by the client -
   treat those five groups as the source of truth and do not repeat a hex
   anywhere else in the theme. The second block holds values derived from the
   palette (tints, shadows, rhythm) so a brand tweak only ever means editing
   the group above it.
   -------------------------------------------------------------------------- */
:root {
  /* Brand Accent */
  --color-primary: #f58e00;          /* Vibrant orange (CTA buttons, badge) */
  --color-primary-hover: #e08000;    /* Darker orange for hover states */

  /* Neutral Dark (Typography & Headings) */
  --color-text-heading: #1d1d1f;     /* Bold black / dark charcoal headers */
  --color-text-body: #4a4a4a;        /* Soft dark gray for body paragraphs */
  --color-text-muted: #767676;       /* Form placeholder text */

  /* Neutral Light & Backgrounds */
  --color-bg-primary: #ffffff;       /* Pure white background */
  --color-bg-gradient-start: #f8af45; /* Soft gradient tone from contact section */
  --color-border: #e0e0e0;           /* Form input underline / border lines */

  /* Contrast / Text on Dark & Accent */
  --color-text-light: #ffffff;       /* Text on orange buttons */

  /* ---- Derived from the palette above ---- */

  /* Accent tints: orange at low opacity, for badges and soft fills */
  --color-primary-soft: rgba(245, 142, 0, 0.08);
  --color-primary-ring: rgba(245, 142, 0, 0.28);

  /* Neutral surfaces */
  --color-bg-subtle: #fafafa;        /* Alternating section background */
  --color-bg-dark: var(--color-text-heading);

  /* Dark slate panel. Not a new colour invention: this is the ink the brand's
     own icon set is drawn in, reused here as a surface. */
  --color-bg-slate: #242f35;

  /* The contact section gradient */
  --gradient-warm: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-primary) 100%);

  /* Type */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Header stack. The header is transparent and overlays the hero, so every
     hero reserves this much room at its top instead of being pushed down. */
  --th-topbar-h: 40px;
  --th-bar-h: 92px;
  --th-header-stack: calc(var(--th-topbar-h) + var(--th-bar-h));

  /* Rhythm */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --section-pad: 6rem;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(29, 29, 31, 0.06);
  --shadow-md: 0 4px 16px rgba(29, 29, 31, 0.07);
  --shadow-lg: 0 18px 48px rgba(29, 29, 31, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.28s var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Keeps in-page anchor targets clear of the fixed overlay header. The
     stack is measured by header.js, so this follows the real bar height. */
  scroll-padding-top: calc(var(--th-header-stack) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Fluid sizes: each heading scales with the viewport between a floor and a
   ceiling, so there is no step-change at a breakpoint. */
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9375rem; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

strong,
b {
  font-weight: 700;
  color: var(--color-text-heading);
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.0625rem;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-text-muted);
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code {
  padding: 0.15em 0.4em;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

pre {
  margin: 2rem 0;
  padding: 1.5rem;
  overflow-x: auto;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  border-radius: var(--radius-md);
}

pre code {
  padding: 0;
  background: none;
  border: none;
  color: inherit;
}

hr {
  height: 1px;
  margin: 3rem 0;
  border: 0;
  background-color: var(--color-border);
}

table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-heading);
}

/* --------------------------------------------------------------------------
   4. Layout & Containers
   -------------------------------------------------------------------------- */
.th-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.th-container-narrow {
  max-width: 760px;
}

.th-section {
  padding: var(--section-pad) 0;
}

.th-section-tight {
  padding: 3.5rem 0;
}

.th-section-subtle {
  background-color: var(--color-bg-subtle);
}

.th-section-dark {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

.th-section-dark h1,
.th-section-dark h2,
.th-section-dark h3,
.th-section-dark h4,
.th-section-dark h5,
.th-section-dark h6 {
  color: var(--color-text-light);
}

/* Reusable responsive grid. The column count is a custom property, so a
   section can set its own without needing a new class. */
.th-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr));
}

.th-grid-2 { --grid-cols: 2; }
.th-grid-4 { --grid-cols: 4; }

/* --------------------------------------------------------------------------
   5. Section Headings
   -------------------------------------------------------------------------- */

/* The orange pill badge that sits above a section title. */
.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-primary-soft);
  border: 1px solid var(--color-primary-ring);
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.th-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.th-badge-solid {
  color: var(--color-text-light);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/*
 * Solid orange label, used above a section heading (About / Biography).
 * Unlike .th-badge this has no border and sets charcoal text, which is how the
 * brand draws its small labels on a white canvas.
 */
.th-pill {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-heading);
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
}

.th-section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.th-section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.th-section-title {
  margin-bottom: 1rem;
}

/* An orange word inside an otherwise charcoal heading. */
.th-accent {
  color: var(--color-primary);
}

.th-lead {
  font-size: 1.0625rem;
  color: var(--color-text-body);
}

.th-rule {
  width: 56px;
  height: 4px;
  margin: 1.5rem 0;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
}

.th-section-head-center .th-rule {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.th-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.th-btn-primary {
  color: var(--color-text-light);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px var(--color-primary-ring);
}

.th-btn-primary:hover {
  color: var(--color-text-light);
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--color-primary-ring);
}

.th-btn-dark {
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
}

.th-btn-dark:hover {
  color: var(--color-text-light);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.th-btn-outline {
  color: var(--color-text-heading);
  background-color: transparent;
  border-color: var(--color-border);
}

.th-btn-outline:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: var(--color-primary-soft);
}

.th-btn-light {
  color: var(--color-text-heading);
  background-color: var(--color-bg-primary);
  border-color: var(--color-bg-primary);
}

.th-btn-light:hover {
  color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.th-btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.th-btn-block {
  width: 100%;
}

/* A text link carrying an arrow, used at the foot of cards. */
.th-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.th-link-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition);
}

.th-link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. Forms

   The brand form style is an underline rather than a box: no fill, no side
   borders, a single 1px rule that turns orange on focus.
   -------------------------------------------------------------------------- */
label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-heading);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-heading);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Chevron drawn inline so the control needs no image request. */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23767676'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 20px;
  padding-right: 1.75rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-bottom-color: var(--color-primary);
  box-shadow: 0 1px 0 0 var(--color-primary);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--color-primary);
}

button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-heading);
  cursor: pointer;
}

.th-field {
  margin-bottom: 1.75rem;
}

/* Marks a required field with an orange asterisk. */
.th-field-required label::after {
  content: " *";
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   8. Cards & Shared Components
   -------------------------------------------------------------------------- */
.th-card {
  padding: 2rem;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.th-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.th-card-title {
  margin-bottom: 0.75rem;
}

.th-card-title a {
  color: inherit;
}

.th-card-title a:hover {
  color: var(--color-primary);
}

.th-card-text {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

/* Rounded icon chip at the top of a card. */
.th-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  background-color: var(--color-primary-soft);
  border-radius: var(--radius-md);
}

.th-card-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Featured-image wrapper that crops to a fixed ratio, so a grid of posts
   stays aligned whatever the uploaded dimensions are. */
.th-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--color-bg-subtle);
}

.th-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.th-card:hover .th-thumb img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   9. Pagination & Entry Meta
   -------------------------------------------------------------------------- */
.th-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.th-meta a {
  color: var(--color-text-muted);
}

.th-meta a:hover {
  color: var(--color-primary);
}

.navigation.pagination {
  margin-top: 4rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text-heading);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.page-numbers:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-numbers.current {
  color: var(--color-text-light);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-numbers.dots:hover {
  color: var(--color-text-heading);
  border-color: var(--color-border);
}

/* Previous / next single post links. */
.th-post-nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
}

.th-post-nav a {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
}

.th-post-nav a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.th-post-nav-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.th-post-nav-next {
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. WordPress Core Classes
   The markup hooks WordPress and the block editor emit.
   -------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  clip: auto;
  background-color: var(--color-bg-primary);
  color: var(--color-primary);
  z-index: 100000;
}

/* Keyboard shortcut to the main content, first thing in the tab order. */
.th-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
}

.th-skip-link:focus {
  top: 1rem;
  color: var(--color-text-light);
}

.alignleft {
  float: left;
  margin: 0.5rem 2rem 1.5rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1.5rem 2rem;
}

.aligncenter {
  display: block;
  margin: 2rem auto;
}

.alignnone {
  margin: 2rem 0;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 2rem;
}

.wp-caption-text,
.gallery-caption,
figcaption {
  padding-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* A sticky post is flagged with the accent border. */
.sticky.th-card,
.sticky .th-card {
  border-color: var(--color-primary);
}

.wp-block-image,
.wp-block-embed,
.wp-block-gallery,
.wp-block-table {
  margin-bottom: 2rem;
}

.wp-block-button__link {
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.wp-block-quote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
}

/* Long-form body copy from the editor. */
.entry-content {
  font-size: 1.0625rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.5rem 0 1rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.25rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. Utilities
   -------------------------------------------------------------------------- */
.th-text-center { text-align: center; }
.th-mb-0 { margin-bottom: 0; }
.th-mb-1 { margin-bottom: 1rem; }
.th-mb-2 { margin-bottom: 2rem; }
.th-mb-3 { margin-bottom: 3rem; }

.th-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.th-actions-center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 4.5rem;
  }

  .th-grid-4 { --grid-cols: 2; }
}

@media (max-width: 782px) {
  :root {
    --section-pad: 3.5rem;
    --container-pad: 1.25rem;
  }

  .th-grid,
  .th-grid-2,
  .th-grid-4 {
    --grid-cols: 1;
  }

  .th-section-head {
    margin-bottom: 2.5rem;
  }

  .th-post-nav {
    grid-template-columns: 1fr;
  }

  .th-post-nav-next {
    text-align: left;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 2rem auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
