/*
 * Stylesheet for GroundUp 306 website
 *
 * This file defines a simple yet modern aesthetic inspired by the
 * promotional flyer. It uses a dark palette with golden accents and
 * employs subtle animations to draw the eye without overwhelming the
 * viewer. The layout is responsive, rearranging content for smaller
 * screens, and all fonts are loaded from Google Fonts (Montserrat)
 * for clean, legible typography.
 */

/* CSS variables for easy colour adjustments */
:root {
  --primary-color: #caa136; /* warm golden hue for accents */
  --dark-color: #0f0f0f; /* near‑black background */
  --light-color: #ffffff; /* pure white for high contrast */
  --muted-color: #f5f5f5; /* light grey for soft backgrounds */
  --transition-speed: 0.3s; /* global transition timing */
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--light-color);
  background: var(--dark-color);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Utility classes for animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

/* Navigation styles */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light-color);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  gap: 0.5rem;
  text-transform: uppercase;
}

.logo .fa-tractor {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.logo-text .accent {
  color: var(--primary-color);
}

.cta-btn {
  background: var(--primary-color);
  color: var(--dark-color);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

/* Hover states for primary buttons: lighten the golden colour and lift slightly */
.cta-btn:hover,
.btn-primary:hover {
  background: #b58928;
  transform: translateY(-3px);
}

/* Landing page hero overrides */
.hero-landing {
  height: 90vh;
  min-height: 500px;
  max-height: 1000px;
  background-position: center center;
  padding: 1rem;
  position: relative;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url('images/skid_steer.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-landing .hero-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-landing .hero-logo i {
  color: var(--primary-color);
  font-size: 2.5rem;
}

.hero-landing .hero-logo .accent {
  color: var(--primary-color);
}

/* Ensure the custom skid‑steer icon matches the size of the original Font Awesome icon */
.hero-landing .hero-logo .skid-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  /* Maintain alignment with text */
  display: inline-block;
}

/* Tagline beneath the company name conveys the variety of services offered */
.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
}


.hero-landing .hero-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-landing .btn-primary {
  margin-top: 0.5rem;
}

/* Center the contents of the landing hero */
.hero-landing .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  /* The actual background image is applied to a dedicated layer (.hero-bg) so
     that we can apply filters like blur and brightness without affecting
     content. */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Increase opacity of hero overlay to better mask underlying poster text */
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* Blurred background layer for the hero section. Using a separate element
   allows us to apply filters such as blur and brightness to conceal the
   original poster text. */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.4);
  transform: scale(1.1); /* slightly scale up to hide blurred edges */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  color: var(--muted-color);
}

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--dark-color);
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
  background: #b58928;
  transform: translateY(-3px);
}

/* Services & Contact Section */
.services-contact {
  background: var(--dark-color);
  padding: 4rem 1rem;
  color: var(--light-color);
}

.services-contact .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}

.services-box,
.contact-box {
  flex: 1 1 280px;
  min-width: 280px;
}

.services-box h2,
.contact-box h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-box ul {
  list-style: none;
}

.services-box li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-box li i {
  color: var(--primary-color);
}

.contact-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-box p i {
  color: var(--primary-color);
}

.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: var(--light-color);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
}

.contact-form button {
  align-self: flex-start;
}

/* About Section */
.about {
  background: var(--muted-color);
  color: #333;
  padding: 4rem 1rem;
}

/* Equipment Section */
.equipment-section {
  background: var(--muted-color);
  color: #333;
  padding: 4rem 1rem;
}

.equipment-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.equipment-image {
  flex: 1 1 400px;
  min-width: 300px;
}

.equipment-image img {
  border-radius: 6px;
  width: 100%;
  height: auto;
}

.equipment-text {
  flex: 1 1 400px;
  min-width: 300px;
}

.equipment-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.equipment-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Service Details */
.service-details {
  background: var(--muted-color);
  color: #333;
  padding: 4rem 1rem;
}

.service-details .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

.about .container {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer Section */
.site-footer {
  background: #111;
  color: var(--muted-color);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .services-contact .container {
    flex-direction: column;
    align-items: stretch;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .cta-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 75vh;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .services-box h2,
  .contact-box h2 {
    font-size: 1.6rem;
  }
}