/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f8f6;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #444;
  font-weight: 600;
}

p {
  color: #555;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fdfcfb;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO styling */
nav .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #A89581;
  font-size: 1.8rem;
  gap: 0.6rem;
  font-family: Cambria, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav .logo img {
  height: 45px;
  width: auto;
  border-radius: 8px;
}

nav .nav-links {
  list-style: none;
  display: none;
  gap: 1.5rem;
}

nav .nav-links li a {
  text-decoration: none;
  color: #6b5e4b;
  font-weight: 500;
  transition: color 0.3s;
}

nav .nav-links li a:hover {
  color: #000;
}

/* Sections */
.section {
  padding: 1.2rem 2rem 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

html {
  scroll-padding-top: 50px;
}

/* Home (Hero Section) */
.home {
    position: relative;
    height: 100vh;
    background: url("images/home.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.home .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #f5f5f5;
}

.home p {
    font-size: 1.3rem;
    font-style: italic;
    color: #f5f5f5;
}

/* About */
.about p {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.about-images {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-images img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

/* Pricing */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 0.2rem 2rem 2rem 2rem;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.08);
  text-align: center;
  width: 250px;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #6b5e4b;
}

.card p {
  margin-bottom: 0.2rem;
}

.card button {
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #6b5e4b;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0px 12px 24px rgba(0,0,0,0.12);
  transition: all 0.3s;
}

.card button:hover {
  background: #6b5e4b;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
}

/* Modal Content Layout */
.modal-content.modal-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  max-width: 600px;
  min-height: 320px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
}

/* Left Side (Text) */
.modal-left {
  flex: 1 1 0;
  padding: 2rem 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  text-align: left;
}

#modalTitle {
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 2rem;         /* bigger title */
  font-weight: 700;
  color: #444;
}

#modalIntro {
  margin-bottom: 0.7rem;   /* less space below intro */
  color: #333;             /* match bullet color */
  font-size: 1.05rem;
}

#modalBullets {
  margin-bottom: 1.5rem;   /* less space below bullets */
  margin-top: 0.2rem;      /* move bullets higher up */
  text-align: left;
  padding-left: 1.2rem;
  color: #333;             /* ensure bullet color matches */
}

#modalOrderBtn {
  align-self: center;
  margin-top: auto;
  margin-bottom: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: #6b5e4b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* Right Side (Image) */
.modal-right {
  flex: 0 0 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

#modalImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.modal-img-fade {
  position: absolute;
  left: 0; top: 0; bottom: 0; right: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.01) 60%);
  pointer-events: none;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 600px) {
  .modal-content.modal-flex {
    flex-direction: column;
    max-width: 95vw;
    min-height: 0;
    position: relative;
    overflow: hidden;
  }
  .modal-left {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 2rem 1rem 1.5rem 1rem;
  }
  .modal-right {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    flex: none;
    border-radius: 16px;
    opacity: 0.25; /* Make image more opaque */
    z-index: 1;
    background-size: cover;
    background-position: center;
  }
  .modal-img-fade {
    display: none !important;
  }
}

/* Example Chats Styles */
.example-chats {
  max-width: 500px;
  margin: 3rem auto 2rem auto;
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px #eee;
}
.example-chats h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.chat-example {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.chat-bubble {
  max-width: 75%;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  display: inline-block;
  position: relative;
  word-break: break-word;
}
.chat-bubble.user {
  background: #e6e1d5;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: #444;
}
.chat-bubble.advisor {
  background: #f5ede3;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #444;
}

/* Order Forms */
.order h2 {
  text-align: center;
  margin-bottom: 2rem;
}

form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.08);
}

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

label {
  display: block;
  margin-bottom: 0.8rem;
  color: #444;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 0.3rem;
  margin-right: 0.6rem;
  box-sizing: border-box;
}

textarea {
  height: 120px;
  resize: none;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #6b5e4b;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: #6b5e4b;
}

/* Contact Form Styles */
.contact {
  max-width: 500px;
  margin: 3rem auto 2rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px #eee;
}
.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
#contactForm label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
#contactForm button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #6b5e4b;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}
#contactForm button[type="submit"]:hover {
  background: #6b5e4b;
}
#contactStatus {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #fdfcfb;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

/* --- Admin Dashboard Styles --- */
#tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}
#tabs button {
  background: #f5f5f5;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  cursor: pointer;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-right: 2px;
  color: #333;
  transition: background 0.2s;
}
#tabs button.active {
  background: #fff;
  font-weight: bold;
  color: #0078d7;
  border-bottom: 2px solid #fff;
  box-shadow: 0 -2px 8px #eee inset;
}
.order-preview, .order-finished {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px #f0f0f0;
  transition: box-shadow 0.2s;
}
.order-preview:hover {
  box-shadow: 0 4px 16px #e0e0e0;
  background: #f9f9f9;
}
.order-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.order-price {
  font-size: 1rem;
  color: #0078d7;
  font-weight: bold;
}
.order-details {
  margin-bottom: 8px;
  color: #555;
}
.order-preview .start-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #0078d7;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0;
  float: none;
}
.order-preview .start-btn:hover {
  background: #005fa3;
}
.inprogress-card {
  background: #fff;
  border: 2px solid #0078d7;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px #e0e0e0;
}
.inprogress-card textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px;
}
.inprogress-card button {
  background: #0078d7;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
}
.inprogress-card button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Responsive About Images and Logo Text */
@media (max-width: 800px) {
  .about-images {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .about-images img {
    max-width: 90vw;
    width: 100%;
    height: auto;
  }
  nav .logo span {
    font-size: 1rem;
  }
  nav .logo img {
    height: 32px;
  }
}

/* Hamburger styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1100;
  width: 48px;      /* Make the button larger */
  height: 48px;
  padding: 0;
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  width: 28px;
  height: 3px;
  background: #6b5e4b;
  display: block;
  position: relative;
  border-radius: 2px;
}
.hamburger::before,
.hamburger::after {
  content: "";
  width: 28px;
  height: 3px;
  background: #6b5e4b;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger::before {
  top: -9px;
}
.hamburger::after {
  top: 9px;
}

/* Responsive nav */
@media (max-width: 800px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 0;
    background: #fdfcfb;
    position: absolute;
    top: 50px;
    left: 0;
    box-shadow: 0 2px 8px #eee;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
  }
  .logo {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 801px) {
  nav .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    width: auto;
    gap: 1.5rem;
  }
  .nav-toggle {
    display: none !important;
  }
}