/* Clever Agent - static rebuild of https://cleveragent.ai/
   Values pulled from the live site's inline CSS (Divi 5.0.0-public-beta.5.2). */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em;
  color: #666;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

header, footer {
  flex-shrink: 0;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a { color: #7cda24; text-decoration: none; }

.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 20px;
}

.clearfix::after { content: ""; display: table; clear: both; }

/* Header / nav */

#main-header {
  background-color: #fff;
  padding: 1vh 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

#main-nav a {
  color: #666;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

#main-nav a:hover,
#main-nav a[aria-current="page"] {
  color: #7cda24;
}

/* Hero */

#hero {
  background-image: url("assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.28);
  padding: 34px 0;
}

.hero-inner {
  background-color: rgba(0, 0, 0, 0.24);
  min-height: 85vh;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

#hero h1 {
  color: #fff;
  font-size: 90px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 0.3em #000;
  margin: 0;
}

.hero-divider {
  width: 100%;
  max-width: 450px;
  height: 0;
  border-top: 1px solid #fff;
  margin: 24px auto;
}

.hero-tagline,
.hero-subtext {
  color: #fff;
  font-size: 30px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 0 0.3em #000;
  margin: 0.5em 0 0;
}

/* Contact */

#contact {
  background-color: #fff;
  padding: 70px 20px;
  text-align: center;
}

#contact h2 {
  color: #333;
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 34px;
}

#contact form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

#contact label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

#contact input,
#contact textarea {
  padding: 11px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: #333;
  background-color: #fff;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #7cda24;
  box-shadow: 0 0 0 3px rgba(124, 218, 36, 0.18);
}

#contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#contact button[type="submit"] {
  align-self: flex-start;
  background-color: #7cda24;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 30px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 200ms ease;
}

#contact button[type="submit"]:hover {
  background-color: #6bbf1f;
}

@media (max-width: 600px) {
  #contact .form-row {
    grid-template-columns: 1fr;
  }
  #contact button[type="submit"] {
    align-self: stretch;
  }
}

/* Status pages (thank-you, 404) */

.status-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.status-section h1 {
  color: #333;
  font-size: 42px;
  margin: 0 0 16px;
}

.status-section h2 {
  color: #333;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
}

.status-section p {
  color: #666;
  font-size: 18px;
  margin: 0 0 30px;
}

.status-section .back-link {
  display: inline-block;
  background-color: #7cda24;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 200ms ease;
}

.status-section .back-link:hover {
  background-color: #6bbf1f;
}

/* Footer */

#main-footer {
  background-color: #222;
}

#footer-bottom {
  background-color: rgba(0, 0, 0, 0.32);
  padding: 16px 0;
}

#footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#footer-text {
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}

#footer-text p {
  margin: 0;
}

#footer-text a {
  color: #7cda24;
}

#footer-text a:hover {
  text-decoration: underline;
}

/* Chat widget */

#agent-chat-container { display: block; }

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background: #28a745;
  color: #fff;
  border-radius: 50px;
  padding: 10px 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  cursor: pointer;
  font-family: sans-serif;
}

#chat-box {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: sans-serif;
  flex-direction: column;
}

#chat-log {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
}

.chat-input-row {
  padding: 10px;
  border-top: 1px solid #ddd;
}

#user-input {
  width: 100%;
  resize: none;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: sans-serif;
}

.chat-buttons {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

#send-btn,
#reset-btn {
  flex: 1;
  color: #fff;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-family: sans-serif;
}

#send-btn { background: #28a745; }
#reset-btn { background: #dc3545; }

@media only screen and (max-width: 767px) {
  #hero h1 { font-size: 48px; white-space: normal; }
  .hero-tagline,
  .hero-subtext { font-size: 20px; }
}
