/* ================================
   Davicwis Pharmacy - Global CSS
   All key colors are EDITABLE
================================ */

/* Light theme variables */
:root {
  --primary-color: #1A73E8;        /* EDITABLE */
  --secondary-color: #076578;      /* EDITABLE */
  --accent-color: #4DD0E1;         /* EDITABLE */

  --background-color: #FFFFFF;     /* EDITABLE */
  --surface-color: #F5F7FB;        /* EDITABLE */
  --border-color: #E0E4EC;         /* EDITABLE */

  --text-color: #1a0101;           /* EDITABLE */
  --text-muted-color: #6B7280;     /* EDITABLE */

  --error-color: #E53935;          /* EDITABLE */
  --success-color: #2E7D32;        /* EDITABLE */

  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08); /* EDITABLE */

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Dark theme variables */
[data-theme="dark"] {
  --primary-color: #4D9FFF;        /* EDITABLE */
  --secondary-color: #0A2A45;      /* EDITABLE */
  --accent-color: #66E0FF;         /* EDITABLE */

  --background-color: #0F0F0F;     /* EDITABLE */
  --surface-color: #111827;        /* EDITABLE */
  --border-color: #1F2937;         /* EDITABLE */

  --text-color: #EAEAEA;           /* EDITABLE */
  --text-muted-color: #9CA3AF;     /* EDITABLE */

  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.6); /* EDITABLE */
}

/* Global reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--light {
  background-color: var(--surface-color);
}

.section--dark {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
  color: var(--text-color);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

p {
  margin: 0 0 1rem;
  color: var(--text-color);
}

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

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted-color);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

/* Cards & grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

/* Management cards */
.management-section {
  margin-bottom: 3rem;
}

.management-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-color);
}

/* Forms */
.form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 2.5rem 0 1.5rem;
}

.footer a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
	margin-top: 1.5rem;
	font-size: 16;
	color: #F90;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.6s ease forwards;
}

.cookie-banner p {
  margin: 0;
  max-width: 70%;
  font-size: 0.9rem;
}

.cookie-banner .btn {
  white-space: nowrap;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner.hide {
  display: none;
}
.footer .container .grid.grid-3 div h3 {
	color: #F90;
}
.footer .container .grid.grid-3 div h4 {
	color: #F90;
}
.footer .container .grid.grid-3 div .text-muted {
	color: #F90;
}
.footer .container .grid.grid-3 div p a {
	color: #F90;
}
.footer-copyright {
	color: #F90;
	font-size: 16px;
}

.mission {
  padding: 4rem 0;
}

.mission-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-heading);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mission-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.mission-icon svg {
  width: 56px;
  height: 56px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.mission-item:hover .mission-icon svg {
  color: var(--accent-color);
}

.mission-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.mission-item p {
  color: var(--text-muted-color);
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 900px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  text-align: center;
  padding-top: 2rem;
}

.product-icon {
  margin-bottom: 1rem;
}

.product-icon svg {
  width: 56px;
  height: 56px;
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-icon svg {
  color: var(--accent-color);
  transform: scale(1.08);
}

/* R&D Section With Image */
.rd-section {
  align-items: center;
  gap: 2.5rem;
}

.rd-image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rd-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.rd-text ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.rd-text li {
  margin-bottom: 0.5rem;
  color: var(--text-muted-color);
}

/* Mobile */
@media (max-width: 900px) {
  .rd-section {
    grid-template-columns: 1fr;
  }

  .rd-image {
    order: -1;
  }
}

/* PAGE BANNER */
.page-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.page-banner .banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.75);
  transition: transform 1.2s ease;
}

.page-banner:hover .banner-bg {
  transform: scale(1.05);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  animation: fadeUp 1s ease forwards;
}

.banner-content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.banner-content p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-banner {
    height: 240px;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }
}

/* FIXED TERMS & CONDITIONS LAYOUT */
.terms-wrapper {
  max-width: 850px;        /* Controls width */
  margin: 0 auto;          /* Centers the box */
  padding: 2.5rem;         /* Inner spacing */
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Ensure headings look clean */
.terms-wrapper h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.terms-wrapper h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

/* Text styling */
.terms-wrapper p,
.terms-wrapper ul {
  color: var(--text-muted-color);
  line-height: 1.7;
}

.terms-wrapper ul {
  padding-left: 1.2rem;
}

.terms-wrapper li {
  margin-bottom: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terms-wrapper {
    padding: 1.5rem;
    max-width: 95%;
  }
}

/* UNIVERSAL PAGE BOXING (applies to all pages except those with .no-box) */
body:not(.no-box) .section,
body:not(.no-box) .page-content,
body:not(.no-box) .terms-wrapper,
body:not(.no-box) .privacy-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Remove double padding inside .section */
body:not(.no-box) .section {
  padding: 2.5rem !important;
}

/* Ensure headings look clean */
body:not(.no-box) h1 {
  margin-bottom: 1.5rem;
}

body:not(.no-box) h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body:not(.no-box) .section,
  body:not(.no-box) .page-content,
  body:not(.no-box) .terms-wrapper,
  body:not(.no-box) .privacy-wrapper {
    padding: 1.5rem;
    max-width: 95%;
  }
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85; /* was 0.55 — now brighter */
  filter: brightness(1.05); /* slight boost */
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.slide.active img {
  opacity: 1;
  filter: brightness(1.15);
}
.page-banner .banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9; /* was 0.55 */
  filter: brightness(1.1); /* was 0.75 */
  transition: transform 1.2s ease, filter 0.6s ease;
}

.page-banner:hover .banner-bg {
  transform: scale(1.05);
  filter: brightness(1.2);
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}
.banner-content h1,
.banner-content p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
/* PHARMACEUTICAL BANNER */
.pharma-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bright, crisp image */
.pharma-banner .banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* FIX: remove dullness */
  opacity: 0.95;
  filter: brightness(1.25) contrast(1.1) saturate(1.15);

  transition: transform 1.2s ease, filter 0.6s ease;
}

/* Luxury hover zoom */
.pharma-banner:hover .banner-bg {
  transform: scale(1.05);
  filter: brightness(1.35) contrast(1.15);
}

/* Soft premium gradient overlay */
.pharma-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.15),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}

/* Text styling */
.pharma-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  animation: fadeUp 1s ease forwards;
}

.pharma-banner .banner-content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.pharma-banner .banner-content p {
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pharma-banner {
    height: 260px;
  }

  .pharma-banner .banner-content h1 {
    font-size: 1.8rem;
  }

  .pharma-banner .banner-content p {
    font-size: 1rem;
  }
}
/* GALLERY SECTION */
.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

/* SWIPE SUPPORT */
.lightbox-img.swipe {
  transition: transform 0.2s ease-out;
}