/* 
 * Mark Rippetoe - Strength Coach & Author
 * Main Stylesheet
 * Created: 2025-09-23
 */

/* ========== Variables ========== */
:root {
  /* Color Scheme - Strong & Professional */
  --color-dark: #1a1a1a;        /* Near Black */
  --color-primary: #2b3a67;     /* Strong Navy Blue */
  --color-secondary: #b22222;   /* Fire Brick Red */
  --color-accent: #e6b400;      /* Gold Accent */
  --color-light: #f4f4f4;       /* Off White */
  --color-text: #333333;        /* Dark Text */
  --color-text-light: #f4f4f4;  /* Light Text */
  --color-text-muted: #767676;  /* Muted Text */
  --color-border: #dedede;      /* Light Border */
  
  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;    /* Strong, bold headings */
  --font-subheading: 'Montserrat', 'Helvetica', sans-serif;  /* Clean, structured subheadings */
  --font-body: 'Source Sans Pro', 'Helvetica', sans-serif;   /* Readable body text */
  --font-mono: 'Courier New', monospace;  /* Monospace for code/quotes */
  
  /* Spacing */
  --space-xxs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 2rem;      /* 32px */
  --space-lg: 3rem;      /* 48px */
  --space-xl: 5rem;      /* 80px */
  
  /* Layout */
  --container-width: 1140px;
  --container-padding: var(--space-sm);
  --header-height: 80px;
  --border-radius-sm: 3px;
  --border-radius: 5px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ========== Base Styles ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-secondary);
  margin-top: var(--space-xs);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.5rem;
  font-family: var(--font-subheading);
}

h5 {
  font-size: 1.25rem;
  font-family: var(--font-subheading);
}

h6 {
  font-size: 1rem;
  font-family: var(--font-subheading);
}

p {
  margin-bottom: var(--space-md);
}

strong {
  font-weight: 700;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

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

figure {
  margin: var(--space-md) 0;
}

figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-xs);
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background-color: rgba(43, 58, 103, 0.05);
  font-style: italic;
}

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

code {
  font-family: var(--font-mono);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9em;
}

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

/* ========== Layout & Containers ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
}

.container-narrow {
  max-width: 800px;
}

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

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-light);
}

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: var(--color-light);
}

.section-accent {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: transform var(--transition-medium);
  height: var(--header-height);
}

.header-scrolled {
  transform: translateY(-100%);
}

.header-visible {
  transform: translateY(0);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo:hover {
  color: var(--color-light);
}

.logo svg {
  margin-right: var(--space-xs);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  color: var(--color-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== Hero Section ========== */
.hero {
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-dark);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(135deg, rgba(43, 58, 103, 0.9), rgba(178, 34, 34, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-pre-title {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  color: var(--color-light);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-light);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-subheading);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-light);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}

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

.btn-dark:hover {
  background-color: transparent;
  color: var(--color-dark);
}

/* ========== About Section ========== */
.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  margin: var(--space-md) -15px;
}

.stat-item {
  padding: var(--space-sm);
  text-align: center;
  flex: 1 1 120px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-xxs);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* ========== Services/Books Section ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: var(--space-md);
}

.service-title {
  margin-bottom: var(--space-xs);
}

.service-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* ========== Testimonial Section ========== */
.testimonial {
  padding: var(--space-md);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-md);
}

.testimonial-text::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  left: -10px;
  top: -20px;
  color: var(--color-secondary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--space-sm);
}

.testimonial-author-name {
  font-weight: 700;
  margin-bottom: 0;
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== Contact Section ========== */
.contact-form {
  background-color: white;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-light);
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(43, 58, 103, 0.25);
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-right: var(--space-sm);
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  margin-bottom: var(--space-xxs);
}

/* ========== Entertainment Section ========== */
.resources-section {
  background-color: #f9f9f9;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.resources-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  transition: transform var(--transition-medium);
}

.resources-card:hover {
  transform: translateY(-5px);
}

.resources-title {
  margin-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--space-xs);
}

.resources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resources-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
  position: relative;
}

.resources-list li::before {
  content: '→';
  color: var(--color-secondary);
  position: absolute;
  left: -15px;
  font-weight: bold;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--color-dark);
  color: var(--color-text-light);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.footer-nav {
  margin-bottom: var(--space-md);
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-light);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  margin-bottom: var(--space-xs);
}

.footer-nav-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-copyright {
  color: var(--color-text-muted);
}

/* ========== Back to Top Button ========== */
.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* ========== Media Queries ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .col-md-1 { width: 8.33%; }
  .col-md-2 { width: 16.66%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.33%; }
  .col-md-5 { width: 41.66%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.33%; }
  .col-md-8 { width: 66.66%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.33%; }
  .col-md-11 { width: 91.66%; }
  .col-md-12 { width: 100%; }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    flex-direction: column;
    padding: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    margin: var(--space-xs) 0;
  }
  
  .col-sm-1 { width: 8.33%; }
  .col-sm-2 { width: 16.66%; }
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.33%; }
  .col-sm-5 { width: 41.66%; }
  .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.33%; }
  .col-sm-8 { width: 66.66%; }
  .col-sm-9 { width: 75%; }
  .col-sm-10 { width: 83.33%; }
  .col-sm-11 { width: 91.66%; }
  .col-sm-12 { width: 100%; }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom > div {
    margin-bottom: var(--space-sm);
  }
  
  .col-xs-1 { width: 8.33%; }
  .col-xs-2 { width: 16.66%; }
  .col-xs-3 { width: 25%; }
  .col-xs-4 { width: 33.33%; }
  .col-xs-5 { width: 41.66%; }
  .col-xs-6 { width: 50%; }
  .col-xs-7 { width: 58.33%; }
  .col-xs-8 { width: 66.66%; }
  .col-xs-9 { width: 75%; }
  .col-xs-10 { width: 83.33%; }
  .col-xs-11 { width: 91.66%; }
  .col-xs-12 { width: 100%; }
}
