/*


* Global Stylesheet for Curt Woodard Enterprises website
 *
 * This file defines the color palette, typography and layout rules
 * used throughout the site. It aims to create a modern, clean and
 * professional look that reflects the brand’s navy, red and white
 * color scheme while remaining flexible across different screen sizes.
 */

/* Color palette */
:root {
  --primary: #0c2545;      /* dark navy for headings and accents */
  --secondary: #c81d23;    /* bold red for buttons and highlights */
  --light: #f7f9fb;        /* off‑white background for contrast */
  --text: #333333;         /* dark text for readability */
}

/* Base typography and layout */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and navigation */
header {
  background: #ffffff;
  border-bottom: 4px solid var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;

  
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  color: var(--primary);
  font-size: 18px;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--secondary);
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background: #a5141a;
  border-color: #a5141a;
}

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

.btn-outline:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* Hero section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: #ffffff;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: #ffffff;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-card i {
  font-size: 30px;
  color: var(--secondary);
 
  margin-bottom: 0.5rem;
}

/* Service card images */
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.75rem;
}

/* Ensure headings inside service cards have proper spacing when images are used */
.service-card h3 {
  margin-top: 0;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 37, 69, 0.75);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* About section */
.about-section {
  margin-top: 3rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-content img {
  max-width: 350px;
  border-radius: 8px;
  flex: 1 1 300px;
}

.about-content div {
  flex: 2 1 400px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.testimonial {
  background: #ffffff;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
}

.testimonial span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.blog-post {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.blog-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-post h3 {
  margin: 1rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.blog-post p {
  margin: 0 1rem 1rem;
}

.blog-post .btn {
  margin: 0 1rem 1rem;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 0;
  background: var(--primary);
  color: #ffffff;
  margin-top: 3rem;
}

.cta-section h2 {
  font-size: 2rem;
}

.cta-section p {
  margin: 1rem auto;
  max-width: 600px;
}

/* Footer */
footer {
  background: #ffffff;
}

.footer-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 3rem 0;
  border-top: 4px solid var(--primary);
}

.footer-about img {
  height: 50px;
  margin-bottom: 1rem;
}

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

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-contact p,
.footer-contact a {
  color: var(--text);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer-social {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}


.footer-social a {
  display: inline-block;
}

.footer-social img {
  width: 32px;
  
  height: auto;
}

o
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-newsletter input {
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.footer-newsletter button {
  align-self: flex-start;
}

.footer-bottom {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Page hero for secondary pages */
.page-hero {
  padding: 4rem 0;
  text-align: center;
  background: #ffffff;
}

/* Contact page layout */
.contact-section {
  padding: 3rem 0;
  background: #ffffff;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.contact-info,
.contact-form-wrapper {
  flex: 1 1 300px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

/* Make select boxes behave like inputs */
.contact-form select {
  width: 100%;
  display: block;
  padding: 0.75rem;   /* match your input padding */
  border: 1px solid #ccc; /* match your input border */
  border-radius: 4px; /* match your input border radius */
  margin-bottom: 1rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form-wrapper textarea {
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .social-icons {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  .about-content {
    flex-direction: column;
  }
}


/* Ensure footer social icons are uniform size */
.footer-social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
/* Scale LinkedIn and YouTube icons slightly larger to match other icons */
.footer-social img.linkedin-icon,
.footer-social img.youtube-icon {
  transform: scale(1.2);
}
/* Ensure icons do not overflow their container */
.footer-social a {
  overflow: hidden;

/* Target 3rd (LinkedIn) and 5th (YouTube) icons for scaling */
.footer-social a:nth-child(3) img,
.footer-social a:nth-child(5) img {
  transform: scale(1.3);
}

/* Careers page styles */
.careers-hero {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--light);
}

.careers-hero .hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.careers-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.careers-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.summary-section,
.jobs-list,
.perks {
  padding: 4rem 0;
}

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

.jobs-list {
  text-align: center;
  background-color: #fff;
}

.jobs-list .btn {
  margin-top: 1rem;
}

.perks {
  background-color: var(--light);
}

.perks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.perk {
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  flex: 1 1 calc(33.333% - 1.5rem);
  box-sizing: border-box;
}

.perk h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.social-icons img {
  width: 18px;
  height: 18px;
}
