/* CSS Variables for Color Palette */

:root {
  --primary: #0033a0;
  --secondary: #ff6b00;
  --accent: #f4c300;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #28a745;
  --white: #ffffff;
  --gray-light: #e9ecef;
  --gray: #6c757d;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

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

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

section {
  padding: 80px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.btn:hover {
  background-color: #002580;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 51, 160, 0.2);
}

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

.btn-secondary:hover {
  background-color: #e05a00;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.section-header {
  margin-bottom: 50px;
}

/* Navigation Styles */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 15px var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.nav-links a:hover:after {
  width: 100%;
}

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

/* Sub Navigation - Always fixed below main nav */

.sub-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--light);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 15px 0;
  transition: var(--transition);
}

.sub-nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.sub-nav-links li {
  margin: 0 15px;
}

.sub-nav-links a {
  font-weight: 500;
  color: var(--dark);
  font-size: 1rem;
}

.sub-nav-links a:hover {
  color: var(--primary);
}

/* Hero Section - Minimal height & centered content */

.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background-color: var(--light);
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)), url('https://www.tshirtprint2u.com.my/assets/img/main/photo-coming-soon.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Design & Style Section - Added margin-top for sub-nav */

#designs {
  padding-top: 140px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.design-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.design-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.design-img {
  height: 200px;
  overflow: hidden;
}

.design-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.design-content {
  padding: 25px;
}

.design-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.design-subtitle {
  color: var(--secondary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 15px;
  display: block;
}

.design-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.design-features {
  margin-bottom: 20px;
}

.design-feature {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.design-feature i {
  color: var(--accent);
  margin-right: 10px;
  margin-top: 3px;
}

/* Fabric Section */

.fabric-section {
  background-color: var(--light);
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.fabric-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.fabric-card:hover {
  transform: translateY(-5px);
}

.fabric-img {
  height: 200px;
  overflow: hidden;
}

.fabric-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabric-content {
  padding: 25px;
}

.fabric-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.fabric-subtitle {
  color: var(--secondary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 15px;
  display: block;
}

/* Brands Section */

.brands-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--dark);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.brand-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.brand-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.brand-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.brand-specialty {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  padding: 5px 10px;
  background-color: rgba(255, 107, 0, 0.1);
  border-radius: 4px;
  display: inline-block;
}

/* Industry Recommendations */

.industry-section {
  background-color: var(--light);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.industry-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  border-top: 4px solid var(--primary);
}

.industry-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.industry-card h3 {
  margin-bottom: 15px;
}

/* Customization Section */

.customization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.customization-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.customization-card:hover {
  border-color: var(--primary);
}

.customization-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.customization-card h3 {
  margin-bottom: 15px;
}

.pro-tip {
  background-color: rgba(244, 195, 0, 0.1);
  border-left: 4px solid var(--accent);
  padding: 20px;
  margin-top: 30px;
  border-radius: 4px;
}

.pro-tip h4 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* Summary Section */

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

.summary-section h2 {
  color: var(--white);
}

.summary-section h2:after {
  background-color: var(--accent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.summary-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-card h3 {
  color: var(--accent);
}

/* FAQ Section */

.faq-section {
  background-color: var(--light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-light);
}

.faq-question.active {
  background-color: var(--primary);
  color: var(--white);
}

.faq-icon {
  transition: var(--transition);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 20px 0;
  border-top: 1px solid var(--gray-light);
}

/* CTA Section */

.cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section h2:after {
  background-color: var(--accent);
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.cta-btn:hover {
  background-color: #e05a00;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.whatsapp {
  background-color: var(--success);
}

.cta-btn.whatsapp:hover {
  background-color: #218838;
}

/* Footer */

footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-logo span {
  color: var(--secondary);
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after, .footer-contact h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

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

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

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
  width: 20px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Styles */

@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 500px;
    padding-top: 140px;
    padding-bottom: 80px;
  }
}

@media (max-width: 992px) {
  #designs {
    padding-top: 120px;
  }
}

@media (max-width: 992px) {
  .sub-nav {
    top: 70px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
}

@media (max-width: 768px) {
  .nav-links.active {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-links li {
    margin: 15px 0;
  }
}

@media (max-width: 768px) {
  .sub-nav {
    padding: 10px 0;
    top: 70px;
  }
}

@media (max-width: 768px) {
  .sub-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 20px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .sub-nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .sub-nav-links li {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    padding-top: 120px;
    padding-bottom: 70px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  #designs {
    padding-top: 110px;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .design-grid, .fabric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 400px;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .hero-cta .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  #designs {
    padding-top: 100px;
  }
}

