html {
  scroll-behavior: smooth;
 overflow-x: hidden;
}

body{
    font-family: var(--default-font);
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    box-sizing: border-box; /* prevents padding from making things wider */
}


.hero{
    width: 100%;
    height: 100vh;       /* fill the viewport */
    min-height: 350px;   /* fallback for tiny phones */
    background-image: url("images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.both{
    position: sticky;   /* sticks but not to the top of the page */
    top: 0;             /* keeps it in place relative to where it appears */
    background: #f5e3bd; /* or any solid background so text stays visible */
    z-index: 1000;
    padding: 10px;
}



.topnav{
    display: flex;
    height: 40px;
}

.socials{
    width: 20%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.socials a{
    text-decoration: none;
}

.search a{
    text-decoration: none;
    color: rgb(130, 129, 129); 
}

#facebook{color: #1877F2; font-size: 20px;}
#instagram{color: #E1306C; font-size: 20px;}
#twitter{color: #1DA1F2; font-size: 20px;}
#whatsapp{color: #25D366; font-size: 20px;}
#cart{font-size: 20px;}
#account{font-size: 20px;}

.logo{
    display: flex;
    width: 60%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 35px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #351d0a;
}

/* Hamburger button */
.hamburger {
    display: flex; /* show only on mobile */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #351d0a;
    border-radius: 2px;
}

/* Menu wrapper for mobile */
.menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    width: 100%;
    font-size: 20px;

}

.menu .search{
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Menu active (open) */
.menu.active {
    max-height: 500px; /* adjust to fit content */
}

.header{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    width: 100%;
}

.navbar{
    display: flex;
    padding-left: 10px;
    width: 70%;
    margin-top: 10px;
}

.navbar a{
    text-decoration: none;
    color: rgb(130, 129, 129);
    width: 100%;
}

.search{
    display: flex;
    gap: 50px;
    padding-right: 40px;
}

.intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.intro p{
    font-size: 30px;
    color: #EFEFEF;
    width: 100%;
    text-align: center;
}

.intro button{
    background: #f5e3bd;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 25px;
    font-family: 'Times New Roman', Times, serif;
    width: 200px;
    height: 50px;
    
}

.intro a{
  text-decoration: none;
}

.intro button:hover{
    background-color: #f9e5b9;
}

.sofa-section{
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in, transform 1s ease-in;
    min-height: 200px; /* or something reasonable */
}

.sofa-section.show{
    opacity: 1;
    transform: translateY(0);
}

.sofa-section h1{
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #351d0a;
}

.sofa-section .subtext{
    font-size: 35px;
    font-weight: bold;
    margin-top: 0;
    color: #351d0a;
}

.sofa-section .subtext strong{
    font-size: 40px;
    font-weight: bold;
    margin-top: 0;
    color: #351d0a;
}

.products img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
  gap: 20px;
  padding: 10px;
  text-align: center;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  background-color: #f9e5b9;
}

.furniture-section {
    padding: 10px;
    background-color: #351d0a;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in, transform 1s ease-in;
    min-height: 600px; /* or something reasonable */
}

.furniture-section.show{
    opacity: 1;
    transform: translateY(0);
}

.furniture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.furniture-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.furniture-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.furniture-card h3 {
  margin: 15px 0 5px;
  font-size: 20px;
  color: #351d0a;
}

.furniture-card p {
  font-size: 18px;
  color: #555;
}

.furniture-card:hover {
  transform: translateY(-5px);
  background-color: rgb(188, 186, 186);
}

/*
.furn {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-right 25s linear infinite;
}

/*@keyframes scroll-right {
  0%   { transform: translateX(-100%); } /* start completely off-screen left 
  100% { transform: translateX(100%); }  /* move fully to the right 
}*/



.furniture-section .subtext{
    font-size: 35px;
    font-weight: bold;
    margin-top: 0;
    color: white;
}

.furniture-section .subtext strong{
    font-size: 40px;
    font-weight: bold;
    margin-top: 0;
    color: white;
}

.furniture-section h1{
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.about-section {
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: #351d0a;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in, transform 1s ease-in;
}


.about-section.show {
    opacity: 1;
    transform: translateY(0);
}

.about-section h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.about-section p {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
    margin-left: 0;
}

.about-section h2 { 
    font-size: 28px;
    margin-top: 20px;
}

.about-section ul li {
    font-size: 18px;
    margin: 8px 0;
}

.partners-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #351d0a;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in, transform 1s ease-in;
}

.partners-section.show {
    opacity: 1;
    transform: translateY(0);
}

.partners-section h1{
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.partners-section p {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: white;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  
}

.partner-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.partner-card h3 {
  margin: 15px 0 5px;
  font-size: 20px;
  color: #351d0a;
}

.partner-card:hover {
  transform: translateY(-5px);
  background-color: rgb(188, 186, 186);
}

.contact-section{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f5e3bd;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in, transform 1s ease-in;
}

.contact-section.show {
    opacity: 1;
    transform: translateY(0);
}

.contactheader{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.map{
    width: 600px;
}

.contact{
    display: flex;
    flex-direction: column;
}


.contact h1{
        font-size: 35px;
        font-weight: bold;
        color: #351d0a;
        text-align: center;
}

.contact p{
        padding: 10px;
        font-size: 25px;       
        font-weight: bold;
        color: #7a3e12;
        line-height: 1.6;
        text-align: center;
}

.contact-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;           
    border-radius: 10px;               
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  
    max-width: 400px;                  /* keeps it compact */
    margin: 20px auto;                
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);        /* lift effect on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-info p {
    padding: 10px;
    text-align: left;                   
    color: #351d0a;
    font-size: 18px;
    margin: 0;                          
    border-bottom: 1px solid #eee;      /* divider line */
}

.contact-info p:last-child {
    border-bottom: none;                /* remove line for last item */
}

.contact-info strong {
    color: #7a3e12;                     
}

.customer-service {
  background: #ffffff; /* clean white card */
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 60px auto; /* center on page */
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* floating card look */
}

.customer-service h2 {
  font-size: 28px;
  color: #351d0a;
  margin-bottom: 10px;
}

.customer-service p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #7a3e12;
}

.service-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-form label {
  text-align: left;
  font-size: 14px;
  color: #7a3e12;
  font-weight: 600;
}

.service-form input,
.service-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #f9f9f9;
  transition: border 0.3s ease, background 0.3s ease;
}

.service-form input:focus,
.service-form textarea:focus {
  border-color: #007BFF;
  background: #fff;
}

.service-form button {
  background: #7a3e12; /* nice blue */
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.service-form button:hover {
  background: #351d0a;
}

/* Tablets */
@media (max-width: 1024px) {
    .hero {
        height: 450px;
    }

    

    .topnav, .header, .navbar {
        flex-direction: column;
        align-items: center;
    }

    .socials {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .search {
        gap: 20px;
        padding-right: 0;
        justify-content: center;
    }

    .products, .furniture-grid, .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .map {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: 350px;
        background-position: top;
    }

    
    

    .navbar {
        flex-direction: column;
        width: 100%;
        padding-left: 0;
    }

    .navbar a {
        width: auto;
        padding: 5px 0;
    }

    .logo {
        font-size: 28px;
    }

    .products, .furniture-grid, .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contactheader {
        flex-direction: column;
        gap: 15px;
    }

    .map {
        width: 100%;
    }

     .intro {
    top: 50%; /* center it a bit higher */
    padding: 0 10px; /* prevent overflow */
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


     .intro p {
    font-size: 22px;
  }

  .intro button {
    font-size: 20px;
    width: 170px;
    height: 45px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
     

    .sofa-section h1, .furniture-section h1, .about-section h1, .partners-section h1, .contact h1 {
        font-size: 28px;
    }

    .sofa-section .subtext, .furniture-section .subtext {
        font-size: 25px;
    }

    .customer-service h2 {
        font-size: 22px;
    }

    .customer-service p {
        font-size: 14px;
    }

    .service-form input, .service-form textarea {
        font-size: 12px;
        padding: 10px;
    }

    .service-form button {
        font-size: 14px;
        padding: 10px;
    }

     .intro {
    top: 50%; /* center it a bit higher */
    padding: 0 10px; /* prevent overflow */
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  .intro p {
    font-size: 18px; /* smaller text */
  }

  .intro button {
    font-size: 18px;
    width: 150px;
    height: 40px;
    padding: 8px 15px;
  }
}