/* Clean, working AgentDials theme */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Admin bar */
#wp-admin-bar.wp-admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #23282d;
  color: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  font-size: 12px;
}
#wp-admin-bar .wp-admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#wp-admin-bar .wp-admin-left { font-weight: 700; }
#wp-admin-bar .wp-admin-right { display: flex; gap: 12px; }
#wp-admin-bar .wp-admin-link { color: #ddd; text-decoration: none; padding: 4px 8px; }
#wp-admin-bar .wp-admin-link:hover { color: #fff; }

/* Page offset for admin bar */
body { padding-top: 32px; }

/* Header */
.header {
  background: rgba(74, 95, 111, 0.7);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(58, 79, 95, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background: #4a5f6f;
  border-bottom: 1px solid #3a4f5f;
}

body {
  padding-top: 85px;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
}
.header-left img {
  height: 50px;
  margin-right: 16px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-nav {
  display: flex;
  gap: 24px;
}
.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.header-nav a:hover { color: #d4a574; }
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.call-us-btn {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.login-btn {
  background: #d4a574;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.call-us-btn:hover { background: #fff; color: #4a5f6f; }
.login-btn:hover { background: #b89060; }

/* Hero */
.hero {
  padding: 60px 0;
  background: #e8e8e8;
  text-align: left;
}
.hero .container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1f1f1f;
  line-height: 1.3;
}
.hero p {
  font-size: 14px;
  color: #555;
  margin: 0 0 18px;
  max-width: 500px;
  line-height: 1.6;
}
.hero .learn-more-btn,
.hero .learn-more-btn.secondary {
  padding: 10px 20px;
  background: #d4a574;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  margin-right: 10px;
  display: inline-block;
}
.hero .learn-more-btn.secondary {
  background: transparent;
  border: 1px solid #999;
  color: #333;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sections */
.section {
  padding: 50px 0;
  background: #fff;
}
.section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.section > .container > p {
  text-align: center;
  color: #d4a574;
  margin-bottom: 30px;
  font-weight: 600;
}

/* How it works */
.how-it-works {
  padding: 50px 0;
  background: #fff;
}
.how-it-works h3 {
  text-transform: uppercase;
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
  margin: 0 0 8px;
  text-align: center;
}
.how-it-works h2 {
  text-align: center;
  margin-bottom: 40px;
}
.how-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-item {
  background: #f9f9f9;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
}
.how-item .icon {
  width: 50px;
  height: 50px;
  background: #d4a574;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
  font-size: 20px;
}
.how-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}
.how-item p {
  font-size: 13px;
  color: #777;
  margin: 0;
  line-height: 1.5;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-item {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #d4a574;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(212, 165, 116, 0.15);
  border-color: #d4a574;
}
.service-item:hover::before {
  transform: scaleX(1);
}
.service-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 8px;
  color: #1f1f1f;
}
.service-item p {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
  line-height: 1.6;
}
.service-item .price {
  font-size: 24px;
  font-weight: 700;
  color: #d4a574;
  margin: 16px 0;
}
.service-item .login-btn {
  background: #d4a574;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.service-item .login-btn:hover {
  background: #b89060;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats-section {
  background: #2a2a2a;
  color: #fff;
  padding: 40px 0;
}
.stats-section h2 { color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}
.stat h2 {
  font-size: 32px;
  font-weight: 700;
  color: #d4a574;
  margin: 0 0 8px;
}
.stat p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.product-item {
  background: #fff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-align: center;
}
.product-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: #d4a574;
  margin: 0 0 8px;
}
.product-item h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 8px 0;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  grid-column: 1 / -1;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}
.submit-btn {
  background: #d4a574;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  grid-column: 1 / -1;
  margin-top: 12px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 50px 0 20px;
  font-size: 13px;
  border-top: 1px solid rgba(212, 165, 116, 0.1);
}
.footer h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #d4a574;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #d4a574;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 12px;
}
.footer-links a:hover { color: #d4a574; }

/* Modal */
#learnMoreModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
  max-width: 400px;
}
.modal-content h3 { margin-top: 0; }
.modal-links {
  margin: 20px 0;
}
.modal-links a {
  display: inline-block;
  padding: 10px 20px;
  margin: 8px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.modal-close-btn {
  background: #ddd;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 12px;
}

/* Chatbot Widget */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
  border: 1px solid #e5e5e5;
}
#chatbot-header {
  background: #4a5f6f;
  color: #fff;
  padding: 16px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
#chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}
#chatbot-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  font-size: 13px;
  max-height: 350px;
}
.chatbot-message {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.4;
}
.chatbot-message.bot {
  background: #f0f0f0;
  text-align: left;
  color: #333;
}
.chatbot-message.user {
  background: #d4a574;
  color: #fff;
  text-align: right;
}
#chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e5e5;
}
#chatbot-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}
#chatbot-form button {
  background: #d4a574;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
#chatbot-form button:hover {
  background: #b89060;
}

/* Responsive */
@media (max-width: 768px) {
  .header-right { flex-direction: column; gap: 12px; }
  .header-nav { flex-direction: column; gap: 12px; }
  .how-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
}

