/* Import main styles */
@import '../../assets/styles.css';

/* Project-specific styles */
:root {
  /* Chateau colors */
  --chateau-primary: #8D3541;     /* Deep rose red */
  --chateau-secondary: #565234;   /* Earthy olive */
  --chateau-tertiary: #D5A021;    /* Golden accent */
  --chateau-light: #F8F5EB;       /* Cream background */
  --chateau-dark: #2E2E2E;        /* Dark grey */
  --chateau-gradient: linear-gradient(135deg, var(--chateau-primary), #6D192A);
}

/* Custom cursor for Chateau theme */
.custom-cursor {
  visibility: visible;
}

.cursor-dot {
  background-color: var(--chateau-primary);
}

.cursor-outline {
  border: 1px solid rgba(141, 53, 65, 0.3);
}

/* Light/elegant mode styles */
body {
  background-color: var(--chateau-light);
  color: var(--chateau-dark);
  --bg-primary: var(--chateau-light);
  --bg-secondary: #F0EDE4;
  --text-primary: var(--chateau-dark);
  --text-secondary: #565234;
}

.case-study-nav {
  background-color: rgba(248, 245, 235, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--chateau-primary);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 3rem 0 1.5rem;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.01em;
}

/* Text formatting */
.text-block {
  margin-bottom: 2.5rem;
}

.text-block p {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 65ch;
  color: var(--chateau-dark);
}

.text-block ul, .text-block ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Metadata grid styling */
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

.metadata-item {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--chateau-primary);
}

.metadata-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--chateau-primary);
  font-family: 'Cormorant Garamond', serif;
}

.metadata-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: var(--chateau-secondary);
}

/* Hero section customizations */
.case-study-hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-image: url('./images/chateau_vdr28.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.case-study-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 0;
}

.case-study-hero .container {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 1000px;
}

.case-study-title {
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.case-study-title .subtitle {
  color: var(--chateau-tertiary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
}

.case-study-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background-color: var(--chateau-tertiary);
  margin-top: 1.5rem;
}

.case-study-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--chateau-tertiary);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Brand board styles */
.brand-board-container {
  margin: 4rem 0;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.brand-board-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--chateau-gradient);
}

.brand-board {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Color palette section */
.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.color-swatch {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-swatch:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.swatch-color {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.swatch-color.primary {
  background-color: var(--chateau-primary);
}

.swatch-color.secondary {
  background-color: var(--chateau-secondary);
}

.swatch-color.tertiary {
  background-color: var(--chateau-tertiary);
}

.swatch-color.light {
  background-color: var(--chateau-light);
  border: 1px solid rgba(0,0,0,0.05);
}

.swatch-color.dark {
  background-color: var(--chateau-dark);
}

.swatch-info {
  padding: 1rem;
  background-color: white;
}

.swatch-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
}

/* Typography display */
.typography-display {
  margin: 3rem 0;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.font-family {
  margin-bottom: 2.5rem;
}

.font-family:last-child {
  margin-bottom: 0;
}

.font-name {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.font-samples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.font-sample.primary {
  font-family: 'Cormorant Garamond', serif;
}

.font-sample.secondary {
  font-family: 'Montserrat', sans-serif;
}

.font-sample.large {
  font-size: 3rem;
  line-height: 1.2;
}

.font-sample.medium {
  font-size: 2rem;
  line-height: 1.3;
}

.font-sample.small {
  font-size: 1.25rem;
  line-height: 1.4;
}

.font-sample.body {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.font-weights {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.font-weight {
  font-size: 1.25rem;
}

.font-weight.light {
  font-weight: 300;
}

.font-weight.regular {
  font-weight: 400;
}

.font-weight.medium {
  font-weight: 500;
}

.font-weight.semibold {
  font-weight: 600;
}

.font-weight.bold {
  font-weight: 700;
}

/* Logo exploration grid */
.logo-exploration {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.logo-variant {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.logo-variant:hover {
  transform: translateY(-5px);
}

.logo-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.logo-caption {
  font-size: 0.9rem;
  color: #666;
}

/* Bottle mockup section */
.bottle-mockup-container {
  position: relative;
  margin: 4rem 0;
  padding: 3rem;
  background-color: var(--chateau-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.bottle-mockup {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .bottle-mockup {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

.bottle {
  position: relative;
  max-width: 200px;
  transition: transform 0.5s ease;
}

.bottle:hover {
  transform: translateY(-10px);
}

.bottle img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.15));
}

.bottle-caption {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--chateau-secondary);
  font-style: italic;
}

/* Estate visuals */
.estate-visuals {
  margin: 4rem 0;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  margin: 2rem 0;
}

.visual-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

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

.visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-item.large {
  grid-column: span 8;
  grid-row: span 2;
  height: 500px;
}

.visual-item.medium {
  grid-column: span 4;
  height: 240px;
}

@media (max-width: 992px) {
  .visual-grid {
    grid-template-rows: repeat(4, auto);
  }
  
  .visual-item.large {
    grid-column: span 12;
  }
  
  .visual-item.medium {
    grid-column: span 6;
  }
}

@media (max-width: 576px) {
  .visual-item.medium {
    grid-column: span 12;
  }
}

/* Brand applications */
.brand-applications {
  margin: 4rem 0;
}

.application-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 2rem 0;
}

.application-item {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.application-item:nth-child(even) {
  flex-direction: row-reverse;
}

.application-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.application-image img {
  width: 100%;
  height: auto;
  display: block;
}

.application-content {
  flex: 1;
}

.application-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.application-description {
  margin-bottom: 1.5rem;
  color: var(--chateau-secondary);
}

@media (max-width: 992px) {
  .application-item,
  .application-item:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  
  .application-content {
    text-align: center;
  }
}

/* Story section */
.brand-story {
  position: relative;
  margin: 4rem 0;
  padding: 4rem 0;
  overflow: hidden;
}

.brand-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./images/story-bg-pattern.svg');
  background-repeat: repeat;
  opacity: 0.05;
  z-index: -1;
}

.story-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--chateau-primary);
  position: relative;
  padding: 0 2rem;
}

.story-quote::before,
.story-quote::after {
  content: '"';
  position: absolute;
  font-size: 5rem;
  opacity: 0.2;
  font-family: serif;
  line-height: 0;
}

.story-quote::before {
  left: 0;
  top: 30px;
}

.story-quote::after {
  right: 0;
  bottom: -10px;
}

/* Return link */
.return-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--chateau-primary);
  text-decoration: none;
  margin: 5rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
  border: 1px solid var(--chateau-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
}

.return-link:hover {
  background-color: var(--chateau-primary);
  color: white;
  transform: translateX(-5px);
}

.return-link svg {
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
}

/* Brand Elements Section */
.brand-elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.brand-element {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid var(--chateau-primary);
}

.brand-element:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.element-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(141, 53, 65, 0.08);
}

.brand-element h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: var(--chateau-primary);
}

.brand-element p {
  font-size: 0.95rem;
  color: var(--chateau-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Image Containers */
.full-bleed-image {
  margin: 3rem -2rem;
  overflow: hidden;
  position: relative;
}

.full-bleed-image img {
  width: 100%;
  display: block;
  height: auto;
}

.dual-image-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.dual-image-left, 
.dual-image-right {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.dual-image-left img, 
.dual-image-right img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.dual-image-left:hover img, 
.dual-image-right:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .dual-image-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Subsection Heading */
.subsection-heading {
  font-size: 1.5rem;
  color: var(--chateau-primary);
  margin: 3rem 0 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Brand System Showcase */
.brand-system-showcase {
  margin: 2rem 0 3rem;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
}

.brand-system-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* Guidelines Grid */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

.guidelines-item {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.guidelines-item:hover {
  transform: translateY(-8px);
}

.guidelines-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.guidelines-item h4 {
  padding: 1rem;
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
  color: var(--chateau-primary);
}

/* Brand Gallery */
.brand-gallery {
  margin: 3rem 0;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.gallery-image:hover {
  transform: translateY(-5px);
}

.final-image {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-image:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
  
  .gallery-image:last-child {
    grid-column: auto;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Fallbacks for browsers that don't support backdrop-filter */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .case-study-nav {
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  body.dark-mode .case-study-nav {
    background-color: rgba(38, 38, 38, 0.98);
  }
}

/* STANDARDIZED FOOTER STYLES */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 2rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact, .footer-socials {
  flex: 1 1 300px;
}

.footer-contact h3,
.footer-socials h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-contact input,
.footer-contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.footer-contact textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-contact button {
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-contact button:hover {
  background-color: #ccc;
}

.footer-socials ul {
  list-style: none;
  padding: 0;
}

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

.footer-socials ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials ul li a:hover {
  color: #aaa;
}

.footer-disclaimer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}
