/*
 * Core stylesheet for the Rod & Gun Legacy website.
 *
 * The palette takes inspiration from the provided branding—deep green
 * reminiscent of pine forests and warm metallic gold for accents. Fonts
 * favor a serif for headings (Playfair Display) paired with a clean sans
 * serif (Open Sans) for body copy. This file defines basic layout,
 * typography, navigation, forms and responsive behavior. Feel free to
 * adjust values to tune the look and feel. Keep accessibility in mind by
 * ensuring contrast ratios meet WCAG 2.1 AA.
 */

/* Reset some default browser spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0c2e1a; /* dark green for headings */
  margin-bottom: 0.5em;
}

a {
  color: #91641a; /* brownish gold accent */
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: #ba8c2a;
}

/* Header & navigation */
header {
  background-color: #0c2e1a;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header .logo img {
  height: 60px;
  width: auto;
}

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

nav a {
  color: #f5f2e5;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 4px;
}

nav a:hover,
nav a:focus {
  background-color: #163d23;
  color: #fff;
}

/* Hero section */
.hero {
  background-color: #1a3e24;
  color: #f5f2e5;
  padding: 4rem 1rem;
  text-align: center;
  background-image: url('images/logo2.png');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
}

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

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

.hero .cta {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background-color: #91641a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.btn:hover {
  background-color: #ba8c2a;
}

/* Sections */
section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

section .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.columns .column {
  flex: 1;
  min-width: 260px;
}

/* Feature cards */
.card {
  background-color: #fff;
  border: 1px solid #e3e0d9;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Tables (used minimally) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #e0ddd5;
  text-align: left;
}

th {
  background-color: #f5f2e5;
  color: #0c2e1a;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button[type="submit"] {
  align-self: flex-start;
  background-color: #91641a;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button[type="submit"]:hover {
  background-color: #ba8c2a;
}

/* Footer */
footer {
  background-color: #0c2e1a;
  color: #f5f2e5;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-column {
  flex: 1;
  min-width: 220px;
}

footer h4 {
  margin-bottom: 1rem;
  color: #f5f2e5;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #f5f2e5;
}

footer a:hover {
  color: #ba8c2a;
}

footer .subscribe-form input[type="email"],
footer .subscribe-form input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

footer .subscribe-form button {
  background-color: #91641a;
  border: none;
  padding: 0.6rem 1rem;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

footer .subscribe-form button:hover {
  background-color: #ba8c2a;
}

footer .footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #b0b7af;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  header {
    padding: 1rem;
  }
  .hero {
    background-position: center bottom;
    background-size: 80%;
  }
}