/* styles.css – modern industrial palette, dark mode, responsive */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.2s ease, color 0.2s, border-color 0.2s;
}

:root {
  --bg: #ffffff;
  --text: #1e293b;
  --primary: #0f3b5e;
  --primary-light: #1e5a7a;
  --secondary: #e9a23b;
  --card-bg: #f8fafc;
  --border: #dde7f0;
  --footer-bg: #0b2a40;
  --footer-text: #e0edf5;
}

body.dark {
  --bg: #121b25;
  --text: #edf2f7;
  --primary: #256c9c;
  --primary-light: #3a7ca5;
  --secondary: #f5b551;
  --card-bg: #1e2a36;
  --border: #2f4050;
  --footer-bg: #0a1a28;
  --footer-text: #bdd3e8;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  padding: 0.8rem 0;
}

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

.logo h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo h1 span {
  color: var(--secondary);
}
.global-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover {
  border-bottom-color: var(--secondary);
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

/* hero */
.hero {
  background: linear-gradient(145deg, var(--primary) 0%, #0f2b40 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 1rem;
}
.hero h2 span {
  color: var(--secondary);
}
.hero-badges {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn {
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--secondary);
  color: #0b2a40;
}
.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.btn-primary:hover {
  background: #f0b543;
  transform: scale(1.02);
}

/* sections */
.section {
  padding: 5rem 0;
}
.bg-light {
  background-color: var(--card-bg);
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  height: 4px;
  width: 60px;
  background: var(--secondary);
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* about grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.check-list {
  list-style: none;
  margin-top: 1rem;
}
.check-list li {
  padding: 0.3rem 0 0.3rem 1.8rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23e9a23b"><path d="M20 6L9 17l-5-5-1.5 1.5L9 20 21.5 7.5z"/></svg>') left center no-repeat;
  background-size: 1.2rem;
}

/* pump grid */
.pump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.pump-card {
  background: var(--bg);
  border-radius: 1.2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  transition: transform 0.15s;
}
.pump-card:hover {
  transform: translateY(-6px);
}
.pump-card img {
  max-width: 100%;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}
.inquiry-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: 0.2s;
}
.inquiry-btn:hover {
  background: var(--primary-light);
}

/* app icons */
.app-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}
.app-icons span {
  background: var(--card-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 60px;
  border: 1px solid var(--border);
  font-weight: 500;
}

/* knowledge grid */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.knowledge-grid article {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

/* presence cards */
.presence-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.presence-cards div {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

/* contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.inquiry-form input, .inquiry-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.inquiry-form button {
  width: 100%;
}

/* AI assistant floating */
.ai-assistant {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}
.ai-trigger {
  background: var(--primary);
  border: none;
  color: white;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  box-shadow: 0 8px 18px rgba(0,40,80,0.4);
  cursor: pointer;
  transition: 0.2s;
}
.ai-trigger:hover {
  transform: scale(1.1);
}
.ai-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-window.open {
  display: flex;
}
.ai-header {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
}
.ai-body {
  padding: 1rem;
  background: var(--card-bg);
}
.faq-suggestions {
  list-style: none;
  margin: 0.5rem 0;
}
.faq-suggestions li {
  background: var(--bg);
  margin: 0.3rem 0;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  cursor: default;
}
.ai-chat-mock {
  background: var(--bg);
  border-radius: 12px;
  padding: 0.6rem;
  margin: 0.5rem 0;
}
.ai-input-group {
  display: flex;
  gap: 0.3rem;
}
.ai-input-group input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.ai-input-group button {
  background: var(--secondary);
  border: none;
  border-radius: 30px;
  width: 40px;
  color: black;
  font-weight: bold;
}
#closeAi {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0;
  text-align: center;
}

/* mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-flex {
    flex-wrap: wrap;
  }
  .hero h2 {
    font-size: 2.2rem;
  }
  .about-grid, .contact-grid, .presence-cards {
    grid-template-columns: 1fr;
  }
  .presence-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ai-window {
    width: 260px;
  }
}
@media (max-width: 480px) {
  .presence-cards {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 1rem;
  }
}