/* Import original Google Fonts used by Via Molina */
@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap");

/* Reset & General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2e3436;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}

a {
  color: #1b4d3e;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #0d2820;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #1b4d3e;
  margin-bottom: 1rem;
  line-height: 1.25;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

/* Layout Container */
.layout-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Hero Section */
.header-hero {
  background-color: #f7f9f8;
  border-bottom: 1px solid #e5e9e7;
  padding-bottom: 3.5rem;
}

header {
  padding: 1.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo img {
  height: 55px;
  width: auto;
}

/* Navigation */
nav.menu--main {
  display: flex;
  align-items: center;
}

nav.menu--main ul.menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav.menu--main ul.menu li a {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b4d3e;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav.menu--main ul.menu li a:hover {
  border-bottom-color: #1b4d3e;
}

/* Hero Section */
.hero {
  margin-top: 2.5rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a5568;
}

.hero-image {
  flex: 0 0 450px;
  max-width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Main Content Section */
main {
  padding: 3.5rem 0;
}

/* Map Section */
.section-map {
  margin-bottom: 4rem;
}

.section-map h2 {
  margin-bottom: 1.5rem;
}

.map-wrapper {
  width: 100%;
  height: 750px;
  min-height: 450px;
  max-height: 85vh;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mills in Europe Section */
.section-molens {
  margin-bottom: 4rem;
}

.section-molens h2 {
  margin-bottom: 0.75rem;
}

.section-molens > p {
  max-width: 800px;
  margin-bottom: 2.5rem;
  color: #4a5568;
}

.molens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.molen-card {
  display: flex;
  flex-direction: column;
}

.molen-card .card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.molen-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.molen-card .card-link {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b4d3e;
  text-decoration: underline;
}

.molen-card .card-link:hover {
  color: #0d2820;
}

/* Footer & About Us */
footer {
  background-color: #1c2b26;
  color: #ffffff;
  padding: 4rem 0 3rem 0;
}

.footer-content {
  max-width: 800px;
}

footer h2, footer h3 {
  color: #ffffff;
}

footer p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

footer a:hover {
  color: #bef264;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  color: #a0aec0;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-image {
    flex: 1 1 auto;
    width: 100%;
  }

  .molens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .map-wrapper {
    height: 550px;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.menu--main ul.menu {
    gap: 1rem;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .molens-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    height: 450px;
  }
}
