/* FarmlandInCostaRica.com Enhanced Custom Styles */
:root {
  --primary: #2E7D32;
  --secondary: #FFD54F;
  --accent: #795548;
  --background: #FAFAFA;
  --text: #212121;
  --shadow: 0 2px 8px rgba(33,33,33,0.08);
  --content-max-width: 1200px;
  --content-padding: 1.5rem;
}

/* Base Styles */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

/* Container for content width control */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  margin-top: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
.button, button, input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75em 1.5em;
  font-size: 1em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 350px;
  margin-bottom: 2.5em;
  overflow: hidden;
  background: #e6f5e6;
}
.hero img {
  width: 100vw;
  min-width: 100%;
  height: 350px;
  max-height: 450px;
  object-fit: cover;
  display: block;
  margin: 0;
  filter: brightness(0.7) saturate(1.1);
}
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: rgba(46,125,50,0.45);
  z-index: 2;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 12px rgba(33,33,33,0.35);
  background: rgba(46,125,50,0.25);
  padding: 0.3em 0.7em;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.hero-content h2 {
  color: #FFD54F;
  font-size: 1.4em;
  margin-bottom: 1.3em;
  text-shadow: 0 1px 6px rgba(33,33,33,0.18);
  background: rgba(33,33,33,0.12);
  padding: 0.2em 0.7em;
  border-radius: 6px;
  font-weight: 600;
}
.hero-content .button {
  font-size: 1.2em;
  padding: 1.1em 2.6em;
  font-weight: bold;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(33,33,33,0.18);
  border-radius: 6px;
  margin-top: 1em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hero-content .button:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(33,33,33,0.22);
}


/* Prominent Banner */
.toc {
  border-left: 8px solid var(--primary);
  background: #fffbe6;
  margin-bottom: 2em;
  box-shadow: var(--shadow);
}
.toc h2 {
  color: var(--accent);
  margin-bottom: 0.5em;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 0.3em 0;
}
.toc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.toc a:hover {
  color: var(--accent);
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 1.5em 0;
  padding: 2em;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
  margin-top: 1em;
}
.gallery img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #eee;
  min-height: 120px;
}

/* Testimonial */
.testimonial-image {
  max-width: 200px;
  float: right;
  margin-left: 1em;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

#testimonials blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1em;
  margin: 1.5em 0 0.5em 0;
  color: var(--text);
  background: #f7f6f3;
}
#testimonials footer {
  font-style: normal;
  color: var(--primary);
  font-weight: bold;
  margin-top: 0.5em;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  max-width: 400px;
  margin: 0 auto;
}
form label {
  font-weight: 600;
  margin-bottom: 0.2em;
  color: var(--primary);
}
form input, form select, form textarea {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 0.5em;
}
form input[type="radio"] {
  margin-right: 0.5em;
  margin-bottom: 0;
}
form textarea {
  min-height: 80px;
  resize: vertical;
}
form input[type="submit"] {
  width: 100%;
  margin-top: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --content-padding: 1.2rem;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.3em;
  }
  .card {
    padding: 1.5em;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 15px;
  }
  .hero img {
    height: 280px;
  }
  .hero-content h1 {
    font-size: 2em;
    padding: 0.3em 0.5em;
  }
  .hero-content h2 {
    font-size: 1.2em;
  }
  .card {
    padding: 1.2em;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  form {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --content-padding: 1rem;
  }
  body {
    font-size: 14px;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.2em;
  }
  .hero img {
    height: 180px;
  }
  .hero-content h1 {
    font-size: 1.4em;
    padding: 0.2em 0.4em;
    margin-bottom: 0.2em;
  }
  .hero-content h2 {
    font-size: 1em;
    margin-bottom: 1em;
  }
  .hero-content .button {
    font-size: 1em;
    padding: 0.8em 1.6em;
  }
  .card {
    padding: 1em;
    margin: 1em 0;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.7em;
  }
  #testimonials img {
    float: none;
    margin: 0 auto 1em auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  .hero img {
    height: 160px;
  }
  .hero-content h1 {
    font-size: 1.2em;
    width: 90%;
  }
  .hero-content h2 {
    font-size: 0.9em;
    width: 90%;
  }
  .card {
    padding: 0.8em;
  }
  .toc li {
    margin: 0.5em 0;
  }
  form label {
    font-size: 0.9em;
  }
  form input, form select, form textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.6em;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}

img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
