/*
  style.css for Piney Works LLC
  Includes angled banner on homepage and standard page banners elsewhere.
*/

/* CSS Variables for Branding (Adjust to match your logo colors) */
:root {
  --brand-primary: #1C4034;    /* Dark forest green */
  --brand-secondary: #BB5F32;  /* Rust/brown shade */
  --brand-accent: #1F5F5C;     /* Teal accent */
  --text-color: #333;
  --background-color: #f8f8f8;
  --white: #fff;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background-color: var(--brand-primary);
  padding: 10px 0;
}

nav {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  height: 60px;  /* Adjust as needed */
  width: auto;
  display: block;
  margin-right: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-left: auto;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-accent);
}

/* ---------- HOMEPAGE ANGLING BANNER ---------- */
.custom-banner {
  position: relative;
  /* For a gradient background, use this: */
  background: linear-gradient(
    120deg, 
    var(--brand-primary) 0%, 
    var(--brand-accent) 100%
  );
  
  /* If you want an image background instead, comment the above out and use: */
  /*
  background: url('images/hero-banner.jpg') center/cover no-repeat;
  */
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.custom-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--white);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.banner-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 1em;
}

.banner-button {
  background-color: var(--brand-secondary);
  color: var(--white);
  text-decoration: none;
  padding: 0.8em 1.2em;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.banner-button:hover {
  background-color: #9B4E28; /* Slightly darker version of brand-secondary */
}

/* ---------- HOMEPAGE SECTIONS ---------- */
.intro {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.highlight-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 40px auto;
}

.highlight-box {
  background-color: var(--white);
  flex: 0 1 30%;
  margin: 10px;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.highlight-box h3 {
  margin-bottom: 10px;
}

.more-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: bold;
}

/* ---------- SECONDARY PAGES BANNER ---------- */
.page-banner {
  background: url('images/page-banner.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 20px;
}

.page-banner h1 {
  font-size: 2rem;
}

.page-banner p {
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ---------- MAIN CONTENT ---------- */
.content-section {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 10px 0;
  background-color: var(--brand-primary);
  color: var(--white);
  margin-top: 40px;
}

footer p {
  margin: 0;
}
