/* ========================================
   GASHE PUBLISHING - DESIGN SYSTEM
   Editorial, Premium, Author-Centric
   ======================================== */

/* === CSS VARIABLES === */
:root {
  /* Editorial Color Palette */
  --color-dark-primary: #13306b;
  --color-dark-secondary: #012e51;
  --color-paper: #f6f4ef;
  --color-paper-light: #fdfcf9;
  --color-gold: #c9a24d;
  --color-gold-hover: #b08f3e;

  /* Text Colors */
  --color-text-dark: #1a1d21;
  --color-text-light: #f6f4ef;
  --color-text-muted: #8b8b8b;
  --color-text-muted-light: #fefefe;
  /* --color-text-muted-light: #c4c4c4; */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 8rem;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --border-radius: 8px;
  --border-radius-pill: 50px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

.overline {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--spacing-xs);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-lg {
  padding: var(--spacing-xxl) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* === BACKGROUNDS === */
.bg-dark {
  background-color: var(--color-dark-primary);
  color: var(--color-text-light);
}

.bg-dark-secondary {
  background-color: var(--color-dark-secondary);
  color: var(--color-text-light);
}

.bg-paper {
  background-color: var(--color-paper);
}

.bg-paper-light {
  background-color: var(--color-paper-light);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: var(--border-radius-pill);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-dark-primary);
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 77, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
  background-color: var(--color-text-light);
  color: var(--color-dark-primary);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-gold);
  padding: 0.5rem 1rem;
  font-weight: 600;
  /* text-decoration: underline; */
  /* text-underline-offset: 4px; */
}

.btn-text:hover {
  color: var(--color-gold-hover);
}

/* === CARDS === */
.card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  color: white;
}

/* === HEADER & NAVIGATION === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-dark-primary);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.logo {
  background-image: url("../images/Gashe-logo-bw.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60px;
  width: 180px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  background-image: url("../images/hero_background.jpg");
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(19, 48, 107, 0.8);
  /* overlay color */
  z-index: 1;
}

/* Make sure content stays above overlay */
.hero > * {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hero-services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.hero-services li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted-light);
  font-size: 0.95rem;
}

.hero-services li::before {
  content: "→";
  color: var(--color-gold);
  font-weight: bold;
}

.hero-center {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-right {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
}

.hero-headline {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* === PROCESS SECTION === */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.process-step {
  display: flex;
  gap: var(--spacing-sm);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-smooth);
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.process-content h4 {
  margin-bottom: 0.25rem;
}

.process-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* === BENEFITS SECTION === */
.benefits-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-xl);
}

.benefits-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.benefit-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.benefits-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.benefit-column {
  text-align: center;
  padding: var(--spacing-md);
}

.benefit-icon-circle {
  width: 70px;
  height: 70px;
  background-color: var(--color-dark-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin: 0 auto var(--spacing-sm);
  font-weight: bold;
}

/* === FEATURED WORKS === */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.work-card {
  text-align: center;
  transition: var(--transition-smooth);
}

.work-cover {
  width: 100%;
  max-width: 300px;
  margin: 0 auto var(--spacing-sm);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.work-card:hover .work-cover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-label {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--spacing-xs);
}

/* === CTA SECTION === */
.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* === FOOTER === */
.footer {
  background-color: var(--color-dark-secondary);
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted-light);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--color-text-muted-light);
  font-size: 0.875rem;
  font-style: italic;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-headline {
    margin-top: var(--spacing-md);
  }

  .process-grid,
  .benefits-header {
    grid-template-columns: 1fr;
  }

  .benefits-columns {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .nav-cta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .benefits-images {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DIVI BUILDER COMPATIBILITY
   ======================================== */

/* Ensure theme styles don't override Divi Builder modules */
.divi-builder-active .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Reset theme styles for Divi sections */
.divi-builder-active .et_pb_section {
  padding: 0;
  /* Let Divi control padding */
}

/* Ensure Divi containers have full width */
.divi-builder-active .et_pb_row {
  width: 80%;
  max-width: 1080px;
  /* Default Divi width, can be overridden by Divi settings */
}

.divi-builder-active .et_pb_row.et_pb_row_fullwidth {
  width: 100%;
  max-width: 100%;
}

/* Allow Divi to control typography within modules */
.divi-builder-active .et_pb_module h1,
.divi-builder-active .et_pb_module h2,
.divi-builder-active .et_pb_module h3,
.divi-builder-active .et_pb_module h4,
.divi-builder-active .et_pb_module h5,
.divi-builder-active .et_pb_module h6 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-bottom: inherit;
  color: inherit;
}

/* Allow Divi to control paragraph styles */
.divi-builder-active .et_pb_module p {
  margin-bottom: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Allow Divi to control button styles */
.divi-builder-active .et_pb_button {
  padding: 0.3em 1em !important;
  /* Reset to Divi defaults roughly */
  border-radius: 3px !important;
  background-color: transparent !important;
  /* Divi buttons are usually transparent with border */
  color: inherit !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.7em !important;
  transition: all 0.2s !important;
}

/* Don't apply theme card styles to Divi modules */
.divi-builder-active .et_pb_module.card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Ensure Divi images display correctly */
.divi-builder-active .et_pb_image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Allow Divi to handle link styling */
.divi-builder-active .et_pb_module a:not(.et_pb_button) {
  text-decoration: none;
  border-bottom: none;
}

/* Full width for Divi sections */
body.divi-builder-active #primary,
body.divi-builder-active .site-main {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Mobile Fixes for Divi */
@media (max-width: 980px) {
  .divi-builder-active .et_pb_row {
    width: 90%;
  }
}
