/* ============================================
   GOODLIFEBYRICO — PRODUCT PALETTE THEME
   Inspired by the "NewCos ILUMA" pack photo:
   Deep teal + soft teal lines + champagne gold + cool concrete greys
   ============================================ */

:root {
  /* PRIMARY PALETTE (from product) */
  --primary: #1f6f73;        /* deep teal */
  --primary-light: #5fb0b3;  /* soft teal accent */
  --primary-soft: #e6f1f1;   /* very light teal */

  --gold: #c7a66a;           /* premium champagne gold */
  --accent: #0f1f22;         /* charcoal */

  /* BACKGROUNDS */
  --bg-soft: #f4f6f5;        /* off-white */
  --bg-alt: #d9dedf;         /* cool grey panels */
  --bg-mid: #eef1f1;         /* light cool grey */

  /* TEXT */
  --text-main: #0f1f22;
  --text-muted: #5e6f73;

  --border-subtle: #cfd6d7;
  --white: #ffffff;

  --max-width: 1180px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #f7f8f7 0, var(--bg-soft) 55%, var(--bg-alt) 100%);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
	  height: 72px;              /* controls header height */
  display: flex;
  align-items: center; 
 position: sticky;
  top: 0;
  z-index: 20;
/*  background: linear-gradient(to right, #d9dedf, #eef1f1, #d9dedf);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
*/
background: linear-gradient(
    to right,
    #e8f1f1,
    #f4f6f5,
    #e8f1f1
  );

  border-bottom: 1px solid rgba(31, 111, 115, 0.18);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
height: 68px !important;
  padding: 0.5rem 0 !important;
}

.site-header .logo {
  height: 36px !important;   /* try 34–40 */
  width: auto !important;
  max-height: 36px !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
}

/*.logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 31, 34, 0.18);
  background-color: #0e2c2f; /* deep teal/charcoal */
}
*/
.logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;

  /* REMOVE the dark badge */
  background: transparent !important;
  padding: 0 !important;
 margin: 0;
  border-radius: 0;          /* no rounded container */
  box-shadow: none;          /* footer logo style */
}


.brand-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:   color: #0f1f22;  /* var(--accent); */
}

/* Your HTML may use .nav or .nav-links.
   We support both to avoid “still white” issues. */
.nav,
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a,
.nav-links a {
  color: var(--accent) !important;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav a:hover,
.nav-links a:hover {
  color: var(--primary) !important;
}

.nav a:hover::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-light);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.lang-switch a,
.lang-switch span,
.lang-switch .lang-active {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.lang-switch a:hover {
  color: var(--primary) !important;
}

/* ============================================
   Hero – Product palette
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.3rem 0 4.6rem;
}

/* Deep teal to pale teal like the packaging */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(95, 176, 179, 0.95) 0%,
    rgba(31, 111, 115, 0.95) 35%,
    rgba(230, 241, 241, 1) 100%
  );
  z-index: 0;
}

/* Subtle vignette to add depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.12) 85%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-weight: 800;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.03;
  margin: 0.15rem 0 0.9rem;
  color: var(--white);
  text-shadow: 0 10px 30px rgba(15, 31, 34, 0.22);
}

.hero-text p {
  margin-bottom: 1.7rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.92;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 360px;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px rgba(15, 31, 34, 0.35);
  object-fit: cover;
  background-color: #0c1a1f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 70px rgba(15, 31, 34, 0.42);
}

/* Soft bottom fade like showroom lighting */
.hero-wave {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 90px;
  background: radial-gradient(ellipse at top, rgba(15, 31, 34, 0.35) 0, rgba(15, 31, 34, 0) 70%);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 111, 115, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 111, 115, 0.42);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* A gold-outline option for light sections (used on "Visit Instagram") */
.btn-light-outline {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-light-outline:hover {
  background-color: rgba(199, 166, 106, 0.14);
  color: var(--accent);
  border-color: rgba(199, 166, 106, 0.8);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Sections & Titles
   ============================================ */

.section {
  padding: 4rem 0;
  background-color: var(--bg-soft);
}

.section-light {
  background: linear-gradient(to bottom, var(--bg-soft), var(--bg-mid));
}

.section-alt {
  background: linear-gradient(to bottom, var(--bg-alt), var(--bg-soft));
}

.section-ritual {
  background: linear-gradient(135deg, #e6eeee 0%, #f6f7f6 60%);
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 0.98rem;
}

.section-title-left {
  text-align: left;
}

.section-subtitle-left {
  text-align: left;
}

/* ============================================
   Cards (benefits, about, etc.)
   ============================================ */

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

.benefit-card,
.lifestyle-card,
.product-tile,
.contact-extra {
  padding: 1.35rem 1.55rem;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px rgba(15, 31, 34, 0.06);
  backdrop-filter: blur(10px);
}

.benefit-card h3,
.lifestyle-card h3,
.contact-extra h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.benefit-card p,
.lifestyle-card p,
.product-tile p,
.contact-extra p {
  margin: 0;
  color: var(--text-muted);
}

.note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 650px;
}

/* ============================================
   Product section card
   ============================================ */

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 2.4rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.9rem;
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 46px rgba(15, 31, 34, 0.08);
  backdrop-filter: blur(10px);
}

.product-image-wrapper {
  display: flex;
  justify-content: center;
}

.product-image {
  max-width: 320px;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(15, 31, 34, 0.18);
  background-color: #0c1a1f;
}

.product-info h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.product-tagline {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.product-details {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1.1rem;
  color: var(--text-main);
}

.product-details li + li {
  margin-top: 0.25rem;
}

.product-price {
  margin-bottom: 1.1rem;
}

.price-main {
  font-weight: 700;
}

.price-note {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   Social tiles
   ============================================ */

.product-tile-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.7rem;
  background: radial-gradient(circle at top left, var(--primary-soft) 0, #eef2f2 60%, #ffffff 100%);
}

/* For div placeholders */
div.product-tile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8f92;
  font-size: 0.9rem;
}

/* ============================================
   Contact
   ============================================ */

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.contact-extra-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 260px;
}

.contact-logo {
  width: 110px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 31, 34, 0.18);
  background-color: transparent;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: linear-gradient(to right, #0e2c2f, #0f1f22, #0e2c2f);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.8rem 0;
}

.footer-inner {
  text-align: center;
  font-size: 0.86rem;
}

.footer-note {
  margin-top: 0.3rem;
  color: rgba(226, 232, 240, 0.85);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-text h1 {
    font-size: 2.35rem;
  }

  .product-card {
    grid-template-columns: 1fr;
  }
}

/* Hide hamburger on desktop - shown via media query below */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: nowrap;
    position: relative;
  }

  /* Hide nav by default on mobile */
  .nav,
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(to bottom, #f4f6f5, #e8f1f1);
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 20px rgba(15, 31, 34, 0.1);
    z-index: 100;
  }

  .nav.active,
  .nav-links.active {
    display: flex;
  }

  .nav a,
  .nav-links a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  /* Hamburger menu button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 101;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Keep lang-switch visible */
  .lang-switch {
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

@media (max-width: 640px) {
  .contact-section {
    flex-direction: column;
  }

  .logo {
    height: 54px;
    width: 54px;
  }
}

/* ============================================
   RTL Tweaks (Arabic pages)
   ============================================ */

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .header-content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .product-details {
  padding-left: 0;
  padding-right: 1.2rem;
}

html[dir="rtl"] .contact-extra-wrapper {
  flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switch {
  flex-direction: row-reverse;
}

/* ============================================
   Hero Product Slider
   ============================================ */

.hero-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 360px;
  height: 480px;
  overflow: hidden;
  border-radius: 24px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: -60px;
}

.slider-next {
  right: -60px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

/* Responsive slider adjustments */
@media (max-width: 900px) {
  .slider-container {
    width: 300px;
    height: 400px;
  }

  .slider-prev {
    left: -50px;
  }

  .slider-next {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    margin: 0 auto;
    max-width: 320px;
  }

  .slider-container {
    width: 260px;
    height: 350px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .slider-prev {
    left: -44px;
  }

  .slider-next {
    right: -44px;
  }

  .slider-dots {
    margin-top: 1rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 400px) {
  .slider-container {
    width: 220px;
    height: 300px;
  }

  .slider-prev {
    left: -38px;
  }

  .slider-next {
    right: -38px;
  }
}

/* RTL Slider adjustments */
html[dir="rtl"] .slider-prev {
  left: auto;
  right: -60px;
}

html[dir="rtl"] .slider-next {
  right: auto;
  left: -60px;
}

@media (max-width: 900px) {
  html[dir="rtl"] .slider-prev {
    right: -50px;
  }

  html[dir="rtl"] .slider-next {
    left: -50px;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .slider-prev {
    right: -44px;
  }

  html[dir="rtl"] .slider-next {
    left: -44px;
  }
}

@media (max-width: 400px) {
  html[dir="rtl"] .slider-prev {
    right: -38px;
  }

  html[dir="rtl"] .slider-next {
    left: -38px;
  }
}

