/*
 Theme Name: HomeKit Simplified with Glenn
 Theme URI: https://homekitsimplified.com
 Author: Glenn (with ChatGPT)
 Description: A clean, Apple-inspired WordPress theme for HomeKit tutorials, reviews, and automations.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: homekit-simplified
*/

:root {
  --blue: #007AFF;
  --midnight: #1C1C1E;
  --white: #F2F2F7;
  --silver: #D1D1D6;
  --green: #34C759;
  --orange: #FF9500;
  --text-main: #111111;
  --text-muted: #555555;
  --max-width: 1120px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.06);
}
.brand-logo {
  height: 70px;
  width: auto;
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #FFFFFF;
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}


.brand-text-main {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-text-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: rgba(0,0,0,0.2);
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(0, 122, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 122, 255, 0.4);
}

.btn-ghost {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--silver);
}

.btn-ghost:hover {
  background: var(--white);
}

/* Hero */
.hero {
  padding: 2.8rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top left, #F5FAFF 0, #FFFFFF 45%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #E5E5EA;
}

.hero-card-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.hero-dot {
  margin-top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 2.8rem 0 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.4rem;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid #E5E5EA;
  padding: 1.2rem 1.2rem 1.3rem;
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: #E5F2FF;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.pill-secondary {
  background: #E6F9EC;
  color: #15803D;
}

.pill-orange {
  background: #FFEED8;
  color: #C05621;
}

.card a.more {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
}

/* Setup section */
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.setup-list-group {
  margin-bottom: 1rem;
}

.setup-list-group h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.setup-list-group ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 0;
}

.setup-list-group li {
  margin-bottom: 0.25rem;
}

.setup-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #E5E5EA;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-thumb {
  background: radial-gradient(circle at top left, #1E293B, #020617);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5E7EB;
  font-size: 0.85rem;
}

.video-body {
  padding: 0.7rem 0.9rem 0.85rem;
  background: #FFFFFF;
}

.video-body h3 {
  font-size: 0.9rem;
  margin-bottom: 0.18rem;
}

.video-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA / newsletter */
.cta-panel {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.8rem;
  background: linear-gradient(135deg, #F5FAFF, #FFFFFF);
  box-shadow: var(--shadow-soft);
  border: 1px solid #E0E7FF;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 1.8rem;
  align-items: center;
}

.cta-panel h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.cta-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-form input[type="email"] {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  font-size: 0.85rem;
  outline: none;
}

.cta-form input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0,122,255,0.4);
}

.cta-small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid #E5E5EA;
  margin-top: 3rem;
  padding: 1.4rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .setup-grid,
  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .card-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .card-grid,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-panel {
    padding: 1.4rem 1.1rem 1.5rem;
  }
}
