/*
Theme Name: Keptly Theme
Theme URI: https://mykeptly.com
Author: Tribal Codes
Author URI: https://tribalcodesllc.com
Description: Custom theme for Keptly — personal hygiene products ecommerce storefront.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keptly-theme
Tags: ecommerce, clean, hygiene, custom
*/

:root {
  --keptly-bg: #ffffff;
  --keptly-surface: #f6f8fa;
  --keptly-text: #1a1f2e;
  --keptly-muted: #5b6475;
  --keptly-accent: #1f7a6b;
  --keptly-accent-dark: #155a50;
  --keptly-border: #e3e7ed;
  --keptly-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--keptly-bg);
  color: var(--keptly-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--keptly-accent); text-decoration: none; }
a:hover { color: var(--keptly-accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--keptly-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--keptly-bg);
  border-bottom: 1px solid var(--keptly-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.site-branding a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--keptly-text);
  letter-spacing: -0.01em;
}

.site-branding a:hover { text-decoration: none; color: var(--keptly-accent); }

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.main-navigation a {
  color: var(--keptly-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-navigation a:hover { color: var(--keptly-accent); text-decoration: none; }

.header-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--keptly-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--keptly-accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--keptly-text);
  border-color: var(--keptly-border);
}

.btn-outline:hover {
  border-color: var(--keptly-accent);
  color: var(--keptly-accent);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eaf4f1 0%, #ffffff 60%);
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--keptly-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--keptly-surface);
  border: 1px solid var(--keptly-border);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--keptly-muted);
  font-size: 0.9rem;
}

/* Sections */
.section { padding: 72px 0; }

.section-title {
  font-size: 1.75rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--keptly-muted);
  margin: 0 0 40px;
  max-width: 640px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--keptly-bg);
  border: 1px solid var(--keptly-border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(31, 122, 107, 0.08);
  transform: translateY(-2px);
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--keptly-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--keptly-surface);
  border-top: 1px solid var(--keptly-border);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--keptly-muted);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--keptly-text); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--keptly-accent); }

.footer-bottom {
  border-top: 1px solid var(--keptly-border);
  padding-top: 16px;
  color: var(--keptly-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { height: auto; padding: 16px 0; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
