/* SummitFlux Website Recreation - Styles */
:root {
  --sf-purple: #6c4f9e;
  --sf-purple-light: #8b6fbd;
  --sf-purple-dark: #4a2d7a;
  --sf-dark: #1a1a2e;
  --sf-gray: #f8f8f8;
  --sf-text: #333;
  --sf-text-light: #666;
  --sf-border: #e0e0e0;
  --sf-white: #fff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  line-height: 1.6;
  background: #5a3d8a;
}

a { color: #c4a8e8; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

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

/* === HEADER / NAV === */
.sf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: #a8b8c8;
  z-index: 100;
}

.sf-header .sf-nav a { color: #000; }
.sf-header .sf-nav a:hover { color: #000; text-decoration: none; }
.sf-header .sf-header-icons a { color: #000; font-weight: 700; }
.sf-header .sf-header-icons a:hover { color: #000; text-decoration: none; }

/* Homepage - overlays hero image */
.sf-header--home {
  background: rgba(255, 255, 255, 0.15);
  position: absolute;
  left: 0;
  right: 0;
}
.sf-header.sf-header--home .sf-nav a { color: #000; }
.sf-header.sf-header--home .sf-nav a:hover { color: #000; }
.sf-header.sf-header--home .sf-header-icons a { color: #000; }
.sf-header.sf-header--home .sf-header-icons a:hover { color: #000; }

.sf-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex: 1 1 0;
}

.sf-logo img { height: 28px; width: auto; }

.sf-nav { display: flex; gap: 1.5rem; align-items: center; flex: 0 0 auto; }
.sf-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}


.sf-header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  flex: 1 1 0;
}

.sf-header-icons a {
  transition: color 0.2s;
}

/* === HERO === */
.sf-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: white;
}

.sf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(74,45,122,0.4) 50%, rgba(108,79,158,0.2) 100%);
}

.sf-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 600px;
}

.sf-hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sf-hero-slide.active {
  display: block;
  opacity: 1;
}

.sf-hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.sf-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.sf-hero-dot.active {
  background: #fff;
}

.sf-hero h1 {
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
}

.sf-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.sf-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.sf-btn-primary {
  background: #8b6fbd;
  color: white;
}
.sf-btn-primary:hover {
  background: #5a3d8a;
  text-decoration: none;
  color: white;
}

.sf-btn-outline {
  background: transparent;
  border: 2px solid #c4a8e8;
  color: #c4a8e8;
}
.sf-btn-outline:hover {
  background: #8b6fbd;
  color: white;
  text-decoration: none;
}

/* === FEATURES STRIP === */
.sf-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 4rem;
  text-align: center;
}

.sf-feature-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.sf-feature-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.sf-feature-icon {
  font-size: 2rem;
  color: #c4a8e8;
  margin-bottom: 0.5rem;
}

/* === SECTIONS === */
.sf-section {
  padding: 3rem 4rem;
  
}

.sf-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.sf-section-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

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

.sf-see-all {
  font-size: 0.9rem;
  color: #c4a8e8;
}

/* === PRODUCT GRID === */
.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.sf-product-card {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s;
  background: rgba(255,255,255,0.08);
}

.sf-product-card:hover {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
}

.sf-product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 1rem;
  border-radius: 8px;
}

.sf-product-info {
  padding: 1rem;
}

.sf-product-name {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.sf-product-price {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

/* === TESTIMONIALS === */
.sf-testimonials {
  
  padding: 3rem 4rem;
  text-align: center;
}

.sf-testimonial {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.sf-quote-icon {
  width: 48px;
  height: 48px;
  background: #8b6fbd;
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.sf-testimonial h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.sf-testimonial blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  border: none;
  padding: 0;
}

/* === BLOG CAROUSEL === */
.sf-blog-carousel {
  position: relative;
  overflow: hidden;
}

.sf-blog-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.sf-blog-carousel-track .sf-blog-card {
  flex: 0 0 calc((100% - 3rem) / 3);
}

.sf-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sf-carousel-btn:hover {  box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.sf-carousel-prev { left: 0.5rem; }
.sf-carousel-next { right: 0.5rem; }

@media (max-width: 768px) {
  .sf-blog-carousel-track .sf-blog-card { flex: 0 0 100%; }
}

/* === BLOG GRID === */
.sf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sf-blog-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #222;
}

.sf-blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sf-blog-card:hover img { opacity: 0.5; }

.sf-blog-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.sf-blog-card-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sf-blog-card-content p {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* === NEWSLETTER === */
.sf-newsletter {
  color: #fff;
  padding: 3rem 4rem;
  text-align: center;
}

.sf-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
  background: #d4a853;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  color: white;
}

.sf-newsletter p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 1rem auto 1.5rem;
}

.sf-newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.sf-newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sf-newsletter-form .sf-form-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sf-newsletter-form .sf-form-group label {
  min-width: 80px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.sf-newsletter-form .sf-form-group input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.sf-newsletter-form button {
  padding: 0.6rem 2rem;
  background: #8b6fbd;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
}

.sf-newsletter-form button:hover { background: #5a3d8a; }

/* === FOOTER === */
.sf-footer {
  background: var(--sf-dark);
  color: #ccc;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-size: 0.85rem;
}

.sf-footer a { color: #ccc; }
.sf-footer a:hover { color: white; text-decoration: underline; }

/* === PAGE HEADER (non-hero) === */
.sf-page-header {
  background: linear-gradient(135deg, var(--sf-dark) 0%, var(--sf-purple-dark) 100%);
  color: white;
  padding: 3rem 4rem;
}

.sf-page-header h1 {
  font-size: 2rem;
  font-weight: 600;
}

/* === CONTACT PAGE === */
.sf-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 4rem;
  
}

.sf-form-group {
  margin-bottom: 1.25rem;
}

.sf-form-inline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sf-form-inline label {
  min-width: 120px;
  padding-top: 0.6rem;
}

.sf-form-inline input,
.sf-form-inline textarea {
  flex: 1;
}

.sf-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #fff;
}

.sf-form-group input,
.sf-form-group textarea,
.sf-form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.sf-form-group textarea { min-height: 120px; resize: vertical; }

.sf-contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sf-contact-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

/* === BLOG POST GRID (listing page) === */
.sf-blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sf-blog-post-card {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  transition: box-shadow 0.2s;
  color: #fff;
}

.sf-blog-post-card:hover {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
  color: #fff;
}

.sf-blog-post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sf-blog-post-content {
  padding: 1rem;
}

.sf-blog-post-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sf-blog-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-blog-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .sf-blog-posts-grid { grid-template-columns: 1fr; }
}

/* === BLOG LIST === */
.sf-blog-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sf-blog-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sf-blog-categories a {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

.sf-blog-categories a.active,
.sf-blog-categories a:hover {
  background: #8b6fbd;
  color: white;
  border-color: #8b6fbd;
  text-decoration: none;
}

/* === PRODUCT DETAIL === */
.sf-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 4rem;
  
}

.sf-product-detail-images img {
  width: 100%;
  border-radius: 8px;
  
}

.sf-product-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sf-product-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  
}

.sf-product-thumbs img:hover {
  border-color: #8b6fbd;
}

.sf-product-detail-info h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.sf-product-detail-info .sf-product-price {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sf-product-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sf-qty-input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  text-align: center;
}

.sf-product-features {
  padding: 2rem 4rem;
  
}

.sf-product-features h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.sf-product-features h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: #c4a8e8;
}

.sf-product-features p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

/* === LEGAL PAGES === */
.sf-legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  
}

.sf-legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
  color: #fff;
}

.sf-legal-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: #c4a8e8;
}

.sf-legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.7;
}

/* === BLOG DETAIL === */
.sf-blog-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  
}

.sf-blog-detail h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.sf-blog-detail .sf-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.sf-blog-detail p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.sf-blog-detail img {
  border-radius: 8px;
  margin: 1rem 0;
}

/* === CART === */
.sf-cart-wrapper {
  position: relative;
}

#cart-toggle {
  cursor: pointer;
}

.sf-cart-count {
  font-size: inherit;
}

#cart-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #2a1a4a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 1rem;
  z-index: 200;
}

#cart-dropdown.open { display: block; }

.cart-empty {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-item-price {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-item-actions button {
  color: #333;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-actions button:hover { background: var(--sf-gray); }
.cart-remove { color: #c00; }

.cart-total {
  text-align: right;
  font-weight: 600;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.95rem;
}

.cart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--sf-dark);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 300;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.sf-legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.7;
}

.sf-legal-content li {
  margin-bottom: 0.3rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sf-features-strip { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .sf-blog-grid { grid-template-columns: 1fr; }
  .sf-contact-layout { grid-template-columns: 1fr; }
  .sf-product-detail { grid-template-columns: 1fr; }
  .sf-section { padding: 2rem 1.5rem; }
  .sf-hero { height: 60vh; min-height: 400px; }
  .sf-hero h1 { font-size: 1.8rem; }
  .sf-footer { flex-wrap: wrap; gap: 1rem; padding: 1.5rem 2rem; }
}

/* Dark theme form inputs */
.sf-form-group input,
.sf-form-group textarea,
.sf-form-group select {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.sf-form-group input::placeholder,
.sf-form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.sf-form-group input:focus,
.sf-form-group textarea:focus {
  outline: none;
  border-color: #c4a8e8;
  background: rgba(255,255,255,0.15);
}
