/* ═══════════════════════════════════════════════════════════
   My Smart Sensor — Color theme from mysmartsensorv2.azurewebsites.net
   Exact palette:
     Green  #006D00  — hero overlay, page-hero, footer bg
     Orange #EE7B27  — buttons, accents, icons, tags
     Cream  #EEE2CC  — benefit cards bg
     White  #ffffff  — section backgrounds
     Black  #000000 / #242424 — body text
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #242424;
  line-height: 1.6;
  background: #fff;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: #EEE2CC;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo img { height: 60px; }

nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a {
  font-size: 15px;
  color: #006D00;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a.active { border-color: #EE7B27; color: #EE7B27; }

.btn-login {
  background: #cc9955;
  color: #fff !important;
  padding: 8px 20px;
  border: 1px solid #cc9955;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.15px;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s;
}
.btn-login:hover {
  background: transparent;
  color: #cc9955 !important;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: #EE7B27;
  color: #fff;
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #EE7B27;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: #EE7B27; border-color: #EE7B27; }

/* ── HERO (homepage) ─────────────────────────────────────── */
.hero {
  position: relative;
  background-image: url('assets/ewgguljln98.jpg');
  background-position: top center;
  background-size: cover;
  color: #fff;
  padding: 100px 40px 130px;
  text-align: center;
  overflow: hidden;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #006D00;
  opacity: 0.6;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Lato', 'Roboto', sans-serif;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -2px;
  text-shadow: 0 0 37px rgba(0,0,0,0.3);
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  text-shadow: 0 0 32px rgba(0,0,0,0.3);
}
.hero .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  background-image: url('assets/ewgguljln98.jpg');
  background-position: top center;
  background-size: cover;
  color: #fff;
  padding: 80px 40px 100px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #006D00;
  opacity: 0.6;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Lato', 'Roboto', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 0 37px rgba(0,0,0,0.3);
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-top: 12px;
  text-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 70px 40px; }

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #EE7B27;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ── ABOUT STRIP (homepage) ──────────────────────────────── */
.about-strip { background: #fff; padding: 60px 40px; }
.about-strip .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}
.about-strip .inner img { width: 100%; max-width: 480px; border-radius: 8px; }
.about-strip .inner .text { flex: 1; min-width: 260px; }
.about-strip .inner .text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #EE7B27;
  line-height: 1.25;
}
.about-strip .inner .text p { color: #000; line-height: 1.7; font-size: 1.05rem; margin-bottom: 12px; }

/* ── BENEFIT CARDS (homepage) ────────────────────────────── */
.benefits { background: #fff; padding: 0 40px 70px; }
.cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: #EEE2CC;
  border-radius: 7px;
  padding: 32px 28px;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 8px 13px rgba(0,0,0,0.5);
  transition: border-radius 0.3s;
}
.card:hover { border-radius: 30px; }
.card .icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
}
.card .icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #EE7B27;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card ul { list-style: none; }
.card ul li { padding: 4px 0; font-size: 0.95rem; color: #000; }
.card ul li::before { content: "✓ "; color: #EE7B27; font-weight: 700; }

/* ── PARTNERS ROW ────────────────────────────────────────── */
.partners { background: #f0f4f8; padding: 40px; text-align: center; }
.partners h3 { font-size: 1rem; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; }
.logo-row { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; align-items: center; opacity: 0.6; }
.logo-row span { font-size: 1.1rem; font-weight: 700; color: #555; }

/* ── SOLUTIONS PAGE ──────────────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.solution-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.solution-card img { width: 100%; display: block; }
.solution-card .card-body { padding: 24px; }
.solution-card .card-body h3 { font-size: 1.15rem; font-weight: 700; color: #006D00; margin-bottom: 10px; }
.solution-card .card-body p { color: #555; line-height: 1.7; margin-bottom: 18px; }

/* ── BLOG PAGE ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 28px;
}
.blog-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #006D00; }
.blog-card p { color: #555; font-size: 0.95rem; }
.blog-card .tag {
  display: inline-block;
  background: #EE7B27;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-content { max-width: 900px; margin: 0 auto; padding: 60px 40px; }
.about-content h2 { font-size: 1.7rem; margin-bottom: 16px; font-weight: 700; color: #EE7B27; }
.about-content p { color: #242424; line-height: 1.8; margin-bottom: 16px; }

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-info { flex: 1; min-width: 240px; }
.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: #EE7B27; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-info .info-item .icon { font-size: 1.3rem; color: #EE7B27; margin-top: 2px; }
.contact-info .info-item div { color: #555; line-height: 1.6; }
.contact-info .info-item a { color: #006D00; }
.contact-info .info-item a:hover { text-decoration: underline; }

.contact-form { flex: 1.2; min-width: 280px; }
.contact-form h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: #EE7B27; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; color: #242424; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: #006D00; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: #EE7B27;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #d06a18; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #EEE2CC;
  color: #000;
  padding: 50px 40px 0;
}
.footer-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 32px;
  justify-content: space-between;
}
.footer-col h3 { color: #006D00; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #000; font-size: 0.92rem; }
.footer-col ul li a:hover { color: #006D00; }
.footer-col p { font-size: 0.92rem; line-height: 1.7; }
.footer-col .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #EE7B27;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  margin-right: 8px;
  transition: opacity 0.2s;
}
.footer-col .social a:hover { opacity: 0.8; }
.footer-bottom {
  background: #E8CC98;
  padding: 18px 40px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #006D00;
  width: calc(100% + 80px);
  max-width: none;
  margin: 0 -40px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  nav ul { gap: 14px; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .hero { padding: 70px 20px 100px; min-height: auto; }
  section { padding: 50px 20px; }
  .about-strip { padding: 50px 20px; }
  .about-strip .inner img { max-width: 100%; }
  .contact-layout { flex-direction: column; }
  footer { padding: 40px 20px 20px; }
  .footer-bottom {
    width: calc(100% + 40px);
    margin: 0 -20px -20px;
    padding: 16px 20px;
  }
  .page-hero { padding: 60px 20px 80px; }
  .page-hero h1 { font-size: 1.9rem; }
}
