/* ===== Kemuel Digital - style.css (replace the whole file) ===== */

/* 1. Brand colors in ONE place (CSS variables) */
:root {
  --brand: #096879;
  --brand-dark: #075985;
  --accent: #d8b61e;
  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
}

/* 2. Base */
html {
  scroll-behavior: smooth;   /* smooth scroll for #services, #contact */
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
}

/* 3. Header: stays on top while scrolling */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background-color: var(--heading);
}

header a {
  color: #ffffff;
  text-decoration: none;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

nav a {
  margin-left: 24px;
}

nav a:hover {
  color: var(--accent);
}

/* 4. Main content width */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  margin-bottom: 64px;
}

h2 {
  font-size: 30px;
}

main a {
  color: var(--brand);
}

/* 5. Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 44px;
  margin-top: 0;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero img {
  width: 320px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* 6. Buttons */
.button {
  display: inline-block;
  background-color: var(--brand);
  color: #ffffff;
  padding: 12px 24px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: var(--brand-dark);
}

.button-outline {
  background-color: transparent;
  color: var(--brand);
}

.button-outline:hover {
  background-color: var(--brand);
  color: #ffffff;
}

/* 7. Service cards with hover effect */
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cards li {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cards li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.cards h3 {
  margin-top: 0;
  font-size: 20px;
}

/* 8. Contact box */
.contact-box {
  text-align: center;
  background-color: var(--heading);
  color: #cbd5e1;
  padding: 48px 24px;
  border-radius: 20px;
}

.contact-box h2 {
  color: #ffffff;
  margin-top: 0;
}

.contact-box .button {
  color: #ffffff;
}

.small {
  font-size: 14px;
  color: #94a3b8;
}

/* 9. Footer */
footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Tools section: groups + tag "chips" */
.tool-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.tool-groups h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}

/* 10. Phones (700px and below) */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
    gap: 32px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero img {
    width: 100%;
  }

  .cards {
    flex-direction: column;
  }

  nav a {
    margin-left: 0;
    margin-right: 20px;
  }
}