/*
Theme Name: Pharma Food Packaging (Real Images Full Hero)
Theme URI: https://pharmafoodpackaging.example
Author: ChatGPT
Description: WordPress theme for Pharma Food Packaging Inc. with a full-screen hero slider, Neve-style centered hero text, and real factory images.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pharma-food-packaging-real-images
*/

:root {
  --pfp-blue: #0057b7;
  --pfp-green: #21a650;
  --pfp-light: #f5f7fb;
  --pfp-dark: #1b2533;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--pfp-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-tagline {
  font-size: 0.8rem;
  opacity: 0.9;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  font-weight: 500;
  color: #ffffff;
}

main {
  min-height: 60vh;
}

/* Full-screen hero slider */
.hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
}

.pfp-slider {
  position: absolute;
  inset: 0;
}

.pfp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pfpSliderFade 21s infinite;
}

.pfp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* stagger slides */
.pfp-slide:nth-child(1) { animation-delay: 0s; }
.pfp-slide:nth-child(2) { animation-delay: 7s; }
.pfp-slide:nth-child(3) { animation-delay: 14s; }

@keyframes pfpSliderFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(15, 23, 42, 0.65) 40%,
    rgba(15, 23, 42, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
  color: #ffffff;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.hero-text h2 {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.1rem;
}

.hero-text p {
  font-size: 0.98rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-cta {
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  margin: 0 0.4rem;
}

.btn-primary {
  background: #ffffff;
  color: #0b1120;
}

.btn-primary:hover {
  background: #e5e7eb;
}

.btn-secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.25);
}

/* Content sections under hero */
section.content-section {
  padding: 3.5rem 1rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  color: var(--pfp-blue);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  text-align: center;
}

.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e5ec;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.highlight-list li::before {
  content: "• ";
  color: var(--pfp-green);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.8rem;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

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

/* Footer */
.site-footer {
  background: #0b1220;
  color: #e5e7eb;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-meta {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  .hero-inner {
    padding-top: 5.5rem;
  }
  .hero-text h1 {
    font-size: 2.1rem;
  }
  .hero-text h2 {
    font-size: 1.05rem;
  }
  .columns-2,
  .contact-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Widget layouts */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.site-sidebar {
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e5ec;
  background: #f9fafb;
  font-size: 0.9rem;
}

.site-sidebar .widget {
  margin-bottom: 1.25rem;
}

.site-sidebar .widget-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-widget-area {
  font-size: 0.85rem;
}

.footer-widget-area .widget-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
