/* Marfibre Website Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Open+Sans:wght@300;400;600&display=swap');

/* CSS Variables for Color Palette */
:root {
  --primary-blue: #135b9d;
  --primary-yellow: #ffde59;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --transition-speed: 0.5s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-yellow);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 50px;
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1000;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Section Styles */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
}

section:nth-child(odd) {
  background-color: var(--light-gray);
}

section:nth-child(even) {
  background-color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--primary-yellow);
}

/* Hero Section */
#hero {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  background-image: url('../images/placeholders/sofa1.jpg');
  background-size: cover;
  background-position: center;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.85) 100%);
  z-index: -1;
}

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

.hero-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-blue);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* About Section */
#about {
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Products Section */
#products {
  background-color: var(--white);
}

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

@media screen and (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-icon {
  height: 80px;
  width: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.product-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-blue);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

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

/* Custom Cushions Section */
#custom-cushions {
  background-color: var(--light-gray);
}

.custom-cushions-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.custom-cushions-text {
  flex: 1;
  min-width: 300px;
}

.custom-cushions-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-cushions-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sofa Refills Section */
#sofa-refills {
  background-color: var(--white);
}

.sofa-refills-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.sofa-refills-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  order: 1;
}

.sofa-refills-text {
  flex: 1;
  min-width: 300px;
  order: 2;
}

.sofa-refills-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Loose Stuffing Section */
#loose-stuffing {
  background-color: var(--light-gray);
}

.loose-stuffing-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.loose-stuffing-text {
  flex: 1;
  min-width: 300px;
}

.loose-stuffing-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loose-stuffing-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pricing Section */
#pricing {
  background-color: var(--white);
}

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

.pricing-cta {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.pricing-cta:hover {
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact {
  background-color: var(--primary-blue);
  color: var(--white);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-title {
  color: var(--white);
}

.contact-title::after {
  background-color: var(--primary-yellow);
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  fill: var(--primary-yellow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
}

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

.submit-btn {
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 90%;
  }
  
  .nav-links {
    position: fixed;
    right: 0;
    top: 70px;
    background-color: var(--white);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.5s ease;
    z-index: 999;
    height: calc(100vh - 70px);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .sofa-refills-image {
    order: 2;
  }
  
  .sofa-refills-text {
    order: 1;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }
  
  .container {
    width: 95%;
  }
  
  .hero-logo {
    width: 120px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* Thank you page styles for form submission response */
.thank-you-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.thank-you-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.return-btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.return-btn:hover {
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
