/* ==========================================================================
   Life By Designs — Main Stylesheet
   Web Design & Development in Charlotte, NC
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PT Sans Narrow", "Arial Narrow", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #282828;
}

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

a {
  color: #974960;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #ff7302;
}

ul, ol {
  list-style-position: inside;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header --- */
.site-header {
  background: #110f0b;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #974960;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-logo span {
  color: #974960;
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0 18px;
  line-height: 70px;
  color: #ccc;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s, background 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(151, 73, 96, 0.25);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: url('../images/hero.jpg') center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.75);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-slides {
  position: relative;
  min-height: 180px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.hero-slide h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-slide p {
  font-size: 1.15rem;
  color: #bbb;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 35px;
}

/* Slide indicators */
.hero-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.hero-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #974960;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.hero-indicators button.active {
  background: #974960;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ff7302;
  color: #fff;
}

.btn-primary:hover {
  background: #e56800;
  color: #fff;
}

.btn-secondary {
  background: #974960;
  color: #fff;
}

.btn-secondary:hover {
  background: #7e3c50;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #974960;
}

.btn-outline:hover {
  background: #974960;
  color: #fff;
}

/* --- Section Styles --- */
.section {
  padding: 70px 0;
}

.section-light {
  background: #fff;
}

.section-off {
  background: #f5f5f5;
}

.section-dark {
  background: #282828;
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-dark .section-title h2 {
  color: #fff;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #974960;
  margin: 12px auto 0;
}

.section-title p {
  font-size: 1.1rem;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: #aaa;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 40px 25px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #974960;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.portfolio-thumb {
  height: 200px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #974960;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #974960, #ff7302);
}

.portfolio-item > figure {
  margin: 0;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.portfolio-item > figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #974960, #ff7302);
  z-index: 1;
}

.portfolio-item > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #333;
}

.portfolio-info .portfolio-category {
  font-size: 0.8rem;
  color: #974960;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.portfolio-services {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-services span {
  display: inline-block;
  padding: 3px 10px;
  background: #f0e8eb;
  color: #974960;
  font-size: 0.75rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- About Content --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 18px;
}

.about-intro p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.value-card {
  text-align: center;
  padding: 35px 20px;
}

.value-card h3 {
  font-size: 1.2rem;
  color: #974960;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #f0e8eb 0%, #e8e0e3 100%);
  height: 350px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #974960;
  font-size: 1.1rem;
  font-style: italic;
}

/* Skills bars */
.skills-list {
  margin-top: 30px;
}

.skill-item {
  margin-bottom: 18px;
}

.skill-item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.skill-bar {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #974960, #ff7302);
  border-radius: 4px;
  transition: width 1s ease;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #974960 0%, #7e3c50 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #282828, #3a3a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #974960;
  font-size: 2.5rem;
}

.blog-card > figure {
  margin: 0;
  height: 180px;
  overflow: hidden;
}

.blog-card > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 22px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: #333;
}

.blog-card-body h3 a:hover {
  color: #974960;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.read-more {
  font-size: 0.85rem;
  color: #974960;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more:hover {
  color: #ff7302;
}

/* --- Blog Post --- */
.blog-post {
  max-width: 780px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e8e8e8;
}

.blog-post-header h1 {
  font-size: 2.2rem;
  color: #333;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: #999;
}

.blog-post-meta span {
  margin-right: 15px;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  color: #333;
  margin: 35px 0 15px;
}

.blog-post-content h3 {
  font-size: 1.25rem;
  color: #333;
  margin: 28px 0 12px;
}

.blog-post-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 15px 0 20px 20px;
  color: #555;
}

.blog-post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-post-content blockquote {
  border-left: 4px solid #974960;
  padding: 15px 25px;
  margin: 25px 0;
  background: #f9f6f7;
  font-style: italic;
  color: #555;
}

.blog-post-content strong {
  color: #333;
}

.post-tags {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.post-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: #f0e8eb;
  color: #974960;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-details {
  list-style: none;
  margin: 25px 0;
}

.contact-details li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
}

.contact-details li strong {
  color: #333;
  display: inline-block;
  min-width: 100px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 18px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #974960;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #282828 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 3px solid #974960;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: #aaa;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-top: 12px;
}

.breadcrumb a {
  color: #974960;
}

/* --- Footer --- */
.site-footer {
  background: #1c1c1c;
  color: #CECECE;
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-brand h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: #974960;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #999;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #999;
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #974960;
}

.footer-contact p {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom a {
  color: #974960;
}

/* --- Privacy / Legal Content --- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #333;
  margin: 30px 0 12px;
}

.legal-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 25px 0 10px;
}

.legal-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  margin: 10px 0 18px 20px;
  color: #555;
}

.legal-content li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .services-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #110f0b;
    border-top: 1px solid #333;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #222;
  }

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

  .hero-slide h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 60px 20px;
  }

  .services-grid,
  .portfolio-grid,
  .blog-grid,
  .about-values {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .blog-post-header h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .site-logo {
    font-size: 1.2rem;
  }

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

  .hero-slide h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
