/* ============================================================
   PIXSOUL, INC. — MAIN STYLESHEET
   Design · Marketing · Communications
   ============================================================ */


/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colors */
  --color-green-primary:  #6b8c2a;   /* olive green — primary accent */
  --color-green-dark:     #4a6318;   /* dark green — hover states, headings */
  --color-green-light-bg: #8faa3d;   /* light green — footer email hover */
  --color-green-section:  #eef2e6;   /* subtle tinted background for How We Work */
  --color-green-footer:   #3d5214;   /* dark olive — footer background */
  --color-off-white:      #f5f5f5;   /* light gray — intro section background */
  --color-white:          #ffffff;
  --color-dark-text:      #222222;

  /* Typography */
  --font-headline: 'Roboto', Arial, Helvetica, sans-serif;
  --font-body:     'Roboto', Arial, Helvetica, sans-serif;

  /* Layout */
  --max-width:        1100px;
  --section-pad-y:    80px;
  --section-pad-x:    48px;

  /* Shadows */
  --shadow-nav:   0 2px 12px rgba(0, 0, 0, 0.09);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.07);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-dark-text);
  line-height: 1.75;
  background-color: var(--color-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


/* ============================================================
   TYPOGRAPHY — Shared headline rules
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}


/* ============================================================
   SHARED LAYOUT — Section container & headline used by
   "What Sets Us Apart" and "How We Work"
   ============================================================ */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-headline {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--color-dark-text);
  letter-spacing: 0.1em;
}

/* Olive underline accent — used below "What Sets Us Apart" */
.headline-underline {
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-green-primary);
  border-radius: 2px;
  margin: 14px auto 0;
}


/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-nav);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;         /* allows links to wrap below logo on mobile */
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
}

.nav-logo img {
  width: 160px;
  height: auto;
}

/* Checkbox is invisible but still togglable via its label */
.nav-toggle {
  display: none;
}

/* Three-line hamburger icon — hidden on desktop, shown on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px 2px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-dark-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate three lines into an X when menu is open */
.nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop nav links — inline row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-dark-text);
  transition: color 0.2s ease;
}

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

/* Push anchor-linked sections below the fixed nav height */
#what-sets-us-apart,
#how-we-work,
#contact {
  scroll-margin-top: 80px;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background-image: url('Slide-Brand.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 0 32px;
}

.hero-headline {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-subhead {
  font-family: var(--font-headline);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-block;
  background-color: var(--color-green-primary);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 44px;
  border-radius: 3px;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.hero-cta:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-2px);
}

.hero-cta:active {
  transform: translateY(0);
}


/* ============================================================
   INTRO
   ============================================================ */
.intro {
  background-color: var(--color-off-white);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-inner p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-dark-text);
}


/* ============================================================
   WHAT SETS US APART
   ============================================================ */
.what-sets-us-apart {
  background-color: var(--color-white);
  padding: var(--section-pad-y) var(--section-pad-x);
}

/* Two-column card grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}

.card {
  background-color: var(--color-white);
  border: 1px solid #e2e2e2;
  box-shadow: var(--shadow-card);
  padding: 44px 40px;
  border-radius: 2px;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-green-primary);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

/* Override h4 uppercase/letter-spacing for the card subtitle */
.card-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-green-dark);
  margin-bottom: 22px;
}

.card p {
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

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


/* ============================================================
   HOW WE WORK
   ============================================================ */
.how-we-work {
  background-color: var(--color-green-section);
  padding: var(--section-pad-y) var(--section-pad-x);
}

/* Decorative image above columns */
.comm-image-wrap {
  text-align: center;
  margin: 52px 0 56px;
}

.comm-image {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* Three equal columns */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.column-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-green-dark);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.column p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-dark-text);
}


/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.site-footer {
  background-color: var(--color-green-footer);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Muted uppercase label used above each column */
.footer-label {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.footer-description {
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 24px;
}

.footer-copyright {
  font-family: var(--font-headline);
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.footer-email {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--color-green-light-bg);
}


/* ============================================================
   MEDIA QUERIES
   ============================================================ */

/* --- Tablet: collapse three columns to one (≤ 860px) --- */
@media (max-width: 860px) {
  .columns-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --- Mobile: full layout adjustments (≤ 768px) --- */
@media (max-width: 768px) {

  /* Reduce section padding on mobile */
  :root {
    --section-pad-y: 48px;
    --section-pad-x: 24px;
  }

  /* Nav container tightened */
  .nav-container {
    padding: 16px 24px;
  }

  /* Show hamburger icon */
  .hamburger {
    display: flex;
  }

  /* Nav links: hidden by default, revealed when toggle is checked.
     They wrap below the logo/hamburger row via flex-wrap on parent. */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 16px;
    border-top: 1px solid #eeeeee;
    margin-top: 14px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Hero: tighten letter-spacing on small screens */
  .hero-headline {
    letter-spacing: 0.06em;
  }

  /* Cards: stack to single column */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .card {
    padding: 32px 28px;
  }

  /* Communication image */
  .comm-image-wrap {
    margin: 40px 0 44px;
  }

  /* Footer: stack to single column */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {

  .nav-logo img {
    width: 130px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-cta {
    padding: 14px 30px;
    font-size: 0.8rem;
  }
}
