/* Base styles for Virginia Fence Pro website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Montserrat:wght@500;700&display=swap');

/* CSS reset and box sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: #003366; /* dark blue accent */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #005bbb;
}

/* =========================
   HEADER
========================= */

header {
  background-color: #003366;
  color: #ffffff;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 48px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #FFD700;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  color: #ffffff;
}

/* =========================
   HERO (3-row grid: title / columns / bottom CTA)
========================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 900px;
  height: 95vh;
  max-height: 1100px;
  background: url('../images/VA Fence Pro Dog Hero.png') center 35% / cover no-repeat;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

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

/* Title block */
.hero-content {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 60px 4% 0 4%;
}

.hero-title {
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.hero-keyword {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 40px;
}

/* Middle row: left/right columns away from center */
.hero-columns {
  /* Use flex layout for the columns and provide side padding to maintain a clear central corridor */
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-left,
.hero-right {
  /* Dynamic width: clamp to between 320px and 400px or 20% of available space */
  flex: 0 0 clamp(320px, 20%, 400px);
  max-width: 400px;
}

.hero-left {
  text-align: left;
}

.hero-right {
  text-align: right;
}

.hero-left ul,
.hero-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-left,
.hero-right {
  text-align: left;
}

.hero-left li,
.hero-right li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-left li::before,
.hero-right li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Bottom CTA row */
.hero-cta-wrapper {
  text-align: center;
  padding-bottom: 60px;
}

.hero-cta {
  display: inline-block;
  background-color: #ffd700;
  color: #ffffff;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.hero-cta:hover {
  background-color: #28a745;
  transform: translateY(-3px);
}

/* =========================
   SERVICES / BLOG / GENERAL SECTIONS
========================= */

.section-title {
  text-align: center;
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  margin: 60px 0 30px 0;
  color: #003366;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #666;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 5%;
  margin-bottom: 80px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 40px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: #003366;
}

.card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 25px;
}

.card a {
  color: #003366;
  font-weight: 600;
  text-decoration: underline;
}

/* =========================
   BLOG LAYOUT
========================= */

.blog-container {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.blog-content {
  width: 100%;
  max-width: 900px;
}

.blog-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #003366;
  text-align: center;
}

.blog-content h2 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 50px;
  margin-bottom: 15px;
  color: #003366;
}

.blog-content h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #003366;
}

.blog-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
}

.blog-content ul {
  margin-bottom: 30px;
  padding-left: 25px;
}

.blog-content li {
  margin-bottom: 8px;
}

.meta {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 30px;
}

/* =========================
   FOOTER
========================= */

footer {
  background-color: #00264d;
  color: #ffffff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

footer .footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

footer h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #ffd700;
}

footer p, footer a {
  font-size: 0.95rem;
  color: #f1f1f1;
}

footer a:hover {
  color: #ffda44;
}

footer .social-icons {
  margin-top: 10px;
}

footer .social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

footer .social-icons a:hover {
  color: #ffd700;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .hero-columns {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 10%;
  }

  .hero-left,
  .hero-right {
    flex: none;
    width: 100%;
    max-width: none;
    text-align: center;
    margin: 0;
  }

  .hero {
    min-height: 750px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-keyword {
    font-size: 1rem;
  }

  .hero {
    min-height: 650px;
  }
}

@media (max-width: 768px) {
  nav ul li {
    margin-left: 12px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
