/* ===================================
   CLEMFIELD CONSULTING - DESIGN SYSTEM
   =================================== */

/* === CSS VARIABLES === */
:root {
  /* Brand Colors */
  --color-primary-taupe: #9B8B7E;
  --color-primary-taupe-light: #B5A89D;
  --color-primary-taupe-dark: #7A6D63;
  --color-accent-teal: #5FA8A3;
  --color-accent-teal-light: #7DBDB9;
  --color-accent-teal-dark: #4A8A86;

  /* Neutral Colors */
  --color-dark: #2C2C2C;
  --color-gray: #6B6B6B;
  --color-light-gray: #E8E3DF;
  --color-white: #FFFFFF;
  --color-off-white: #FAFAF8;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.875rem;
  /* 14px */
  --text-sm: 1rem;
  /* 16px */
  --text-base: 1.125rem;
  /* 18px */
  --text-lg: 1.5rem;
  /* 24px */
  --text-xl: 2rem;
  /* 32px */
  --text-2xl: 2.5rem;
  /* 40px */
  --text-3xl: 3rem;
  /* 48px */
  --text-4xl: 3.5rem;
  /* 56px */
  --text-5xl: 4rem;
  /* 64px */

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-lg);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 400;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 400;
}

h3 {
  font-size: var(--text-2xl);
  font-style: italic;
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-teal);
}

/* Teal accent periods */
.accent-period {
  color: var(--color-accent-teal);
}

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* === NAVIGATION === */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  /* Reduced from space-xl (48px) */
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  /* Increased from 500 */
  color: var(--color-dark);
  transition: color var(--transition-base);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-teal);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent-teal);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--color-dark);
  transition: all var(--transition-base);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-dark);
  /* Changed to dark for stronger contrast in nav */
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary-taupe);
  border: 2px solid var(--color-primary-taupe);
}

.btn-secondary:hover {
  background-color: var(--color-primary-taupe);
  color: var(--color-white);
}

.btn-teal {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
}

.btn-teal:hover {
  background-color: var(--color-accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === HERO SECTION === */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('../images/clemfield_linkedin_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Add a subtle overlay to ensure text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--color-primary-taupe);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-gray);
  max-width: 700px;
}

/* Curved divider */
.curve-divider {
  position: relative;
  background-color: var(--color-primary-taupe);
  padding-bottom: 60px;
}

.curve-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* === CONTENT SECTIONS === */
.section-taupe {
  background-color: var(--color-primary-taupe);
  color: var(--color-white);
}

.section-light {
  background-color: var(--color-off-white);
}

.section-white {
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: inherit;
}

.section-taupe .section-title {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

.text-italic {
  font-style: italic;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.card-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background-color: var(--color-light-gray);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  color: var(--color-dark);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.card-label {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* === MISSION SECTION === */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.mission-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* === TESTIMONIAL === */
.testimonial {
  background-color: var(--color-light-gray);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  font-size: var(--text-base);
  color: var(--color-gray);
}

/* === CTA SECTION === */
.cta-section {
  background-color: var(--color-primary-taupe);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) var(--container-padding);
}

.cta-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.cta-subtitle {
  font-size: var(--text-lg);
  font-style: italic;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
}

/* === FOOTER === */
.footer {
  background-color: #1a1a1a;
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-primary-taupe-light) 50%, var(--color-accent-teal) 100%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-location {
  font-size: var(--text-base);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* === PORTFOLIO / VIDEO SECTION === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.portfolio-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.portfolio-content {
  padding: var(--space-lg);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-md);
    --space-3xl: 3rem;
    --text-5xl: 2.5rem;
    --text-3xl: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 60vh;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
  }
}

/* === UTILITY CLASSES === */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.text-bold {
  font-weight: 700;
}

.text-semibold {
  font-weight: 600;
}

.text-teal {
  color: var(--color-accent-teal);
}

.text-taupe {
  color: var(--color-primary-taupe);
}