/* 
 * One Planet Publishing - Modern CSS
 * A complete redesign with modern styling and effects
 */

:root {
  /* Primary Colors */
  --primary-dark: #1b2556;
  --primary-gold: #e8a137;
  --primary-light: #f5f5f7;
  
  /* Secondary Colors */
  --secondary-blue: #2b4871;
  --secondary-teal: #3a7d7e;
  --secondary-green: #bddf10;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f5f5f7;
  --neutral-300: #e4e4e7;
  --neutral-400: #a1a1aa;
  --neutral-500: #71717a;
  --neutral-600: #52525b;
  --neutral-700: #3f3f46;
  --neutral-800: #27272a;
  --neutral-900: #18181b;
  
  /* Font Sizes */
  --fs-xs: clamp(0.75rem, 0.7vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8vw, 1rem);
  --fs-base: clamp(1rem, 1vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.2vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 2vw, 1.875rem);
  --fs-3xl: clamp(1.875rem, 2.5vw, 2.25rem);
  --fs-4xl: clamp(2.25rem, 3vw, 3rem);
  --fs-5xl: clamp(3rem, 4vw, 4rem);
  
  /* Spacing */
  --space-xs: clamp(0.5rem, 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.75vw, 1rem);
  --space-md: clamp(1rem, 1.5vw, 1.5rem);
  --space-lg: clamp(1.5rem, 2vw, 2rem);
  --space-xl: clamp(2rem, 3vw, 3rem);
  --space-2xl: clamp(3rem, 4vw, 4rem);
  --space-3xl: clamp(4rem, 5vw, 5rem);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-modal: 100;
  --z-overlay: 1000;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

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

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  text-align: center;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gold);
  border-radius: var(--radius-full);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--neutral-100);
}

.btn-secondary {
  background-color: var(--secondary-blue);
  color: var(--neutral-100);
}

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

.btn-outline:hover {
  background-color: var(--primary-gold);
  color: var(--neutral-100);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate {
  opacity: 0;
}

.animate.fade-in {
  animation: fadeIn 1s forwards;
}

.animate.slide-left {
  animation: slideInLeft 1s forwards;
}

.animate.slide-right {
  animation: slideInRight 1s forwards;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-overlay);
  transition: all var(--transition-normal);
}

.header-scrolled {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  transition: height var(--transition-normal);
}

.header-scrolled .logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--neutral-100);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-100);
  font-size: var(--fs-2xl);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--neutral-100);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(27, 37, 86, 0.8), rgba(27, 37, 86, 0.6));
  z-index: var(--z-normal);
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: var(--z-normal);
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-description {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--neutral-200);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: var(--z-below);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.about-text p {
  font-size: var(--fs-base);
  margin-bottom: var(--space-md);
  color: var(--neutral-700);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Services Section */
.services {
  background-color: var(--neutral-200);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  min-height: 400px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--space-lg);
  position: relative;
}

.service-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.service-description {
  font-size: var(--fs-base);
  color: var(--neutral-700);
  margin-bottom: var(--space-md);
}

.service-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--secondary-blue);
}

/* Gallery Section */
.gallery {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 37, 86, 0.3);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: var(--z-normal);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--neutral-100);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: var(--z-above);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Contact Section */
.contact {
  position: relative;
  background-color: var(--neutral-200);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  padding: var(--space-lg);
}

.contact-info h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.contact-details {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  font-size: var(--fs-xl);
  color: var(--primary-gold);
}

.contact-text {
  font-size: var(--fs-base);
  color: var(--neutral-700);
}

.contact-text strong {
  display: block;
  color: var(--neutral-800);
  margin-bottom: 5px;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--neutral-300);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 60px;
}

.footer-about {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--neutral-100);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--neutral-400);
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: var(--primary-gold);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.footer-contact-icon {
  color: var(--primary-gold);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--neutral-500);
}

.footer-bottom a {
  color: var(--primary-gold);
}

/* Media Queries */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-image {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-map {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
    transition: height var(--transition-normal);
    z-index: var(--z-overlay);
  }
  
  .nav-menu.active {
    height: calc(100vh - 80px);
    padding: var(--space-lg) 0;
    overflow-y: auto;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: var(--fs-4xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--fs-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--fs-lg);
  }
  
  .hero-title {
    font-size: var(--fs-3xl);
  }
  
  .hero-description {
    font-size: var(--fs-base);
  }
  
  .about-text h3 {
    font-size: var(--fs-2xl);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    max-width: 350px;
    margin: 0 auto;
  }
}