/* T&R Beauty Supply Store - Global Styles */
:root {
  --primary-color: #8B4513;
  --primary-dark: #6B3410;
  --secondary-color: #D4A574;
  --accent-color: #C9956B;
  --gold: #B8860B;
  --dark: #1a1a1a;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.section-title p {
  margin-top: 15px;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: #9A7209;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-gray);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(139,69,19,0.85), rgba(212,165,116,0.85)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding-top: 80px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.6s both;
}

/* Page Banner */
.page-banner {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139,69,19,0.9), rgba(212,165,116,0.9));
  color: var(--white);
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.8rem;
}

.page-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-top: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--light-gray);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.95rem;
}

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

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

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

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

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

.footer-bottom-links {
  margin-top: 10px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  margin: 0 10px;
}

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

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.newsletter p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-form button:hover {
  background: #9A7209;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}

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

/* Blog */
.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

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

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card-body h3 a:hover {
  color: var(--primary-color);
}

.blog-card-body p {
  font-size: 0.9rem;
}

.blog-card-body .read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-card-body .read-more:hover {
  color: var(--gold);
}

/* Blog Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article-content h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.article-meta {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 15px 25px;
  margin: 25px 0;
  background: var(--light-gray);
  font-style: italic;
}

.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-articles h3 {
  margin-bottom: 20px;
}

.related-articles ul {
  padding-left: 0;
}

.related-articles li {
  list-style: none;
  margin-bottom: 10px;
}

.related-articles a {
  color: var(--primary-color);
  font-weight: 500;
}

.related-articles a:hover {
  color: var(--gold);
}

/* Features / Values */
.feature-box {
  text-align: center;
  padding: 40px 25px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 30px;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.bg-light { background: var(--light-gray); }

/* Responsive */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

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

  .section { padding: 50px 0; }

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

  .newsletter-form {
    flex-direction: column;
  }

  .page-banner { padding: 120px 0 60px; }
  .page-banner h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 15px; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
}

/* Lazy Load */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* Promo Banner */
.promo-bar {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Product Grid */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-card-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--light-gray);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 1.1rem;
}

/* Store Info */
.store-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.store-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.store-card p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h1 {
  margin-bottom: 10px;
}

.legal-content .last-updated {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.legal-content h2 {
  margin-top: 35px;
  font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 25px;
  margin: 10px 0;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 5px;
}

/* Contact Info Boxes */
.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-box .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

/* Wholesale */
.wholesale-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .wholesale-benefits { grid-template-columns: 1fr; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}
