/* ============================================
   TAX HOME KENYA - MODERN REDESIGN
   Vibrant, Colourful, Premium Look
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a472a;
  --secondary-color: #2d6a4f;
  --accent-gold: #d4a574;
  --accent-brown: #8b6f47;
  --accent-yellow: #f4c430;
  --accent-warm-brown: #a0826d;
  --light-accent: #f4e8d8;
  --light-yellow: #fffacd;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f9f7f4;
  --bg-white: #ffffff;
  --border-color: #e0d5c7;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--accent-gold);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
}

.logo-img {
  height: 50px;
  width: auto;
  background: white;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  color: #ffffff;
}

.logo-text p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin: 0;
  opacity: 1;
  color: var(--accent-gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(rgba(26, 71, 42, 0.65), rgba(45, 106, 79, 0.65)), 
              url('../yourphoto.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 2rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeInDown 0.8s ease;
  border-bottom: 5px solid var(--accent-gold);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-yellow));
  color: var(--primary-color);
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.cta-button:hover {
  background: transparent;
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
  background: var(--bg-white);
  border-top: 5px solid var(--accent-brown);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  background: linear-gradient(135deg, #fff9e6, #fffacd);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-yellow);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
  border-left-color: var(--accent-gold);
}

.highlight-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 3px solid var(--accent-gold);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

#services {
  background: linear-gradient(135deg, #f9f7f4, #fffacd);
  border-top: 5px solid var(--accent-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  border-top: 5px solid var(--accent-gold);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(244, 196, 48, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent-yellow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.service-card li {
  color: var(--text-light);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

#why {
  background: var(--bg-white);
  border-top: 5px solid var(--accent-brown);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #f4e8d8, #fff9e6);
  border-radius: 10px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.why-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow), var(--accent-brown));
  border-radius: 10px 10px 0 0;
}

.why-card:hover {
  border-color: var(--accent-gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.why-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   BLOG SECTION
   ============================================ */

#blog {
  background: linear-gradient(135deg, #f9f7f4, #fffacd);
  border-top: 5px solid var(--accent-yellow);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-gold);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  border-bottom: 4px solid var(--accent-gold);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-tag {
  display: inline-block;
  background: linear-gradient(135deg, #fff9e6, #fffacd);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--accent-yellow);
}

.read-more {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ============================================
   RESOURCES SECTION
   ============================================ */

#resources {
  background: var(--bg-white);
  border-top: 5px solid var(--accent-brown);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: linear-gradient(135deg, #f4e8d8, #fff9e6);
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid var(--accent-brown);
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow), var(--accent-brown));
}

.resource-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.resource-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resource-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-yellow));
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid var(--accent-gold);
}

.download-btn:hover {
  background: var(--primary-color);
  color: var(--accent-gold);
  transform: scale(1.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  border-top: 5px solid var(--accent-gold);
}

#contact .section-title {
  color: white;
}

#contact .section-title::after {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow));
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border: 2px solid rgba(212, 165, 116, 0.3);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
}

.contact-item p {
  font-size: 1rem;
  margin: 0;
}

.contact-item a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-block;
  background: linear-gradient(135deg, #25D366, #20c55e);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: 2px solid #25D366;
}

.whatsapp-btn:hover {
  background: white;
  color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #0d2818;
  color: white;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 80px 1.5rem;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 300px;
  }

  .services-grid,
  .why-grid,
  .blog-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section p,
  .footer-section a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 40px;
  }

  nav ul {
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  .hero {
    padding: 60px 1rem;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  section {
    padding: 40px 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card,
  .why-card,
  .resource-card {
    padding: 1.5rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none;
}
