/* ===== Mesh Screens Co. — Site Stylesheet ===== */
:root {
  --color-primary: #1f6f5c;
  --color-primary-dark: #164f41;
  --color-accent: #e8a33d;
  --color-bg: #f7f9f8;
  --color-text: #2a2f2e;
  --color-muted: #5c6b67;
  --color-border: #dfe6e3;
  --radius: 8px;
  --max-width: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.logo span { color: var(--color-accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-primary); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1 1 400px; }

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: #e4efeb;
  max-width: 520px;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 20px;
}
.btn:hover { background: #d1922f; text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.hero-image {
  flex: 1 1 320px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  font-size: 4rem;
}

/* Sections */
section { padding: 64px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
}

.card p { color: var(--color-muted); margin: 0; }

/* Products */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-thumb {
  background: var(--color-primary);
  color: #fff;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.product-card .product-body { padding: 20px; }

.product-card h3 { margin: 0 0 8px; color: var(--color-primary-dark); }
.product-card p { color: var(--color-muted); margin: 0 0 12px; }

/* Alt background section */
.alt-bg { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* CTA band */
.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: #cfe3dc; }

/* Blog */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-card h3 { margin: 0 0 10px; }
.post-card h3 a { color: var(--color-primary-dark); }

.post-card p { color: var(--color-muted); flex-grow: 1; }

.read-more {
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
}

.post-article {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.post-article h1 { color: var(--color-primary-dark); margin-top: 0; }
.post-article .post-meta { margin-bottom: 24px; }
.post-article h2 { color: var(--color-primary-dark); }
.post-article ul { color: var(--color-text); }

.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

form { display: flex; flex-direction: column; gap: 14px; }

label { font-weight: 600; font-size: 0.9rem; }

input, textarea {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

textarea { resize: vertical; min-height: 120px; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfe3dc;
  padding: 40px 0;
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid h4 { color: #fff; margin: 0 0 12px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfe3dc; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #a9c2ba;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
