/*
Theme Name: HardHour
Theme URI: https://hardhour.com
Author: HardHour
Author URI: https://hardhour.com
Description: A minimalistic, professional WordPress theme for engineers and managers. Built for clarity, bridges, and evolution.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hardhour
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #1a2332;
  --color-secondary: #2d3e52;
  --color-accent: #e67e22;
  --color-accent-light: #f39c12;
  --color-accent-muted: #d68910;
  --color-light: #f8f9fa;
  --color-lighter: #ffffff;
  --color-border: #e0e3e8;
  --color-text-dark: #1a2332;
  --color-text-secondary: #5a6670;
  --color-text-light: #7a8390;
  --color-success: #27ae60;
  --color-success-light: #d5f4e6;
  --color-warning: #f39c12;
  --color-warning-light: #fef5e7;
  --color-info: #3498db;
  --color-info-light: #ebf5fb;
  
  /* Pakistan & Gulf Region Colors */
  --color-pakistan: #014421;
  --color-gulf: #c60c30;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  
  /* Font Weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;
  
  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-base: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 0.25rem;
  --radius-base: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Z-index */
  --z-hide: -1;
  --z-auto: auto;
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-light: #1f2937;
    --color-lighter: #111827;
    --color-border: #374151;
    --color-text-dark: #f3f4f6;
    --color-text-secondary: #d1d5db;
    --color-text-light: #9ca3af;
  }
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text-dark);
  background-color: var(--color-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-lg);
  color: var(--color-text-dark);
}

h1 {
  font-size: var(--fs-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--fw-semibold);
}

p {
  margin-bottom: var(--sp-lg);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-light);
}

strong {
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

em {
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-bottom: var(--sp-lg);
  margin-left: var(--sp-lg);
}

li {
  margin-bottom: var(--sp-base);
}

/* Code */
code {
  font-family: var(--font-mono);
  background-color: var(--color-light);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

pre {
  background-color: var(--color-primary);
  color: #fff;
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--sp-lg);
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--sp-lg);
  margin-left: 0;
  margin-bottom: var(--sp-lg);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

.container-sm {
  max-width: 720px;
}

.container-lg {
  max-width: 1400px;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--sp-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */

button,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-base) var(--sp-xl);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-lighter);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-ghost:hover {
  color: var(--color-accent-light);
}

.btn-sm {
  padding: var(--sp-sm) var(--sp-base);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: var(--sp-lg) var(--sp-2xl);
  font-size: var(--fs-lg);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--sp-base);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-lighter);
  color: var(--color-text-dark);
  transition: border-color var(--transition-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

label {
  display: block;
  margin-bottom: var(--sp-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}

/* ============================================
   UTILITIES
   ============================================ */

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-base { margin-top: var(--sp-base); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mt-3xl { margin-top: var(--sp-3xl); }
.mt-4xl { margin-top: var(--sp-4xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-base { margin-bottom: var(--sp-base); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); }
.mb-3xl { margin-bottom: var(--sp-3xl); }
.mb-4xl { margin-bottom: var(--sp-4xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-lg { font-size: var(--fs-lg); }

.text-muted { color: var(--color-text-light); }
.text-secondary { color: var(--color-text-secondary); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--color-lighter);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xs);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  gap: var(--sp-xl);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--sp-base);
  flex-shrink: 0;
}

.site-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-muted) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--color-lighter);
  font-size: var(--fs-lg);
}

.site-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-description {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  flex: 1;
}

.main-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.main-nav-menu > li > a {
  display: block;
  padding: var(--sp-base) 0;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dark);
  position: relative;
  transition: color var(--transition-base);
}

.main-nav-menu > li > a:hover,
.main-nav-menu > li.current-menu-item > a {
  color: var(--color-accent);
}

.main-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.main-nav-menu > li > a:hover::after,
.main-nav-menu > li.current-menu-item > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-base);
  flex-shrink: 0;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  font-size: var(--fs-lg);
  padding: var(--sp-sm);
}

.search-toggle:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-lighter);
  padding: var(--sp-4xl) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-xl);
  color: var(--color-lighter);
  line-height: var(--lh-tight);
}

.hero .subtitle {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2xl);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESOURCE SECTIONS
   ============================================ */

.resources-grid {
  padding: var(--sp-4xl) var(--sp-lg);
  background-color: var(--color-lighter);
}

.resource-card {
  background-color: var(--color-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.resource-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
  font-size: var(--fs-2xl);
}

.resource-card:hover .resource-icon {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

.resource-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-base);
  color: var(--color-text-dark);
}

.resource-description {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-lg);
}

/* ============================================
   BLOG & ARTICLES
   ============================================ */

.articles-section {
  padding: var(--sp-4xl) var(--sp-lg);
  background-color: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-lg);
  color: var(--color-text-dark);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.blog-grid {
  display: grid;
  gap: var(--sp-2xl);
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.article-card {
  background-color: var(--color-lighter);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--color-light);
}

.article-content {
  padding: var(--sp-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-base);
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-base);
  background-color: var(--color-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-category.career {
  color: var(--color-info);
  background-color: var(--color-info-light);
}

.article-category.news {
  color: var(--color-warning);
  background-color: var(--color-warning-light);
}

.article-category.insight {
  color: var(--color-success);
  background-color: var(--color-success-light);
}

.article-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  padding: var(--sp-xs) var(--sp-base);
  background-color: var(--color-light);
  border-radius: var(--radius-full);
}

.article-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-base);
  line-height: var(--lh-tight);
  color: var(--color-text-dark);
}

.article-title a {
  color: inherit;
}

.article-title a:hover {
  color: var(--color-accent);
}

.article-excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-lg);
  flex: 1;
  line-height: var(--lh-relaxed);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--color-border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.article-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lighter);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-author-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}

.article-read-time {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

.read-more {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  color: var(--color-accent-light);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-lighter);
  padding: var(--sp-4xl) var(--sp-lg);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h2 {
  color: var(--color-lighter);
  margin-bottom: var(--sp-lg);
}

.newsletter-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-2xl);
  line-height: var(--lh-relaxed);
}

.newsletter-form {
  display: flex;
  gap: var(--sp-base);
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: var(--sp-base) var(--sp-lg);
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--color-lighter);
  font-size: var(--fs-base);
}

.newsletter-form input::placeholder {
  color: var(--color-text-light);
}

.newsletter-form button {
  padding: var(--sp-base) var(--sp-2xl);
  background-color: var(--color-accent);
  color: var(--color-lighter);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-form button:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.newsletter-disclaimer {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
  padding: var(--sp-4xl) var(--sp-lg);
  background-color: var(--color-lighter);
}

.testimonial-grid {
  display: grid;
  gap: var(--sp-2xl);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  border-left: 4px solid var(--color-accent);
}

.testimonial-stars {
  color: var(--color-accent);
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-lg);
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-lg);
  line-height: var(--lh-relaxed);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-base);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lighter);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-lighter);
  padding: var(--sp-4xl) var(--sp-lg) var(--sp-2xl);
  margin-top: var(--sp-4xl);
}

.footer-content {
  display: grid;
  gap: var(--sp-3xl);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: var(--sp-3xl);
}

.footer-section h3 {
  color: var(--color-lighter);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-lg);
  text-transform: none;
  letter-spacing: normal;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-base);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: var(--fs-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.footer-copyright {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: var(--sp-lg);
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

/* ============================================
   SINGLE POST / PAGE
   ============================================ */

.post-header {
  background-color: var(--color-light);
  padding: var(--sp-3xl) var(--sp-lg);
  margin-bottom: var(--sp-3xl);
}

.post-title {
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-xl);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lighter);
  font-weight: var(--fw-bold);
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-name {
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}

.post-content {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

.post-content h2 {
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-lg);
}

.post-content h3 {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-base);
}

.post-content img {
  margin: var(--sp-2xl) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.post-footer {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-2xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.post-tags {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.post-tag {
  display: inline-block;
  padding: var(--sp-sm) var(--sp-lg);
  background-color: var(--color-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  transition: all var(--transition-base);
}

.post-tag:hover {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

.post-share {
  display: flex;
  gap: var(--sp-base);
}

.share-button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-text-dark);
}

.share-button:hover {
  background-color: var(--color-accent);
  color: var(--color-lighter);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
  }
  
  .site-header-inner {
    flex-wrap: wrap;
  }
  
  .main-nav {
    flex-basis: 100%;
    order: 3;
    margin-top: var(--sp-lg);
    border-top: 1px solid var(--color-border);
    padding-top: var(--sp-lg);
  }
  
  .main-nav-menu {
    flex-direction: column;
    gap: var(--sp-base);
  }
  
  .hero {
    padding: var(--sp-3xl) var(--sp-lg);
  }
  
  .hero h1 {
    font-size: var(--fs-3xl);
  }
  
  .hero .subtitle {
    font-size: var(--fs-base);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .button {
    width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-base);
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--sp-base);
    padding-right: var(--sp-base);
  }
  
  .site-header-inner {
    padding: var(--sp-base);
  }
  
  .main-nav-menu > li > a {
    font-size: var(--fs-xs);
  }
  
  h1 {
    font-size: var(--fs-3xl);
  }
  
  h2 {
    font-size: var(--fs-2xl);
  }
  
  h3 {
    font-size: var(--fs-xl);
  }
  
  .hero {
    padding: var(--sp-2xl) var(--sp-base);
  }
  
  .hero h1 {
    font-size: var(--fs-2xl);
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
  }
  
  button,
  .button {
    padding: var(--sp-sm) var(--sp-lg);
    font-size: var(--fs-sm);
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

.wp-caption {
  margin-bottom: var(--sp-lg);
  text-align: center;
}

.wp-caption-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--sp-sm);
}

.alignleft {
  float: left;
  margin-right: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.alignright {
  float: right;
  margin-left: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* Gravity Forms Styling */
.gform_wrapper {
  font-family: var(--font-body);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea,
.gform_wrapper select {
  padding: var(--sp-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
}

.gform_wrapper input[type="submit"],
.gform_wrapper button {
  background-color: var(--color-accent);
  color: var(--color-lighter);
  padding: var(--sp-base) var(--sp-xl);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: var(--fw-semibold);
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button:hover {
  background-color: var(--color-accent-light);
}
