@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --navy-blue: #1A3E6F;
  --teal: #32B8B8;
  --orange: #FF6F3C;
  --soft-gray: #F5F7FA;
  --font-family: 'Poppins', 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--soft-gray);
  color: var(--navy-blue);
  margin: 0;
}

/* Link and button style */
a, button {
  color: var(--orange);
  text-decoration: none;
}

header, footer {
  background-color: var(--navy-blue);
  color: white;
  padding: 1rem 2rem;
}

/* Header content styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

header img {
  height: 48px;
  width: auto;
  max-width: 60px;
  display: inline-block;
  vertical-align: middle;
  background: white;
  border-radius: 2px;
  margin-right: 16px;
}

/* Navigation styles */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  z-index: 10;
}

nav li {
  position: relative;
}

nav > ul > li {
  margin: 0 1rem;
}

nav a {
  display: block;
  padding: 0.5rem 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

nav a:hover,
nav a:focus {
  color: var(--orange);
}

/* Dropdown menu */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  display: none;
  min-width: 160px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
  animation: fadeSlideDown 0.3s ease forwards;
}

nav li:hover > .dropdown-content,
nav li:focus-within > .dropdown-content {
  display: block;
}

.dropdown-content a {
  padding: 0.5rem 1rem;
  color: var(--navy-blue);
  white-space: nowrap;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: var(--teal);
  color: white;
}

/* Animations */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section */
#hero {
  max-width: 1200px; /* widened width */
  margin: 2rem auto;
  padding: 2rem 1.5rem; /* added horizontal padding for breathing room */
  background-color: var(--navy-blue);
  color: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
}

/* Buttons */
.cta-btn {
  background-color: var(--orange);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-top: 1rem;
  display: inline-block;
  cursor: pointer;
}

.cta-btn:hover, .cta-btn:focus {
  background-color: #e05f2f;
}

/* Slideshow */
#slideshow {
  position: relative;
  max-width: 1200px; /* widened */
  margin: 1rem auto 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--teal);
  box-shadow: 0 6px 18px rgba(50, 184, 184, 0.35);
  font-family: var(--font-family);
  padding: 1.5rem 1.5rem; /* added horizontal padding */
}

#slideshow .slides {
  display: none;
  color: white;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  padding: 0 1rem;
}

#slideshow .slides.active {
  display: block;
}

#slideshow button {
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  font-size: 2.5rem;
  color: white;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 0 0.75rem;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

#slideshow button:hover,
#slideshow button:focus {
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

#prevSlide {
  left: 0.5rem;
}

#nextSlide {
  right: 0.5rem;
}

/* Two column container */
#dual-column-container {
  display: flex;
  max-width: 1200px; /* widened */
  margin: 2rem auto 4rem auto;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

#why-choose, #newsletter-column {
  flex: 1 1 300px;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

#newsletter-column {
  color: white;
  background: url('../images/blacksmith_1040_anvil.jpg') center center no-repeat;
  background-size: cover;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#newsletter-column:hover, #newsletter-column:focus {
  outline: none;
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
#newsletter-column h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
#newsletter-column p {
  font-style: italic;
  font-size: 1.1rem;
  max-width: 280px;
  text-align: center;
}
#newsletter-column span.button-text {
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  font-weight: 700;
  color: var(--navy-blue);
  background-color: var(--orange);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}
#newsletter-column span.button-text:hover {
  background-color: #e05f2f;
  color: white;
  cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--navy-blue);
    position: absolute;
    top: 70px;
    right: 2rem;
    width: 200px;
    display: none;
    border-radius: 4px;
  }

  nav ul.show {
    display: flex;
  }

  nav > ul > li {
    margin: 0;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
  }
  #dual-column-container {
    flex-direction: column;
  }
  #why-choose, #newsletter-column {
    flex: 1 1 auto;
    margin-bottom: 2rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
