:root {
  --bg-dark: #374151;
  --navy: #1f3044;
  --navy-dark: #152231;
  --red: #c82333;
  --card-white: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 16px;
}

img {
  max-width: 100%;
  display: block;
}

main {
  flex: 1;
}

/* Header */
header {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 24px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.brand img {
  height: 44px;
  width: auto;
  background: var(--card-white);
  padding: 4px 10px;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red);
}

/* White Content Cards */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 24px;
  padding: 36px 40px;
  background-color: var(--card-white);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.section-title {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Product Cards */
.card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #ffffff;
}

.card img.img-contain {
  object-fit: contain;
  padding: 14px;
}

.card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-body h3 {
  color: var(--text-dark);
  font-size: 19px;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.card-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-align: center;
  background: #2a3441;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}

.btn:hover {
  background: var(--red);
}

/* About & Goal */
.about-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.goal-box {
  border-left: 5px solid var(--red);
  padding-left: 24px;
}

.goal-list {
  list-style: none;
  margin: 14px 0 20px;
}

.goal-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-weight: 500;
}

.goal-list li::before {
  content: "●";
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 11px;
  top: 7px;
}

/* Crop Cards (CC Agro) */
.crop-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 170px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.crop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(21, 34, 49, 0.85));
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
}

/* Contact Page */
.contact-box {
  background: var(--navy);
  color: #ffffff;
  padding: 32px;
  border-radius: 10px;
  height: 100%;
}

.contact-box h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-item {
  margin-bottom: 16px;
  font-size: 15px;
}

.contact-item strong {
  display: block;
  color: #9fb6ce;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Form */
form {
  background: #f9fafb;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

input,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */
footer {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--navy-dark);
  color: #b8c7d9;
  border-radius: var(--radius);
  text-align: center;
  font-size: 13.5px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .container {
    padding: 24px 20px;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 12px;
  }
}