/*
 * Stylesheet for The Lebanese Pharmacists S.A.L preview site.
 *
 * The design is clean and modern with a light colour palette and
 * bold accents derived from the company logo. It is mobile‑first and
 * uses CSS variables for easy colour and spacing adjustments.
 */

:root {
  --primary: #0d70ae; /* deep blue from the logo */
  --secondary: #e2242e; /* red accent */
  --accent: #34ac5d; /* green accent */
  --bg: #f7f9fc; /* very light background */
  --card-bg: #ffffff;
  --text: #141414;
  --muted: #606c80;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  --max-width: 1100px;
  --padding: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */

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

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.25rem;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hide the mobile nav by default; it will be toggled via JS on small screens */
.mobile-nav {
  display: none;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover, .nav a.is-active {
  background-color: var(--primary);
  color: #fff;
}

/* Hero */
/*
 * Hero section styling
 *
 * The hero is the first element visitors see, so it should feel
 * both inspiring and uniquely tied to the brand.  The radial
 * gradient creates a smooth transition between the primary blue
 * and secondary red hues found in the logo.  Additional padding
 * and a subtle decorative overlay give the section more breathing
 * room and a sense of depth.  Pseudo‑elements are used purely for
 * decoration and do not interfere with content or layout.
 */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
  background: radial-gradient(circle at 20% 30%, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  overflow: hidden;
}

/* decorative circle overlay for hero */
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -160px;
  width: 480px;
  height: 480px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-text {
  flex: 1 1 480px;
  max-width: 600px;
}

.hero-text h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  line-height: 1.2;
}

.hero-text p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 48ch;
}

.hero-text .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--primary);
  color: #fff;
  background-color: var(--primary);
  transition: background-color 0.15s;
}

.button.secondary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.button.outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button:hover {
  filter: brightness(0.95);
}

.hero-image {
  flex: 1 1 320px;
  text-align: center;
  padding: 20px;
}

.hero-image img {
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Card wrapper for logo in hero */
/*
 * Logo card for the hero
 *
 * The logo card sits in front of the colourful hero background.
 * Increasing the padding and shadow makes the logo feel more
 * prominent and tactile.  A larger border radius softens the
 * edges, creating a friendly yet professional look.  The maximum
 * width ensures the card stays balanced on larger screens.
 */
.logo-card {
  background-color: #ffffff;
  padding: 32px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 380px;
}

/* Sections */
.section {
  padding: 50px 0;
}

.section.alt {
  background-color: #ffffff;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--primary);
}

.section p {
  max-width: 70ch;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  align-items: center;
}
/*
 * Partner card styling
 *
 * Each partner is wrapped in a link with the class `.partner-item`.  The
 * anchor behaves like a card: it has a fixed height and a border,
 * with the logo centered inside.  On hover, the logo scales up slightly
 * and a semi‑transparent overlay appears with the partner name and a
 * "Learn more" prompt.  This invites visitors to explore detailed
 * subpages for each principal.
 */
.partner-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.partner-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s;
}

.partner-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 10px;
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.partner-item:hover img {
  transform: scale(1.05);
}

.partner-item:hover .overlay {
  opacity: 1;
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 40px;
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: filter 0.2s;
}
.whatsapp-float:hover {
  filter: brightness(0.9);
}
.whatsapp-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    position: absolute;
    right: var(--padding);
    top: 60px;
    z-index: 99;
    box-shadow: var(--shadow);
  }
  .mobile-nav a {
    color: var(--muted);
  }
}