/* 
   BC Creative - Design System
   Theme: Warm Editorial / Magazine Style
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --white: #ffffff;
  --off-white: #fafafa;
  --cream: #f5f3ef;
  --text-dark: #1a1a1a;
  --text-body: #404040;
  --text-muted: #666666;
  --text-light: #888888;
  --forest-green: #2d5a4a;
  --forest-light: #3d7a64;
  --forest-pale: #e8f0ed;
  --border: #e0e0e0;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing - tightened */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1140px;
  --header-height: 64px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 55ch;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.small {
  font-size: 0.8125rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-green);
}

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

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

/* Utilities */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}


.text-green {
  color: var(--forest-green);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.logo-img {
  height: 48px;
  width: auto;
  margin-bottom: -4px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* Nav CTA Button */
.nav-links .btn.btn-primary {
  margin-left: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 3px;
  background: var(--forest-green);
  color: var(--white);
}

.nav-links .btn.btn-primary:hover {
  background: var(--forest-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--forest-green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn-text {
  background: none;
  padding: 0;
  color: var(--forest-green);
  font-weight: 500;
}

.btn-text::after {
  content: ' →';
  transition: transform 0.2s;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  padding-right: var(--space-md);
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-green);
  margin-bottom: var(--space-xs);
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero h1 em {
  font-style: italic;
  color: var(--forest-green);
}

.hero p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.hero-image {
  position: relative;
  height: 480px;
  background: var(--cream);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    height: 350px;
    margin-top: var(--space-md);
  }
}

/* Editorial Grid */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-8 {
  grid-column: span 8;
}

@media (max-width: 768px) {

  .col-6,
  .col-4,
  .col-8 {
    grid-column: span 12;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--forest-green);
  background: var(--forest-pale);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.portfolio-overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial */
.testimonial-section {
  background: var(--cream);
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.testimonial cite {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-light);
}

.testimonial cite strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: var(--forest-green);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  opacity: 0.85;
  margin: 0 auto var(--space-md);
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--forest-green);
}

.cta-section .btn-primary:hover {
  background: var(--off-white);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}

footer .logo {
  font-size: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  letter-spacing: 0.22em !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--forest-green);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Form */
.form-group {
  margin-bottom: var(--space-sm);
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--forest-green);
}

/* Animations & Dynamic Effects */

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animations for children */
[data-stagger] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-stagger].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll state */
header {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Parallax container */
.hero-image {
  overflow: hidden;
}

.hero-image img {
  transform-origin: center top;
  will-change: transform;
}

/* Magnetic button effect */
.btn-primary {
  transition: transform 0.15s ease, background-color 0.25s ease;
  will-change: transform;
}

/* Portfolio hover enhancements */
.portfolio-item {
  transition: transform 0.4s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-overlay {
  transition: opacity 0.4s ease;
}

/* Service card hover lift */
.service-card {
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--forest-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--forest-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.custom-cursor.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: var(--forest-light);
}

/* Page load - no opacity animation to prevent blank page */

/* Text reveal animation */
.reveal-text {
  overflow: hidden;
}

.reveal-inner {
  display: inline-block;
  transform: translateY(100%);
  animation: revealUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes revealUp {
  to {
    transform: translateY(0);
  }
}

/* Smooth link underlines */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--forest-green);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Button hover glow */
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(45, 90, 74, 0.3);
}

/* Process step number animation */
.process-step::before {
  transition: color 0.3s ease;
}

.process-step:hover::before {
  color: var(--forest-light);
}

/* Image zoom on hover */
.portfolio-item img {
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

/* Mobile menu animation */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--white);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: process;
}

.process-step {
  position: relative;
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

.process-step h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}