@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #254d4d;
  --text-dark: #171717;
  --text-light: #737373;
  --extra-light: #f4f6f5;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--primary-color);
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-light);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--header-font);
}

img {
  display: block; /* better for images */
  width: 100%;
  position: relative;
  z-index: 0; /* keep this low */
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

nav {
 position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  z-index: 100;
}




.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo .logo {
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary-color);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
}

.nav__search {
  display: none;
}

.header__container {
  display: grid;
  overflow: hidden;
   position: relative;
  z-index: 1; /* Make sure it's less than nav */
  overflow: visible; /* important! */
}

.header__image {
  grid-area: 1/1/2/2;
    position: relative;
  z-index: auto; /* or something lower than 1000 */
}

.header__image img {
  max-width: 900px;
  margin-left: auto;
}

.header__content {
  grid-area: 1/1/2/2;
  display: flex;
  align-items: center;
}

.header__content > div {
  max-width: 500px;
  padding: 4rem 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--primary-color);
}

.header__content p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.deals__container {
  display: grid;
  gap: 2rem;
}

.deals__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.deals__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.deals__card p {
  color: var(--text-light);
}

.about__header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__header .section__description {
  max-width: 600px;
}

.about__btn {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.about__content {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}

.about__grid {
  display: grid;
  gap: 2rem;
}

.about__image {
  max-width: 90%;
  overflow: hidden; /* Prevents overflow distortion */
  display: flex;
  justify-content: center; /* Center the image horizontally */
}

.about__image img {
  height: 400px;             /* or any desired height */
  width: auto;               /* keep natural width */
  object-fit: cover;         /* or 'contain' depending on look */
  border-radius: 8px;        /* optional: for rounded corners */
}

.about__card h3 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.about__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.about__card p {
  color: var(--text-light);
}

.product__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.product__card {
  position: relative;
  isolation: isolate;
  padding: 2rem;
}

.product__card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background-color: var(--extra-light);
  z-index: -1;
  transition: 0.3s;
}

.product__card:hover::before {
  height: 100%;
}

.product__card h4 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.product__card p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.product__card img {
  max-width: 275px;
  margin-inline: auto;
}

.client__content {
  padding: 4rem 1rem;
  background-color: var(--extra-light);
  border-radius: 1rem;
}

.client__content :is(.section__header, .section__description) {
  max-width: 550px;
  margin-inline: auto;
  text-align: center;
}

.client__content .section__header {
  font-size: 3.25rem;
}

.swiper {
  margin-top: 4rem;
  width: 100%;
}

.client__card {
  display: grid;
  gap: 2rem;
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.client__card img {
  max-width: 250px;
  margin-inline: auto;
}

.client__card p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
}

.client__card h4 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.client__card h5 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.footer {
  background-color: var(--primary-color);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo {
  margin-bottom: 1rem;
}

.footer__logo .logo {
  color: var(--white);
}

.footer__col p {
  margin-bottom: 2rem;
  color: var(--extra-light);
  opacity: 0.8;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.5rem;
  color: var(--white);
}

.footer__socials a:hover {
  opacity: 0.5;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--extra-light);
  opacity: 0.8;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--extra-light);
  opacity: 0.8;
  text-align: center;
}

@media (width > 540px) {
  .deals__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
   display: flex;               /* keep navbar items in a row */
  justify-content: center;     /* or space-between, flex-start as needed */
  position: relative;          /* important for dropdown positioning */
  background: #fff;
  padding: 10px 20px;
  z-index: 1000;
  width: 100%;

  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__logo .logo {
    color: var(--primary-color);
  }

  .nav__links {
    position: static;
    padding: 0;
    width: fit-content;
    flex-direction: row;
    gap: 3rem;
    background-color: transparent;
    transform: none;
  }

  .nav__links a {
    color: var(--text-dark);
  }

  .nav__links a:hover {
    color: var(--primary-color);
  }

  .nav__search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav__search input {
    padding-block: 5px;
    outline: none;
    border: none;
    width: 0;
    font-size: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-light);
    transition: 0.3s;
  }

  .nav__search.open input {
    width: 100%;
    max-width: 15rem;
  }

  .nav__search span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
  }

  .header__container {
    padding-top: 0;
  }

  .deals__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals__card:nth-child(1) {
    grid-column: 1/4;
  }

  .about__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .about__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__image {
    grid-area: 1/2/2/3;
  }

  .product__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .client__card {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: left;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width > 1024px) {
  .deals__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .deals__card:nth-child(1) {
    grid-column: unset;
  }

  .about__grid {
    gap: 4rem 2rem;
  }
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
}

/* Utility Classes */
.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
}

.center-text {
  text-align: center;
}

.heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #2c3e50;
}

.subheading {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

/* About Mission Section */
.about__mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about__image img {
  width: 100%;
  border-radius: 10px;
}

.about__text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about__text p {
  font-size: 1rem;
  color: #666;
}

/* About Values Section */
.about__values {
  margin-bottom: 4rem;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value__card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value__card .icon {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.value__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value__card p {
  font-size: 0.95rem;
  color: #555;
}

/* About Team Section */
.about__team h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about__team p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #666;
}

.about__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.about__btn:hover {
  background-color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
  .heading {
    font-size: 2rem;
  }

  .about__text h2,
  .about__team h2 {
    font-size: 1.5rem;
  }
}

/* General form container */
.join-form {
  max-width: 420px;
  margin: 2rem auto 0;
  padding: 2.5rem 3rem;
  background-color: #fafafa;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  text-align: center;
}

/* Heading styles */
.join-form h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a2a35;
  border-bottom: 3px solid #254d4d;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* Subtext */
.join-form p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  color: #667d8a;
  font-weight: 500;
}

/* Input fields */
.join-form input[type="text"],
.join-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.4rem;
  border: 2px solid #d3d8db;
  border-radius: 10px;
  font-size: 1rem;
  color: #34495e;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.join-form input[type="text"]:focus,
.join-form input[type="email"]:focus {
  outline: none;
  border-color: #254d4d;
  box-shadow: 0 0 8px rgba(37, 77, 77, 0.4);
}

/* Submit button */
.join-form button {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2e7a7a, #254d4d);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 6px 15px rgba(37, 77, 77, 0.25);
}

.join-form button:hover,
.join-form button:focus {
  background: linear-gradient(135deg, #254d4d, #1a3636);
  outline: none;
  box-shadow: 0 8px 20px rgba(37, 77, 77, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
  .join-form {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
}

/* Navigation base styling */
.nav__dropdown {
  position: relative;
  z-index: 200;
}

.nav__dropdown__wrapper {
  position: relative;
  display: inline-block;
}

.nav__dropdown__wrapper:hover .dropdown {
  display: flex;
}

.dropdown {
 position: absolute;          /* position relative to nav__dropdown__wrapper */
  top: 100%;                  /* right below the nav item */
  left: 0;                    /* align dropdown left edge to parent */
  background: white;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  max-width: 90vw;            /* limit width to viewport */
  overflow-x: auto;           /* scroll horizontally if too wide */
  z-index: 30;
  display: none;
  flex-direction: column;
  white-space: nowrap; 
}

/* Optional: Hide scrollbar for cleaner look */
.dropdown::-webkit-scrollbar {
  height: 6px;
}

.dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.nav__dropdown:hover > .dropdown,
.nav__dropdown.open > .dropdown {
  display: block;
}
.dropdown a {
  padding: 0.5rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
}

.dropdown a:hover {
  background-color: var(--extra-light);
  color: var(--primary-color);
}

.dropdown li a {
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown li a:hover {
   display: flex;
  background-color: #f5f5f5;
  color: #2c3e50;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
}

/* Bed Container */
.bed-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* Bed Card */
.bed-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.bed-card:hover {
  transform: translateY(-5px);
}

.bed-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bed-card h2 {
  font-size: 1.2rem;
  margin: 16px 0 8px;
}

.price {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 16px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding: 30px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
}

/* Bed Container Grid */
.bed-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Bed Cards */
.bed-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.bed-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bed-card h2 {
  font-size: 1.3rem;
  color: #34495e;
  padding: 15px 20px 5px;
}

.bed-card .price {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: bold;
  padding: 0 20px 15px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  header h1 {
    font-size: 2rem;
  }

  .bed-card img {
    height: 160px;
  }
}


/* contact us */
/* Container to center and size the form */
.contact-container {
  max-width: 400px;      /* small form width */
  margin: 60px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.contact-container h1 {
  font-size: 2rem;
  color: #222;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* Subheading */
.contact-container p {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs and textarea */
.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  font-size: 0.95rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  resize: vertical;
  font-family: inherit;
  color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2c3e50;  /* nice blue accent */
  outline: none;
  box-shadow: 0 0 8px rgba(0,123,255,0.3);
}

/* Button style */
.contact-form button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #2c3e50;
}

/* Responsive tweak */
@media (max-width: 450px) {
  .contact-container {
    margin: 30px 10px;
    padding: 25px 15px;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff; /* pure white */
  color: #333;
  line-height: 1.6;
}


.blog-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h1 {
  font-size: 2.5em;
  margin-bottom: 0.3em;
  color: #2c3e50;
}

.subtitle {
  font-size: 1.1em;
  color: #7f8c8d;
}

.blog-section {
  margin-bottom: 40px;
}

.blog-section h2 {
  color: #34495e;
  margin-bottom: 10px;
}

.blog-section ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.blog-section ul li {
  margin-bottom: 8px;
}

.blog-footer {
  text-align: center;
  padding: 20px 0;
  font-weight: bold;
}

.blog-footer a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.blog-footer a:hover {
  text-decoration: underline;
}


/* product */

  #scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-size: 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 18px;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
  }

  #scrollToTopBtn:hover {
    background-color: #0056b3;
  }


  /* EXTRA NAVBAR */
  