/* Custom styles for Clem Lumber website */

:root {
  --color-primary: #2c4a8a;    /* Deep blue - adjusted for better contrast */
  --color-secondary: #4f46e5;  /* Indigo */
  --color-accent: #c2410c;     /* Burnt orange/wood tone */
  --color-light: #ffffff;      /* Pure white for background */
  --color-dark: #1f2937;
  --color-gray: #6b7280;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: var(--font-sans);
  --container-width: 1280px;  /* Standard container width */
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Global styles */
html, body {
  height: 100%; /* Ensure html takes full height */
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  width: 100%; /* Ensure body takes full width */
  max-width: none; /* Override max-width from index.css */
}

/* Layout */
.container {
  width: 100%; /* Take full available width within parent */
  max-width: var(--container-width); /* Limit max width */
  margin-left: auto;  /* Center horizontally */
  margin-right: auto; /* Center horizontally */
  padding-left: 1.5rem; /* Consistent padding */
  padding-right: 1.5rem; /* Consistent padding */
}

/* Header */
header {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%; /* Ensure header spans full width */
  flex-shrink: 0; /* Prevent header from shrinking */
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* width: 100%; -- Removed, container handles width */
}

/* Main content */
main {
  padding: 2rem 0 4rem;
  background-color: var(--color-light);
  width: 100%; /* Ensure main spans full width */
  flex: 1 0 auto; /* Allow main to grow and push footer down */
}

/* Removed main > .container specific styles, rely on general .container */

.content-section {
  margin-bottom: 2rem;
  /* width: 100%; -- Removed, container handles width */
}

/* Hero section */
.hero {
  position: relative; /* For potential future overlays */
  margin: 1.5rem auto 2rem; /* Spacing above/below, auto margins for centering */
  width: 100%; /* Take full available width up to max-width */
  max-width: 960px; /* Constrain the hero section width */
}

.hero img {
  width: 100%; /* Make image fill the hero container */
  display: block; /* Remove extra space below image */
  border-radius: 0.5rem; /* Optional: round corners */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional: add shadow */
  max-height: 500px; /* Limit image height */
  object-fit: cover; /* Crop image nicely */
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: white; /* Default text color for dark footer bg */
  padding: 2rem 0;
  width: 100%; /* Ensure footer spans full width */
  flex-shrink: 0; /* Prevent footer from shrinking */
  /* Removed display: flex properties, container handles centering */
}

/* Style links within the footer */
.footer-info a,
.footer-info a:visited {
  color: white; /* Ensure links are white against dark background */
  text-decoration: underline; /* Add underline for clarity */
}

.footer-info a:hover,
.footer-info a:active {
  color: var(--color-gray-20); /* Use light gray for hover/active */
}

/* Removed footer > .container specific styles, rely on general .container */

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* width: 100%; -- Removed, container handles width */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav {
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-item {
    margin: 0 1rem 0.5rem 0;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Removed @media (min-width: 1801px) rule for simplicity */

/* Form styling */
form {
  max-width: 600px; /* Limit form width */
  margin: 2rem 0; /* Spacing */
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db; /* Light gray border */
  border-radius: 0.375rem; /* Rounded corners */
  font-family: inherit; /* Use body font */
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical; /* Allow vertical resizing */
}

button[type="submit"], .btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover, .btn-primary:hover {
  background-color: var(--color-secondary); /* Use secondary color on hover */
}

hr { /* Style for horizontal rules if used elsewhere */
  border: 0;
  height: 1px;
  background-color: #e5e7eb; /* Light gray */
  margin: 1.5rem 0;
}

/* Now Hiring Banner */
.now-hiring-banner {
  background-color: #f8f9fa; /* Light gray background */
  border: 1px solid #e9ecef; /* Subtle border */
  border-radius: 0.5rem;
  padding: 0.5rem 1rem; /* Reduced top/bottom padding */
  margin: 1.5rem 0; /* Reduced margin */
  text-align: center;
}

.now-hiring-banner h2 {
  color: #dc3545; /* Red color for heading */
  margin-top: 0;
  font-size: 1.75rem; /* Reduced heading size */
}

.now-hiring-banner p,
.now-hiring-banner ul,
.now-hiring-banner ol {
  margin-bottom: 0.5rem; /* Further reduced bottom margin for paragraphs and lists */
  font-size: 0.9rem; /* Slightly smaller font for paragraphs */
  line-height: 1.5; /* Adjust line height for readability */
}

.now-hiring-banner .btn-primary {
  margin-top: 0.25rem; /* Reduced space above button */
  display: inline-block; /* Allow centering */
} 