/* SPE Consulting — Static Site Stylesheet
   Colors: Red #b90d1c | Dark #444 | Grey #888 | White #fff
   ========================================================= */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: #444;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #b90d1c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8a0a15; }
ul { list-style: none; }

/* === Layout === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Red Sidebar === */
.red-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 72px;
  background: #b90d1c;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
}

.red-sidebar a {
  color: #fff;
  font-size: 28px;
  transition: opacity 0.2s;
}

.red-sidebar a:hover { opacity: 0.8; color: #fff; }

/* Push content away from sidebar */
.site-wrapper {
  margin-right: 72px;
}

/* === Header === */
.site-header {
  padding: 28px 0;
}

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

.logo img {
  width: 220px;
  height: auto;
}

/* Nav */
.main-nav { display: flex; gap: 8px; }

.main-nav a {
  font-size: 1.125rem;
  color: #888;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #b90d1c;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #444;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* === Footer === */
.site-footer {
  padding: 40px 0;
  color: #888;
  font-size: 0.875rem;
  border-top: 1px solid #eee;
  margin-top: 80px;
}

/* === Home Page — Hero === */
.hero {
  padding: 140px 0 80px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #444;
  margin-bottom: 20px;
}

.hero h1 em {
  color: #b90d1c;
  font-style: normal;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #888;
  margin-bottom: 40px;
}

.hero-links { display: flex; flex-direction: column; gap: 12px; }

.hero-links a {
  font-size: 1.1rem;
  color: #b90d1c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero-links a:hover { gap: 14px; }

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.hero-links a:hover .arrow { transform: translateX(4px); }

/* === Page Header === */
.page-header {
  padding: 60px 0 20px;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #444;
  margin-bottom: 16px;
}

.page-header .lead {
  font-size: 1.25rem;
  color: #444;
  font-weight: 700;
  max-width: 700px;
}

.page-header .lead em {
  color: #b90d1c;
  font-style: normal;
}

/* === Content Sections === */
.content-section {
  padding: 32px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 16px;
}

.content-section p {
  color: #555;
  line-height: 1.75;
}

.content-section em {
  color: #b90d1c;
  font-style: normal;
}

.content-section strong {
  font-weight: 700;
}

/* Lists */
.content-list {
  list-style: disc;
  padding-left: 24px;
  color: #555;
  font-size: 0.95rem;
  line-height: 2;
}

/* === Services — Side-by-side layout === */
.services-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
}

.services-row h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #444;
  margin: 0;
}

/* === About — Values === */
.values-list { margin-top: 12px; }

.value-item {
  margin-bottom: 20px;
  line-height: 1.75;
  color: #555;
}

.value-item strong {
  color: #b90d1c;
  font-weight: 700;
}

/* === Contact Page === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 20px 0 60px;
}

.contact-info p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-info .phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 32px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #444;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b90d1c;
  box-shadow: 0 0 0 3px rgba(185, 13, 28, 0.1);
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  margin-bottom: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: #b90d1c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: #9c0b17;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.contact-image {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* === Page Description (Services) === */
.page-description {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 800px;
}

.page-description em {
  color: #b90d1c;
  font-style: normal;
}

/* === Responsive === */
@media (max-width: 992px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.8rem; }
  .page-header h1 { font-size: 2.2rem; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .services-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 768px) {
  .red-sidebar { display: none; }
  .site-wrapper { margin-right: 0; }

  .hero h1 { font-size: 2.2rem; }
  .page-header h1 { font-size: 1.8rem; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 24px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 180px;
    z-index: 200;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 10px 24px;
  }

  .header-inner { position: relative; }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .logo img { width: 160px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .page-header h1 { font-size: 1.6rem; }
  .page-header .lead { font-size: 1.05rem; }
}
