/*
 * Stylesheet for Tano's Construction Company website
 *
 * This file defines the typography, layout and colour scheme used
 * throughout the site. The design focuses on accessibility by
 * providing high‑contrast colours, meaningful semantic structure and
 * responsive layouts that adapt gracefully to different screen sizes.
 */

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  color: #222;
}

p {
  margin-bottom: 1rem;
}

/* Navigation bar */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

/* Adjust the logo image size. Increase the height for better visibility across desktop and mobile. */
.navbar .logo img {
  /* Increase the logo height for better visibility on larger screens */
  height: 80px;
}
@media (max-width: 600px) {
  /* On smaller screens, shrink the logo slightly to maintain a balanced header */
  .navbar .logo img {
    height: 60px;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #007bff;
}

/* Hero Section */
/* Hero section with a gradient background. The gradient provides an abstract
 * feel reminiscent of architecture and design without depicting specific
 * objects. */
.hero {
  background-image: linear-gradient(to bottom right, #003f5c, #2a7b9a);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  /* Enhance the hero tagline: use a serif typeface for a craftsman feel and ensure the text is white for contrast */
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
}

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

.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* Sections */
.section {
  padding: 3rem 1rem;
  background-color: #fff;
}

.section:nth-of-type(even) {
  background-color: #f2f2f2;
}

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

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.card {
  flex: 1 1 calc(50% - 1rem);
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 1rem;
  flex: 1 1 auto;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.card-content .card-btn {
  margin-top: auto;
}

/* Footer */
footer {
  background-color: #222;
  color: #f7f7f7;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #f7f7f7;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cards {
    flex-direction: column;
  }
  .card {
    flex: 1 1 100%;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Form styles */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}