/* ==========================================================================
   C2I Website — Master Stylesheet
   Based on DESIGN.md design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');


/* --------------------------------------------------------------------------
   2. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {

  /* --- Color Palette --- */
  --color-olive:        #75824F;
  --color-black:        #000000;
  --color-olive-light:  #C8C8A9;
  --color-olive-dark:   #4A4A3A;
  --color-white:        #FFFFFF;
  --color-off-white:    #F5F5F0;
  --color-gray-light:   #E8E8E8;
  --color-gray-mid:     #888888;
  --color-gray-dark:    #333333;

  /* --- Functional Color Aliases --- */
  --color-text:         #333333;
  --color-text-light:   #888888;
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F5F5F0;
  --color-border:       #E8E8E8;
  --color-accent:       #75824F;
  --color-accent-hover: #4A4A3A;

  /* --- Typography --- */
  --font-heading: 'Montserrat', 'Arial', sans-serif;
  --font-body:    'Open Sans', 'Arial', sans-serif;

  /* --- Type Scale --- */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* --- Spacing Scale --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* --- Layout --- */
  --max-width:        1200px;
  --max-width-narrow: 800px;
  --border-radius:    4px;
  --border-radius-lg: 8px;

  /* --- Section Padding --- */
  --section-padding: var(--space-12); /* mobile: 48px */

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}


/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */

/* Container — centers content, respects max-width */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4); /* 16px gutter mobile */
}

/* Narrow container for text-heavy sections */
.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Section wrapper — alternating backgrounds applied per-section */
.section {
  padding-block: var(--section-padding);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-olive-dark);
  color: var(--color-white);
}

.section--accent {
  background-color: var(--color-olive-light);
}

/* 12-column CSS Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

/* Flex row for cards/partner logos etc. */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}


/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* mobile */
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav__logo img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.nav__brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Hide or scale text on very small screens to prevent overflow */
@media (max-width: 480px) {
  .nav__brand-text {
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
  }
}

/* Nav links — hidden on mobile, shown on desktop */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  padding-bottom: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Hamburger — mobile only */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile dropdown */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-4);
  z-index: 999;
}

.nav__mobile-menu.is-open {
  display: block;
}

.nav__mobile-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--color-off-white);
  overflow: hidden;
}

/* Full-height homepage hero */
.hero--full {
  min-height: calc(100vh - 60px);
}

/* Image hero with dark overlay */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

/* Light hero (on off-white background) */
.hero--light .hero__title {
  color: var(--color-black);
}

/* Dark hero (on image background) */
.hero--image .hero__title {
  color: var(--color-white);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero--light .hero__subtitle {
  color: var(--color-gray-dark);
}

.hero--image .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}


/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

/* Primary button */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Ghost / Secondary button */
.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Ghost on dark background */
.btn--ghost-light {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--ghost-light:hover {
  background-color: var(--color-white);
  color: var(--color-accent-hover);
}

/* Size variants */
.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}


/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Placeholder image block */
.card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-olive-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-olive-dark);
  letter-spacing: 0.04em;
}

.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.card__footer {
  padding-top: var(--space-4);
  margin-top: auto;
}


/* --------------------------------------------------------------------------
   9. Section Headings
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--centered {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.6;
}

.section-header--centered .section-subtitle {
  margin-inline: auto;
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}


/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid rgba(117, 130, 79, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

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


/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1); /* white variant */
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-olive-light);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
}


/* --------------------------------------------------------------------------
   12. Partner / Logo Strip
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.logo-strip__item {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.logo-strip__item:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* --------------------------------------------------------------------------
   13. Dividers & Accents
   -------------------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

/* Olive accent strip — use sparingly */
.accent-strip {
  height: 4px;
  background-color: var(--color-olive);
  width: 48px;
  margin-bottom: var(--space-6);
}

.accent-strip--centered {
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   14. Scroll Animation (Fade-in on scroll)
   Uses JS to add .is-visible class
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------------
   15. Utility Classes
   -------------------------------------------------------------------------- */

/* Display */
.d-none    { display: none; }
.d-block   { display: block; }
.d-flex    { display: flex; }
.d-grid    { display: grid; }

/* Flex helpers */
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.align-center  { align-items: center; }

/* Text alignment */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* Font size */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }

/* Font weight */
.font-normal   { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 800; }

/* Font family */
.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

/* Colors */
.text-olive      { color: var(--color-olive); }
.text-white      { color: var(--color-white); }
.text-muted      { color: var(--color-text-light); }
.text-dark       { color: var(--color-text); }
.bg-white        { background-color: var(--color-white); }
.bg-off-white    { background-color: var(--color-off-white); }
.bg-olive        { background-color: var(--color-olive); }
.bg-olive-dark   { background-color: var(--color-olive-dark); }
.bg-black        { background-color: var(--color-black); }

/* Spacing — margin */
.m-0  { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Spacing — padding */
.p-0   { padding: 0; }
.py-4  { padding-block: var(--space-4); }
.py-8  { padding-block: var(--space-8); }
.py-12 { padding-block: var(--space-12); }
.px-4  { padding-inline: var(--space-4); }
.px-6  { padding-inline: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.max-w  { max-width: var(--max-width); }
.max-w-narrow { max-width: var(--max-width-narrow); }

/* Border radius */
.rounded    { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   16. Responsive — Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {

  :root {
    --section-padding: var(--space-16); /* 64px */
  }

  .container {
    padding-inline: var(--space-6); /* 24px gutter */
  }

  /* Nav */
  .nav {
    height: 72px;
  }

  .nav__logo img {
    height: 48px;
  }

  .hero {
  }

  /* Nav links visible on tablet+ */
  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  /* Hero */
  .hero__title {
    font-size: var(--text-4xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --------------------------------------------------------------------------
   17. Responsive — Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {

  :root {
    --section-padding: var(--space-24); /* 96px */
  }

  /* Hero */
  .hero__title {
    font-size: var(--text-5xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}


/* --------------------------------------------------------------------------
   18. Responsive — Large Desktop (1280px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {

  .container {
    padding-inline: 0; /* let max-width do the work */
  }
}


/* --------------------------------------------------------------------------
   19. C2I Studios — Design Variation
   Applied via .studios-* modifier classes on section/page level
   -------------------------------------------------------------------------- */

/* Studios hero — darker overlay, cinematic feel */
.studios-hero::before {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Studios accent — leans olive-dark */
.studios-accent {
  color: var(--color-olive-dark);
}

.studios-accent-bg {
  background-color: var(--color-olive-dark);
}

/* Studios section label */
.studios-label {
  color: var(--color-olive-dark);
}

/* Spotlight card — featured magazine covers */
.spotlight-card {
  background-color: var(--color-black);
  border-color: var(--color-olive-dark);
  color: var(--color-white);
}

.spotlight-card .card__title {
  color: var(--color-white);
}

.spotlight-card .card__text {
  color: rgba(255, 255, 255, 0.7);
}

.spotlight-card .card__label {
  color: var(--color-olive-light);
}


/* --------------------------------------------------------------------------
   End of style.css
   ========================================================================== */
