@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg-color: #F2F0EA;
  --text-color: #0A0A0A;
  --text-muted: #555555;
  --accent-color: #B84A28;
  --surface-color: #FFFFFF;
  --surface-dark: #1A1A1A;
  --border-color: #D6D3C9;
  
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  --nav-height: 80px;
  --container-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.text-huge {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
}

.text-h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.text-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.text-h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 2px solid transparent;
  border-radius: 0;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

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

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

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background-color: rgba(242, 240, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.site-header.scrolled-down {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: translateX(0);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .mobile-menu-btn span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-open .mobile-nav {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Footer */
.site-footer {
  background-color: var(--surface-dark);
  color: var(--bg-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

.footer-brand img {
  height: 60px;
  filter: invert(1);
  margin-bottom: 24px;
}

.footer-brand p {
  color: #999;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: #fff;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #999;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Layout Utilities */
.section-padding {
  padding: 120px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .section-padding {
    padding: 80px 0;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Specific Sections */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100%;
  z-index: 1;
}

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

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

@media (max-width: 992px) {
  .hero-image-wrapper {
    width: 100%;
    opacity: 0.2;
  }
  .hero-image-wrapper::after {
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  }
}

.marquee {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marquee-item::after {
  content: '✦';
  color: var(--accent-color);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Services Cards */
.service-card {
  background-color: var(--surface-color);
  padding: 48px 32px;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-color);
}

/* Image Reveal */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal img {
  transform: scale(1.1);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.visible img {
  transform: scale(1);
}

.img-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.visible::after {
  transform: scaleX(0);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 32px 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
}

.accordion-item.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  transition: max-height 1s ease-in-out;
}

.accordion-inner {
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Page Header */
.page-header {
  padding: 200px 0 100px;
  background-color: var(--surface-dark);
  color: var(--bg-color);
  text-align: center;
}

.page-header h1 {
  color: var(--bg-color);
  margin-bottom: 24px;
}

.page-header p {
  color: #999;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Form */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 16px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--text-color);
}

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

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}
