:root {
  /* Color Palette - Derived from Book Cover & Template */
  --color-bg: #fdfaf7;
  --color-primary: #53372c; /* Deep Brown */
  --color-secondary: #a18e7e; /* Sepia/Tan */
  --color-accent: #d7c9bc; /* Soft Taupe */
  --color-text: #4a4a4a;
  --color-muted: #8e8e8e;
  --color-white: #ffffff;
  
  /* Fonts */
  --font-serif: "Prata", serif;
  --font-sans: "Inter", sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.19, 1, 0.22, 1); /* Showit Style Smoothness */
  --section-padding: 10rem 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8; /* Increased for better readability */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  top: 0 !important; /* Force body to top regardless of Google bar */
}

/* Aggressively Hide Google Translate Top Banner & UI across all browsers */
.goog-te-banner-frame, 
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-te-menu-value span:nth-child(2),
iframe.goog-te-banner-frame,
.goog-te-banner,
.goog-te-header,
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

body {
    top: 0px !important;
}

/* Fix for Google's inline style injection */
html {
    margin-top: 0px !important;
}

/* Typography */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2; /* Tighter for elegant headings */
}

.text-muted {
  color: var(--color-muted) !important;
}

/* Header */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary) !important;
}

.offcanvas {
  background-color: var(--color-bg); /* Match brand background */
  width: 300px !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.offcanvas-body {
  padding: 2rem;
}

.navbar-toggler {
  padding: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(83, 55, 44)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-transform: uppercase;
  margin: 0 1.2rem;
  letter-spacing: 0.15em; /* Increased spacing */
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.4;
  padding: 0;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.lang-btn.active {
  opacity: 1;
}

.lang-btn:hover {
  opacity: 0.8;
}

.btn-book {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 100px; /* Fully Round */
  padding: 0.75rem 2.2rem; /* Reduced for a "small" feel */
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-primary);
  display: inline-block;
}

.btn-pill-dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 100px;
  padding: 0.75rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-primary);
}

.btn-book:hover, .btn-pill-dark:hover {
  background: transparent;
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(83, 55, 44, 0.1);
}

.outline-btn {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
}

.outline-btn:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* General Section Spacing */
section {
  padding: var(--section-padding);
}

/* Hero Section */
.hero-section {
  padding: 12rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-image-frame {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1.4;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  border-bottom-left-radius: 200px;
  border-bottom-right-radius: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-accent);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.08); /* More noticeable zoom */
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* As Seen In Banner */
.as-seen-in {
  background: var(--color-accent);
  padding: 2rem 0;
  margin-top: 4rem;
}

.brand-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  opacity: 0.7;
}

.brand-logos p {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* About Section */
.about-section {
  padding: 8rem 0;
}

.about-image-stack {
  position: relative;
  height: 500px;
}

.about-image-stack img {
  border-radius: 40px; /* "A little round" as requested */
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-image-1 {
  width: 70%;
  height: 80%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
}

.about-image-2 {
  width: 50%;
  height: 60%;
  object-fit: cover;
  object-position: top; /* Different focus for the second image */
  position: absolute;
  bottom: 0;
  left: 0;
  border: 8px solid var(--color-bg); /* Elegant border between layers */
  transform: translate(-10%, 10%);
}

/* Book Section */
.book-section {
  padding: 8rem 0;
  background: #f4eee7;
}

.book-mockup-frame {
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.book-tag {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1rem;
}

/* Reviews Section */
.reviews-section {
  padding: 8rem 0;
}

.review-card {
  padding: 4rem 3rem;
  background: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: 20px;
}

.review-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Blog Section */
.blog-section {
  padding: 8rem 0;
}

.blog-card {
  border: none;
  background: transparent;
}

.blog-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 25px; /* Consistent rounding */
}

/* Contact Section */
.contact-section {
  padding: 8rem 0;
  background: #fdfaf7;
}

.form-control {
  border-radius: 15px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-accent);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(83, 55, 44, 0.05);
}

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

/* Footer */
footer {
  padding: 6rem 0 3rem;
  background: var(--color-primary);
  color: var(--color-white);
}

footer .logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

footer .nav-link {
  color: var(--color-accent) !important;
  margin: 0.5rem 0;
  display: block;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Brand Auto Slider */
.brand-slider-container {
  overflow: hidden;
  background: var(--color-bg);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(83, 55, 44, 0.1);
  border-bottom: 1px solid rgba(83, 55, 44, 0.1);
  display: flex;
  white-space: nowrap;
  position: relative;
}

.brand-slider-container::before,
.brand-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15vw;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brand-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, rgba(253, 250, 247, 0) 100%);
}

.brand-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, rgba(253, 250, 247, 0) 100%);
}

.brand-slider-track {
  display: inline-block;
  animation: scroll-left 40s linear infinite;
}

.brand-slider-track span {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  opacity: 0.5;
  margin: 0 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-slider-track span i {
  font-size: 1.5rem;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nav Pill Custom Styling */
.btn-custom-tab {
   border: 1px solid var(--color-primary) !important;
   color: var(--color-primary) !important;
   font-weight: 600;
   background: transparent;
   transition: all 0.3s ease;
}

.btn-custom-tab.active {
   background: var(--color-primary) !important;
   color: var(--color-white) !important;
}

.btn-custom-tab:hover:not(.active) {
   background: rgba(83, 55, 44, 0.05);
}

.btn-outline-dark {
   border-color: rgba(83, 55, 44, 0.2);
   color: var(--color-primary);
   transition: var(--transition-smooth);
}

.btn-outline-dark:hover {
   background: var(--color-primary);
   color: var(--color-white);
   border-color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 4rem;
    text-align: center;
  }
  
  .hero-image-frame {
    margin: 0 auto 3rem;
  }
  
  .hero-headline {
    font-size: 3rem;
  }
}
